#include <openglgraphics.h>

Definition at line 27 of file openglgraphics.h.
Public Member Functions | |
| OpenGLGraphics () | |
| ~OpenGLGraphics () | |
| void | setSync (bool sync) |
| Sets whether vertical refresh syncing is enabled. | |
| bool | getSync () const |
| bool | setVideoMode (int w, int h, int bpp, bool fs, bool hwaccel) |
| Try to create a window with the given settings. | |
| bool | drawImage (Image *image, int srcX, int srcY, int dstX, int dstY, int width, int height, bool useColor) |
| Blits an image onto the screen. | |
| void | drawImagePattern (Image *image, int x, int y, int w, int h) |
| void | updateScreen () |
| Updates the screen. | |
| void | _beginDraw () |
| void | _endDraw () |
| bool | pushClipArea (gcn::Rectangle area) |
| void | popClipArea () |
| void | setColor (const gcn::Color &color) |
| void | drawPoint (int x, int y) |
| void | drawLine (int x1, int y1, int x2, int y2) |
| void | drawRectangle (const gcn::Rectangle &rect, bool filled) |
| void | drawRectangle (const gcn::Rectangle &rect) |
| void | fillRectangle (const gcn::Rectangle &rect) |
| void | setTargetPlane (int width, int height) |
| SDL_Surface * | getScreenshot () |
| Takes a screenshot and returns it as SDL surface. | |
Protected Member Functions | |
| void | setTexturingAndBlending (bool enable) |
Private Attributes | |
| bool | mAlpha |
| bool | mTexture |
| bool | mColorAlpha |
| bool | mSync |
| OpenGLGraphics::OpenGLGraphics | ( | ) |
| OpenGLGraphics::~OpenGLGraphics | ( | ) |
| void OpenGLGraphics::setSync | ( | bool | sync | ) |
Sets whether vertical refresh syncing is enabled.
Takes effect after the next call to setVideoMode(). Only implemented on MacOS for now.
| bool OpenGLGraphics::getSync | ( | ) | const [inline] |
Definition at line 39 of file openglgraphics.h.
| bool OpenGLGraphics::setVideoMode | ( | int | w, | |
| int | h, | |||
| int | bpp, | |||
| bool | fs, | |||
| bool | hwaccel | |||
| ) | [virtual] |
| bool OpenGLGraphics::drawImage | ( | Image * | image, | |
| int | srcX, | |||
| int | srcY, | |||
| int | dstX, | |||
| int | dstY, | |||
| int | width, | |||
| int | height, | |||
| bool | useColor | |||
| ) | [virtual] |
Blits an image onto the screen.
true if the image was blitted properly false otherwise. Reimplemented from Graphics.
| void OpenGLGraphics::drawImagePattern | ( | Image * | image, | |
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) | [virtual] |
Reimplemented from Graphics.
| void OpenGLGraphics::updateScreen | ( | ) | [virtual] |
Updates the screen.
This is done by either copying the buffer to the screen or swapping pages.
Reimplemented from Graphics.
| void OpenGLGraphics::_beginDraw | ( | ) |
| void OpenGLGraphics::_endDraw | ( | ) |
| bool OpenGLGraphics::pushClipArea | ( | gcn::Rectangle | area | ) |
| void OpenGLGraphics::popClipArea | ( | ) |
| void OpenGLGraphics::setColor | ( | const gcn::Color & | color | ) |
| void OpenGLGraphics::drawPoint | ( | int | x, | |
| int | y | |||
| ) |
| void OpenGLGraphics::drawLine | ( | int | x1, | |
| int | y1, | |||
| int | x2, | |||
| int | y2 | |||
| ) |
| void OpenGLGraphics::drawRectangle | ( | const gcn::Rectangle & | rect, | |
| bool | filled | |||
| ) |
| void OpenGLGraphics::drawRectangle | ( | const gcn::Rectangle & | rect | ) |
| void OpenGLGraphics::fillRectangle | ( | const gcn::Rectangle & | rect | ) |
| void OpenGLGraphics::setTargetPlane | ( | int | width, | |
| int | height | |||
| ) |
| SDL_Surface* OpenGLGraphics::getScreenshot | ( | ) | [virtual] |
| void OpenGLGraphics::setTexturingAndBlending | ( | bool | enable | ) | [protected] |
bool OpenGLGraphics::mAlpha [private] |
Definition at line 84 of file openglgraphics.h.
bool OpenGLGraphics::mTexture [private] |
Definition at line 84 of file openglgraphics.h.
bool OpenGLGraphics::mColorAlpha [private] |
Definition at line 85 of file openglgraphics.h.
bool OpenGLGraphics::mSync [private] |
Definition at line 86 of file openglgraphics.h.
1.5.5