comparison engine/core/video/opengl/renderbackendopengl.h @ 61:18c2a21ac0ad

allow clients to set a custom window title and icon
author spq@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 16 Jul 2008 12:37:41 +0000
parents 90005975cdbb
children ad7969d9460b
comparison
equal deleted inserted replaced
60:1de7e6740a4a 61:18c2a21ac0ad
43 virtual ~RenderBackendOpenGL(); 43 virtual ~RenderBackendOpenGL();
44 const std::string& getName() const; 44 const std::string& getName() const;
45 void startFrame(); 45 void startFrame();
46 void endFrame(); 46 void endFrame();
47 void init(); 47 void init();
48 Image* createMainScreen(unsigned int width, unsigned int height, unsigned char bitsPerPixel, bool fullscreen); 48 Image* createMainScreen(unsigned int width, unsigned int height, unsigned char bitsPerPixel, bool fullscreen, const std::string& title, const std::string& icon);
49 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height); 49 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height);
50 Image* createImage(SDL_Surface* surface); 50 Image* createImage(SDL_Surface* surface);
51 bool putPixel(int x, int y, int r, int g, int b); 51 bool putPixel(int x, int y, int r, int g, int b);
52 void drawLine(const Point& p1, const Point& p2, int r, int g, int b); 52 void drawLine(const Point& p1, const Point& p2, int r, int g, int b);
53 void drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, int r, int g, int b); 53 void drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, int r, int g, int b);