|
Public Types |
| enum | PixelFormat {
FMT_RGBA8,
FMT_RGBA4,
FMT_RGB5A1,
FMT_RGB5,
FMT_RGB8,
FMT_PAL,
FMT_BGR8,
FMT_A1BGR5,
NUM_PIX_FORMATS
} |
| enum | GraphicsFileFormat { SAVE_LOSSLESS,
SAVE_LOSSY_LOW_QUAL,
SAVE_LOSSY_HIGH_QUAL
} |
Public Member Functions |
| virtual const PixelFormatDesc * | GetPixelFormatDesc (PixelFormat pf) const =0 |
| virtual | ~RageDisplay () |
| virtual void | Update (float fDeltaTime) |
| CString | SetVideoMode (VideoModeParams p, bool &bNeedReloadTextures) |
| virtual void | ResolutionChanged () |
| virtual bool | BeginFrame ()=0 |
| virtual void | EndFrame ()=0 |
| virtual VideoModeParams | GetVideoModeParams () const =0 |
| bool | IsWindowed () const |
| virtual void | SetBlendMode (BlendMode mode)=0 |
| virtual bool | SupportsTextureFormat (PixelFormat pixfmt, bool realtime=false)=0 |
| virtual unsigned | CreateTexture (PixelFormat pixfmt, RageSurface *img, bool bGenerateMipMaps)=0 |
| virtual void | UpdateTexture (unsigned uTexHandle, RageSurface *img, int xoffset, int yoffset, int width, int height)=0 |
| virtual void | DeleteTexture (unsigned uTexHandle)=0 |
| virtual void | ClearAllTextures ()=0 |
| virtual int | GetNumTextureUnits ()=0 |
| virtual void | SetTexture (int iTextureUnitIndex, RageTexture *pTexture)=0 |
| virtual void | SetTextureModeModulate ()=0 |
| virtual void | SetTextureModeGlow ()=0 |
| virtual void | SetTextureModeAdd ()=0 |
| virtual void | SetTextureWrapping (bool b)=0 |
| virtual int | GetMaxTextureSize () const =0 |
| virtual void | SetTextureFiltering (bool b)=0 |
| virtual bool | IsZTestEnabled () const =0 |
| virtual bool | IsZWriteEnabled () const =0 |
| virtual void | SetZWrite (bool b)=0 |
| virtual void | SetZTestMode (ZTestMode mode)=0 |
| virtual void | ClearZBuffer ()=0 |
| virtual void | SetCullMode (CullMode mode)=0 |
| virtual void | SetAlphaTest (bool b)=0 |
| virtual void | SetMaterial (const RageColor &emissive, const RageColor &ambient, const RageColor &diffuse, const RageColor &specular, float shininess)=0 |
| virtual void | SetLighting (bool b)=0 |
| virtual void | SetLightOff (int index)=0 |
| virtual void | SetLightDirectional (int index, const RageColor &ambient, const RageColor &diffuse, const RageColor &specular, const RageVector3 &dir)=0 |
| virtual void | SetSphereEnvironmentMapping (bool b)=0 |
| virtual RageCompiledGeometry * | CreateCompiledGeometry ()=0 |
| virtual void | DeleteCompiledGeometry (RageCompiledGeometry *p)=0 |
| void | DrawQuads (const RageSpriteVertex v[], int iNumVerts) |
| void | DrawQuadStrip (const RageSpriteVertex v[], int iNumVerts) |
| void | DrawFan (const RageSpriteVertex v[], int iNumVerts) |
| void | DrawStrip (const RageSpriteVertex v[], int iNumVerts) |
| void | DrawTriangles (const RageSpriteVertex v[], int iNumVerts) |
| void | DrawCompiledGeometry (const RageCompiledGeometry *p, int iMeshIndex, const vector< msMesh > &vMeshes) |
| void | DrawLineStrip (const RageSpriteVertex v[], int iNumVerts, float LineWidth) |
| void | DrawCircle (const RageSpriteVertex &v, float radius) |
| void | DrawQuad (const RageSpriteVertex v[]) |
| virtual void | SetPolygonMode (PolygonMode pm) |
| virtual void | SetLineWidth (float fWidth) |
| bool | SaveScreenshot (CString sPath, GraphicsFileFormat format) |
| virtual CString | GetTextureDiagnostics (unsigned id) const |
| virtual RageSurface * | CreateScreenshot ()=0 |
| int | GetFPS () const |
| int | GetVPF () const |
| int | GetCumFPS () const |
| virtual void | ResetStats () |
| virtual void | ProcessStatsOnFlip () |
| virtual CString | GetStats () const |
| void | StatsAddVerts (int iNumVertsRendered) |
| void | PushMatrix () |
| void | PopMatrix () |
| void | Translate (float x, float y, float z) |
| void | TranslateWorld (float x, float y, float z) |
| void | Scale (float x, float y, float z) |
| void | RotateX (float deg) |
| void | RotateY (float deg) |
| void | RotateZ (float deg) |
| void | MultMatrix (const RageMatrix &f) |
| void | PostMultMatrix (const RageMatrix &f) |
| void | PreMultMatrix (const RageMatrix &f) |
| void | LoadIdentity () |
| void | TexturePushMatrix () |
| void | TexturePopMatrix () |
| void | TextureTranslate (float x, float y, float z) |
| void | CameraPushMatrix () |
| void | CameraPopMatrix () |
| void | LoadMenuPerspective (float fovDegrees, float fVanishPointX, float fVanishPointY) |
| void | LoadLookAt (float fov, const RageVector3 &Eye, const RageVector3 &At, const RageVector3 &Up) |
| void | ChangeCentering (int trans_x, int trans_y, int add_width, int add_height) |
| RageSurface * | CreateSurfaceFromPixfmt (PixelFormat pixfmt, void *pixels, int width, int height, int pitch) |
| PixelFormat | FindPixelFormat (int bpp, int Rmask, int Gmask, int Bmask, int Amask, bool realtime=false) |
Static Public Member Functions |
| CString | PixelFormatToString (PixelFormat pixfmt) |
Protected Member Functions |
| virtual void | DrawQuadsInternal (const RageSpriteVertex v[], int iNumVerts)=0 |
| virtual void | DrawQuadStripInternal (const RageSpriteVertex v[], int iNumVerts)=0 |
| virtual void | DrawFanInternal (const RageSpriteVertex v[], int iNumVerts)=0 |
| virtual void | DrawStripInternal (const RageSpriteVertex v[], int iNumVerts)=0 |
| virtual void | DrawTrianglesInternal (const RageSpriteVertex v[], int iNumVerts)=0 |
| virtual void | DrawCompiledGeometryInternal (const RageCompiledGeometry *p, int iMeshIndex)=0 |
| virtual void | DrawLineStripInternal (const RageSpriteVertex v[], int iNumVerts, float LineWidth) |
| virtual void | DrawCircleInternal (const RageSpriteVertex &v, float radius) |
| virtual CString | TryVideoMode (VideoModeParams params, bool &bNewDeviceOut)=0 |
| virtual void | SetViewport (int shift_left, int shift_down)=0 |
| void | DrawPolyLine (const RageSpriteVertex &p1, const RageSpriteVertex &p2, float LineWidth) |
| void | SetDefaultRenderStates () |
| RageMatrix | GetPerspectiveMatrix (float fovy, float aspect, float zNear, float zFar) |
| virtual RageMatrix | GetOrthoMatrix (float l, float r, float b, float t, float zn, float zf) |
| virtual RageMatrix | GetFrustumMatrix (float l, float r, float b, float t, float zn, float zf) |
| const RageMatrix * | GetCentering () |
| const RageMatrix * | GetProjectionTop () |
| const RageMatrix * | GetViewTop () |
| const RageMatrix * | GetWorldTop () |
| const RageMatrix * | GetTextureTop () |
Protected Attributes |
| RageMatrix | m_Centering |