Packages

Simulates (NOT EMULATES) Farmbot's arduino firmware and hardware. The firmware is pretty stable and used in FarmbotOS's testing environment. The visual hardware simulator is very much a WIP.

Current section

Files

Jump to
farmbot_simulator src display.h
Raw

src/display.h

#ifndef DISPLAY_INCLUDED_H
#define DISPLAY_INCLUDED_H
#include <string>
#include <SDL2/SDL.h>
class Display
{
public:
Display(int width, int height, const std::string& title);
void Clear(float r, float g, float b, float a);
void SwapBuffers();
virtual ~Display();
protected:
private:
void operator=(const Display& display) {}
Display(const Display& display) {}
SDL_Window* m_window;
SDL_GLContext m_glContext;
};
#endif