RageDisplay_Null.h
Go to the documentation of this file.00001
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
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
Generated on Thu Jan 27 20:57:27 2005 for StepMania by
1.3.7