OpenGLGraphics Class Reference

#include <openglgraphics.h>

Inheritance diagram for OpenGLGraphics:

Graphics

List of all members.


Detailed Description

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

Constructor & Destructor Documentation

OpenGLGraphics::OpenGLGraphics (  ) 

OpenGLGraphics::~OpenGLGraphics (  ) 


Member Function Documentation

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]

Try to create a window with the given settings.

Reimplemented from Graphics.

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.

Returns:
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]

Takes a screenshot and returns it as SDL surface.

Reimplemented from Graphics.

void OpenGLGraphics::setTexturingAndBlending ( bool  enable  )  [protected]


Member Data Documentation

bool OpenGLGraphics::mAlpha [private]

Definition at line 84 of file openglgraphics.h.

bool OpenGLGraphics::mTexture [private]

Definition at line 84 of file openglgraphics.h.

Definition at line 85 of file openglgraphics.h.

bool OpenGLGraphics::mSync [private]

Definition at line 86 of file openglgraphics.h.


The documentation for this class was generated from the following file:

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5