Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

RageDisplay_OGL Class Reference

#include <RageDisplay_OGL.h>

Inheritance diagram for RageDisplay_OGL:

Inheritance graph
[legend]
Collaboration diagram for RageDisplay_OGL:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RageDisplay_OGL ()
virtual ~RageDisplay_OGL ()
CString Init (VideoModeParams p, bool bAllowUnacceleratedRenderer)
void Update (float fDeltaTime)
bool IsSoftwareRenderer ()
void ResolutionChanged ()
const PixelFormatDesc * GetPixelFormatDesc (PixelFormat pf) const
bool BeginFrame ()
void EndFrame ()
VideoModeParams GetVideoModeParams () const
void SetBlendMode (BlendMode mode)
bool SupportsTextureFormat (PixelFormat pixfmt, bool realtime=false)
unsigned CreateTexture (PixelFormat pixfmt, RageSurface *img, bool bGenerateMipMaps)
void UpdateTexture (unsigned uTexHandle, RageSurface *img, int xoffset, int yoffset, int width, int height)
void DeleteTexture (unsigned uTexHandle)
void ClearAllTextures ()
int GetNumTextureUnits ()
void SetTexture (int iTextureUnitIndex, RageTexture *pTexture)
void SetTextureModeModulate ()
void SetTextureModeGlow ()
void SetTextureModeAdd ()
void SetTextureWrapping (bool b)
int GetMaxTextureSize () const
void SetTextureFiltering (bool b)
bool IsZWriteEnabled () const
bool IsZTestEnabled () const
void SetZWrite (bool b)
void SetZTestMode (ZTestMode mode)
void ClearZBuffer ()
void SetCullMode (CullMode mode)
void SetAlphaTest (bool b)
void SetMaterial (const RageColor &emissive, const RageColor &ambient, const RageColor &diffuse, const RageColor &specular, float shininess)
void SetLighting (bool b)
void SetLightOff (int index)
void SetLightDirectional (int index, const RageColor &ambient, const RageColor &diffuse, const RageColor &specular, const RageVector3 &dir)
void SetSphereEnvironmentMapping (bool b)
RageCompiledGeometryCreateCompiledGeometry ()
void DeleteCompiledGeometry (RageCompiledGeometry *p)
virtual void SetPolygonMode (PolygonMode pm)
virtual void SetLineWidth (float fWidth)
CString GetTextureDiagnostics (unsigned id) const

Protected Member Functions

void DrawQuadsInternal (const RageSpriteVertex v[], int iNumVerts)
void DrawQuadStripInternal (const RageSpriteVertex v[], int iNumVerts)
void DrawFanInternal (const RageSpriteVertex v[], int iNumVerts)
void DrawStripInternal (const RageSpriteVertex v[], int iNumVerts)
void DrawTrianglesInternal (const RageSpriteVertex v[], int iNumVerts)
void DrawCompiledGeometryInternal (const RageCompiledGeometry *p, int iMeshIndex)
void DrawLineStripInternal (const RageSpriteVertex v[], int iNumVerts, float LineWidth)
CString TryVideoMode (VideoModeParams params, bool &bNewDeviceOut)
RageSurfaceCreateScreenshot ()
void SetViewport (int shift_left, int shift_down)
PixelFormat GetImgPixelFormat (RageSurface *&img, bool &FreeImg, int width, int height, bool bPalettedTexture)
bool SupportsSurfaceFormat (PixelFormat pixfmt)
void SendCurrentMatrices ()

Constructor & Destructor Documentation

RageDisplay_OGL::RageDisplay_OGL  ) 
 

RageDisplay_OGL::~RageDisplay_OGL  )  [virtual]
 


Member Function Documentation

bool RageDisplay_OGL::BeginFrame  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::ClearAllTextures  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::ClearZBuffer  )  [virtual]
 

Implements RageDisplay.

RageCompiledGeometry * RageDisplay_OGL::CreateCompiledGeometry  )  [virtual]
 

Implements RageDisplay.

RageSurface * RageDisplay_OGL::CreateScreenshot  )  [protected, virtual]
 

Implements RageDisplay.

unsigned RageDisplay_OGL::CreateTexture PixelFormat  pixfmt,
RageSurface img,
bool  bGenerateMipMaps
[virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::DeleteCompiledGeometry RageCompiledGeometry p  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::DeleteTexture unsigned  uTexHandle  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::DrawCompiledGeometryInternal const RageCompiledGeometry p,
int  iMeshIndex
[protected, virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::DrawFanInternal const RageSpriteVertex  v[],
int  iNumVerts
[protected, virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::DrawLineStripInternal const RageSpriteVertex  v[],
int  iNumVerts,
float  LineWidth
[protected, virtual]
 

Reimplemented from RageDisplay.

void RageDisplay_OGL::DrawQuadsInternal const RageSpriteVertex  v[],
int  iNumVerts
[protected, virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::DrawQuadStripInternal const RageSpriteVertex  v[],
int  iNumVerts
[protected, virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::DrawStripInternal const RageSpriteVertex  v[],
int  iNumVerts
[protected, virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::DrawTrianglesInternal const RageSpriteVertex  v[],
int  iNumVerts
[protected, virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::EndFrame  )  [virtual]
 

Implements RageDisplay.

RageDisplay::PixelFormat RageDisplay_OGL::GetImgPixelFormat RageSurface *&  img,
bool &  FreeImg,
int  width,
int  height,
bool  bPalettedTexture
[protected]
 

int RageDisplay_OGL::GetMaxTextureSize  )  const [virtual]
 

Implements RageDisplay.

int RageDisplay_OGL::GetNumTextureUnits  )  [virtual]
 

Implements RageDisplay.

const RageDisplay::PixelFormatDesc * RageDisplay_OGL::GetPixelFormatDesc PixelFormat  pf  )  const [virtual]
 

Implements RageDisplay.

CString RageDisplay_OGL::GetTextureDiagnostics unsigned  id  )  const [virtual]
 

Reimplemented from RageDisplay.

RageDisplay::VideoModeParams RageDisplay_OGL::GetVideoModeParams  )  const [virtual]
 

Implements RageDisplay.

CString RageDisplay_OGL::Init VideoModeParams  p,
bool  bAllowUnacceleratedRenderer
 

bool RageDisplay_OGL::IsSoftwareRenderer  ) 
 

bool RageDisplay_OGL::IsZTestEnabled  )  const [virtual]
 

Implements RageDisplay.

bool RageDisplay_OGL::IsZWriteEnabled  )  const [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::ResolutionChanged  )  [virtual]
 

Reimplemented from RageDisplay.

void RageDisplay_OGL::SendCurrentMatrices  )  [protected]
 

void RageDisplay_OGL::SetAlphaTest bool  b  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetBlendMode BlendMode  mode  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetCullMode CullMode  mode  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetLightDirectional int  index,
const RageColor ambient,
const RageColor diffuse,
const RageColor specular,
const RageVector3 dir
[virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetLighting bool  b  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetLightOff int  index  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetLineWidth float  fWidth  )  [virtual]
 

Reimplemented from RageDisplay.

void RageDisplay_OGL::SetMaterial const RageColor emissive,
const RageColor ambient,
const RageColor diffuse,
const RageColor specular,
float  shininess
[virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetPolygonMode PolygonMode  pm  )  [virtual]
 

Reimplemented from RageDisplay.

void RageDisplay_OGL::SetSphereEnvironmentMapping bool  b  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetTexture int  iTextureUnitIndex,
RageTexture pTexture
[virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetTextureFiltering bool  b  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetTextureModeAdd  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetTextureModeGlow  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetTextureModeModulate  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetTextureWrapping bool  b  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetViewport int  shift_left,
int  shift_down
[protected, virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetZTestMode ZTestMode  mode  )  [virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::SetZWrite bool  b  )  [virtual]
 

Implements RageDisplay.

bool RageDisplay_OGL::SupportsSurfaceFormat PixelFormat  pixfmt  )  [protected]
 

bool RageDisplay_OGL::SupportsTextureFormat PixelFormat  pixfmt,
bool  realtime = false
[virtual]
 

Implements RageDisplay.

CString RageDisplay_OGL::TryVideoMode VideoModeParams  params,
bool &  bNewDeviceOut
[protected, virtual]
 

Implements RageDisplay.

void RageDisplay_OGL::Update float  fDeltaTime  )  [virtual]
 

Reimplemented from RageDisplay.

void RageDisplay_OGL::UpdateTexture unsigned  uTexHandle,
RageSurface img,
int  xoffset,
int  yoffset,
int  width,
int  height
[virtual]
 

Implements RageDisplay.


The documentation for this class was generated from the following files:
Generated on Thu Jan 27 21:01:06 2005 for StepMania by doxygen 1.3.7