comparison engine/core/video/opengl/renderbackendopengl.h @ 654:5d6b1820b953

* Added the ability to change screen modes on the fly. This works both in OpenGL and SDL modes. * Added IEngineChangeListener so the client can update the cameras viewport if the screen mode has been changed. I chose to do it this way because the engine has no way to know which camera it should update. It will be up to the client to do it. * The cursor surface is now correctly freed when exiting. * Added DeviceCaps::getNearestScreenMode() for the client to request a supported screen mode. closes[t:315]
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 21 Oct 2010 18:50:50 +0000
parents 6e2151325017
children e3140f01749d
comparison
equal deleted inserted replaced
653:01acc9fc35ea 654:5d6b1820b953
48 void endFrame(); 48 void endFrame();
49 void init(const std::string& driver); 49 void init(const std::string& driver);
50 void clearBackBuffer(); 50 void clearBackBuffer();
51 51
52 Image* createMainScreen(const ScreenMode& mode, const std::string& title, const std::string& icon); 52 Image* createMainScreen(const ScreenMode& mode, const std::string& title, const std::string& icon);
53 Image* setScreenMode(const ScreenMode& mode);
53 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height); 54 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height);
54 Image* createImage(SDL_Surface* surface); 55 Image* createImage(SDL_Surface* surface);
55 bool putPixel(int x, int y, int r, int g, int b, int a = 255); 56 bool putPixel(int x, int y, int r, int g, int b, int a = 255);
56 void drawLine(const Point& p1, const Point& p2, int r, int g, int b, int a = 255); 57 void drawLine(const Point& p1, const Point& p2, int r, int g, int b, int a = 255);
57 void drawTriangle(const Point& p1, const Point& p2, const Point& p3, int r, int g, int b, int a = 255); 58 void drawTriangle(const Point& p1, const Point& p2, const Point& p3, int r, int g, int b, int a = 255);