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

RageDisplay_Null.h

Go to the documentation of this file.
00001 /* RageDisplay_Null: diagnostic display device */ 00002 00003 #ifndef RAGEDISPLAY_NULL_H 00004 #define RAGEDISPLAY_NULL_H 00005 00006 class RageDisplay_Null: public RageDisplay 00007 { 00008 public: 00009 RageDisplay_Null( VideoModeParams p ); 00010 void Update( float fDeltaTime ) { } 00011 00012 void ResolutionChanged() { } 00013 const PixelFormatDesc *GetPixelFormatDesc(PixelFormat pf) const; 00014 00015 bool BeginFrame() { return true; } 00016 void EndFrame(); 00017 VideoModeParams GetVideoModeParams() const { return m_Params; } 00018 void SetBlendMode( BlendMode mode ) { } 00019 bool SupportsTextureFormat( PixelFormat pixfmt, bool realtime=false ) { return true; } 00020 unsigned CreateTexture( 00021 PixelFormat pixfmt, 00022 RageSurface* img, 00023 bool bGenerateMipMaps ) { return 1; } 00024 void UpdateTexture( 00025 unsigned uTexHandle, 00026 RageSurface* img, 00027 int xoffset, int yoffset, int width, int height 00028 ) { } 00029 void DeleteTexture( unsigned uTexHandle ) { } 00030 void ClearAllTextures() { } 00031 int GetNumTextureUnits() { return 1; } 00032 void SetTexture( int iTextureUnitIndex, RageTexture* pTexture ) { } 00033 void SetTextureModeModulate() { } 00034 void SetTextureModeGlow() { } 00035 void SetTextureModeAdd() { } 00036 void SetTextureWrapping( bool b ) { } 00037 int GetMaxTextureSize() const { return 2048; } 00038 void SetTextureFiltering( bool b) { } 00039 bool IsZWriteEnabled() const { return false; } 00040 bool IsZTestEnabled() const { return false; } 00041 void SetZWrite( bool b ) { } 00042 void SetZTestMode( ZTestMode mode ) { } 00043 void ClearZBuffer() { } 00044 void SetCullMode( CullMode mode ) { } 00045 void SetAlphaTest( bool b ) { } 00046 void SetMaterial( 00047 const RageColor &emissive, 00048 const RageColor &ambient, 00049 const RageColor &diffuse, 00050 const RageColor &specular, 00051 float shininess 00052 ) { } 00053 void SetLighting( bool b ) { } 00054 void SetLightOff( int index ) { } 00055 void SetLightDirectional( 00056 int index, 00057 const RageColor &ambient, 00058 const RageColor &diffuse, 00059 const RageColor &specular, 00060 const RageVector3 &dir ) { } 00061 00062 void SetSphereEnvironmentMapping( bool b ) { } 00063 00064 RageCompiledGeometry* CreateCompiledGeometry(); 00065 void DeleteCompiledGeometry( RageCompiledGeometry* p ); 00066 00067 protected: 00068 void DrawQuadsInternal( const RageSpriteVertex v[], int iNumVerts ) { } 00069 void DrawQuadStripInternal( const RageSpriteVertex v[], int iNumVerts ) { } 00070 void DrawFanInternal( const RageSpriteVertex v[], int iNumVerts ) { } 00071 void DrawStripInternal( const RageSpriteVertex v[], int iNumVerts ) { } 00072 void DrawTrianglesInternal( const RageSpriteVertex v[], int iNumVerts ) { } 00073 void DrawCompiledGeometryInternal( const RageCompiledGeometry *p, int iMeshIndex ) { } 00074 void DrawLineStripInternal( const RageSpriteVertex v[], int iNumVerts, float LineWidth ) { } 00075 00076 VideoModeParams m_Params; 00077 CString TryVideoMode( VideoModeParams params, bool &bNewDeviceOut ) { m_Params = params; return ""; } 00078 RageSurface* CreateScreenshot(); 00079 void SetViewport(int shift_left, int shift_down) { } 00080 RageMatrix GetOrthoMatrix( float l, float r, float b, float t, float zn, float zf ); 00081 bool SupportsSurfaceFormat( PixelFormat pixfmt ) { return true; } 00082 }; 00083 00084 #endif 00085 /* 00086 * Copyright (c) 2001-2004 Chris Danford, Glenn Maynard 00087 * All rights reserved. 00088 * 00089 * Permission is hereby granted, free of charge, to any person obtaining a 00090 * copy of this software and associated documentation files (the 00091 * "Software"), to deal in the Software without restriction, including 00092 * without limitation the rights to use, copy, modify, merge, publish, 00093 * distribute, and/or sell copies of the Software, and to permit persons to 00094 * whom the Software is furnished to do so, provided that the above 00095 * copyright notice(s) and this permission notice appear in all copies of 00096 * the Software and that both the above copyright notice(s) and this 00097 * permission notice appear in supporting documentation. 00098 * 00099 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00100 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00101 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00102 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00103 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00104 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00105 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00106 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00107 * PERFORMANCE OF THIS SOFTWARE. 00108 */ 00109

Generated on Thu Jan 27 20:57:27 2005 for StepMania by doxygen 1.3.7