OpenGLGfxServer Class Reference
[OpenGL Module]

#include <openglgfxserver.h>

Inheritance diagram for OpenGLGfxServer:

GfxServer RootServer< GfxServer > Root Server< GfxServer > Object TreeNode< Root > Referenced Counted Serialized List< Root > ListNode< Root > GlfwGfxServer

List of all members.


Detailed Description

OpenAL audio server.

Public Member Functions

 OpenGLGfxServer (const char *id)
virtual TextureNewTexture (const string &file_name)
virtual TextureNewTexture (const string &file_name, const string &overlay_name, const vector3 &overlay_color)
virtual TextureNewTexture (ImageFile *image_file)
virtual FontNewFont (const string &file_name, const FontFile::CharSize &char_size)
virtual void WriteInfo ()
virtual void SetProjection (const Projection &projection)
virtual void SetViewport (const Viewport &view_port)
virtual void PushScreenCoordinates ()
virtual void PopScreenCoordinates ()
void SetMinMagFilters (GLint min_filter, GLint mag_filter)
void SetMipMapFilter (GLint mm_filter)
virtual bool SaveScreenshot (const string &file_name)
virtual void ResetMatrix ()
virtual void PushMatrix ()
virtual void PopMatrix ()
virtual void Translate (const vector2 &translation)
virtual void Translate (const vector3 &translation)
virtual void Rotate (float rotation)
virtual void Rotate (const vector3 &rotation)
virtual void SetColor (const vector3 &color)
virtual void SetColor (const vector4 &color)
virtual void SetColorMask (bool r, bool g, bool b, bool alpha)
virtual void SetClearValues (float red, float green, float blue, float alpha=0.0f, float depth=0.0f, int stencil=0)
virtual void SetBlending (bool blending)
virtual void SetDepthTest (bool depth_test)
virtual void ClearBuffers (byte_t buffers)
virtual void RenderShape ()
virtual void RenderPrimitive (PrimitiveType primitive, const vector2 *vertices, uint_t count)
virtual void Print (const vector2 &position, const string &text)
virtual void ReadPixels (ushort_t x, ushort_t y, ushort_t width, ushort_t height, byte_t *pixels)

Private Member Functions

void SetColorWithEffect (float r, float g, float b, float alpha=1.0f)

Constructor & Destructor Documentation

OpenGLGfxServer::OpenGLGfxServer ( const char *  id  ) 

Constructor.


Member Function Documentation

Texture * OpenGLGfxServer::NewTexture ( const string &  file_name  )  [virtual]

Creates a shared texture resource object.

Reimplemented from GfxServer.

Texture * OpenGLGfxServer::NewTexture ( const string &  file_name,
const string &  overlay_name,
const vector3 overlay_color 
) [virtual]

Creates a shared texture resource object with overlay image.

Reimplemented from GfxServer.

Texture * OpenGLGfxServer::NewTexture ( ImageFile image_file  )  [virtual]

Creates a shared texture resource object using given image file.

Reimplemented from GfxServer.

Font * OpenGLGfxServer::NewFont ( const string &  file_name,
const FontFile::CharSize char_size 
) [virtual]

Creates a shared font resource object.

Reimplemented from GfxServer.

void OpenGLGfxServer::WriteInfo (  )  [virtual]

Writes basic gfx information to log file.

Reimplemented from GfxServer.

void OpenGLGfxServer::SetProjection ( const Projection projection  )  [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::SetViewport ( const Viewport view_port  )  [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::PushScreenCoordinates (  )  [virtual]

Pushes a projection matrix that will make object world coordinates identical to window coordinates.

Reimplemented from GfxServer.

void OpenGLGfxServer::PopScreenCoordinates (  )  [virtual]

Pops the projection matrix without changing the current.

Reimplemented from GfxServer.

void OpenGLGfxServer::SetMinMagFilters ( GLint  min_filter,
GLint  mag_filter 
)

void OpenGLGfxServer::SetMipMapFilter ( GLint  mm_filter  ) 

bool OpenGLGfxServer::SaveScreenshot ( const string &  file_name  )  [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::ResetMatrix (  )  [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::PushMatrix (  )  [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::PopMatrix (  )  [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::Translate ( const vector2 translation  )  [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::Translate ( const vector3 translation  )  [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::Rotate ( float  rotation  )  [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::Rotate ( const vector3 rotation  )  [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::SetColor ( const vector3 color  )  [virtual]

Sets current color.

Parameters:
color Color to be set (R, G, B).

Reimplemented from GfxServer.

void OpenGLGfxServer::SetColor ( const vector4 color  )  [virtual]

Sets current color.

Parameters:
color Color to be set (R, G, B, aplha).

Reimplemented from GfxServer.

void OpenGLGfxServer::SetColorMask ( bool  r,
bool  g,
bool  b,
bool  alpha 
) [virtual]

Sets current color mask.

Reimplemented from GfxServer.

void OpenGLGfxServer::SetClearValues ( float  red,
float  green,
float  blue,
float  alpha = 0.0f,
float  depth = 0.0f,
int  stencil = 0 
) [virtual]

Sets values for clearing buffers.

Parameters:
red The red value to write into the color buffer.
green The green value to write into the color buffer.
blue The blue value to write into the color buffer.
alpha The alpha value to write into the color buffer.
depth The z value to write into the depth buffer.
stencil The stencil value to write into the stencil buffer.

Reimplemented from GfxServer.

void OpenGLGfxServer::SetBlending ( bool  blending  )  [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::SetDepthTest ( bool  depth_test  )  [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::ClearBuffers ( byte_t  buffers  )  [virtual]

Clears buffers.

Parameters:
buffers A combination of BufferType flags.

Reimplemented from GfxServer.

void OpenGLGfxServer::RenderShape (  )  [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::RenderPrimitive ( PrimitiveType  primitive,
const vector2 vertices,
uint_t  count 
) [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::Print ( const vector2 position,
const string &  text 
) [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::ReadPixels ( ushort_t  x,
ushort_t  y,
ushort_t  width,
ushort_t  height,
byte_t pixels 
) [virtual]

Reimplemented from GfxServer.

void OpenGLGfxServer::SetColorWithEffect ( float  r,
float  g,
float  b,
float  alpha = 1.0f 
) [inline, private]


The documentation for this class was generated from the following files:
Generated on Sat Oct 20 14:47:33 2007 for Dark Oberon by  doxygen 1.5.3