comparison engine/core/video/sdl/renderbackendsdl.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
45 const std::string& getName() const; 45 const std::string& getName() const;
46 46
47 void startFrame(); 47 void startFrame();
48 void endFrame(); 48 void endFrame();
49 void init(); 49 void init();
50 Image* createMainScreen(unsigned int width, unsigned int height, unsigned char bitsPerPixel, bool fullscreen); 50 Image* createMainScreen(unsigned int width, unsigned int height, unsigned char bitsPerPixel, bool fullscreen, const std::string& title, const std::string& icon);
51 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height); 51 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height);
52 Image* createImage(SDL_Surface* surface); 52 Image* createImage(SDL_Surface* surface);
53 bool putPixel(int x, int y, int r, int g, int b); 53 bool putPixel(int x, int y, int r, int g, int b);
54 void drawLine(const Point& p1, const Point& p2, int r, int g, int b); 54 void drawLine(const Point& p1, const Point& p2, int r, int g, int b);
55 void drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, int r, int g, int b); 55 void drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, int r, int g, int b);