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

RageDisplay_D3D.cpp File Reference

#include "global.h"
#include "RageDisplay.h"
#include "RageDisplay_D3D.h"
#include "D3D8.h"
#include "RageUtil.h"
#include "RageLog.h"
#include "RageTimer.h"
#include "RageException.h"
#include "RageTexture.h"
#include "RageTextureManager.h"
#include "RageMath.h"
#include "RageTypes.h"
#include "RageFile.h"
#include "GameConstantsAndTypes.h"
#include "StepMania.h"
#include "D3dx8math.h"
#include "D3DX8Core.h"
#include "PrefsManager.h"
#include "RageSurface.h"
#include "RageSurfaceUtils.h"
#include "archutils/Win32/GraphicsWindow.h"
#include "ScreenDimensions.h"
#include "arch/arch.h"
#include <math.h>
#include <list>

Classes

struct  TexturePalette
class  RageCompiledGeometrySWD3D

Defines

#define D3DFVF_RageSpriteVertex   (D3DFVF_XYZ|D3DFVF_NORMAL|D3DFVF_DIFFUSE|D3DFVF_TEX1)
#define D3DFVF_RageModelVertex   (D3DFVF_XYZ|D3DFVF_NORMAL|D3DFVF_TEX1)
#define D3D_NOT_INSTALLED

Functions

CString GetErrorString (HRESULT hr)
void SetPalette (unsigned TexResource)
D3DFORMAT FindBackBufferType (bool bWindowed, int iBPP)
CString SetD3DParams (bool &bNewDeviceOut)
bool D3DReduceParams (D3DPRESENT_PARAMETERS *pp)

Variables

HMODULE g_D3D8_Module = NULL
LPDIRECT3D8 g_pd3d = NULL
LPDIRECT3DDEVICE8 g_pd3dDevice = NULL
D3DCAPS8 g_DeviceCaps
D3DDISPLAYMODE g_DesktopMode
D3DPRESENT_PARAMETERS g_d3dpp
int g_ModelMatrixCnt = 0
int g_iCurrentTextureIndex = 0
map< unsigned, intg_TexResourceToPaletteIndex
list< intg_PaletteIndex
map< unsigned, TexturePaletteg_TexResourceToTexturePalette
const RageDisplay::PixelFormatDesc PIXEL_FORMAT_DESC [RageDisplay::NUM_PIX_FORMATS]
D3DFORMAT D3DFORMATS [RageDisplay::NUM_PIX_FORMATS]

Define Documentation

#define D3D_NOT_INSTALLED
 

Value:

"DirectX 8.1 or greater is not installed. You can download it from:\n" \ "http://www.microsoft.com/downloads/details.aspx?FamilyID=a19bed22-0b25-4e5d-a584-6389d8a3dad0&displaylang=en"

#define D3DFVF_RageModelVertex   (D3DFVF_XYZ|D3DFVF_NORMAL|D3DFVF_TEX1)
 

#define D3DFVF_RageSpriteVertex   (D3DFVF_XYZ|D3DFVF_NORMAL|D3DFVF_DIFFUSE|D3DFVF_TEX1)
 


Function Documentation

bool D3DReduceParams D3DPRESENT_PARAMETERS *  pp  ) 
 

D3DFORMAT FindBackBufferType bool  bWindowed,
int  iBPP
 

CString GetErrorString HRESULT  hr  ) 
 

CString SetD3DParams bool &  bNewDeviceOut  ) 
 

void SetPalette unsigned  TexResource  )  [static]
 


Variable Documentation

D3DFORMAT D3DFORMATS[RageDisplay::NUM_PIX_FORMATS] [static]
 

Initial value:

{ D3DFMT_A8R8G8B8, D3DFMT_A4R4G4B4, D3DFMT_A1R5G5B5, D3DFMT_X1R5G5B5, D3DFMT_R8G8B8, D3DFMT_P8, D3DFMT_UNKNOWN, D3DFMT_UNKNOWN }

HMODULE g_D3D8_Module = NULL
 

D3DPRESENT_PARAMETERS g_d3dpp
 

D3DDISPLAYMODE g_DesktopMode
 

D3DCAPS8 g_DeviceCaps
 

int g_iCurrentTextureIndex = 0
 

int g_ModelMatrixCnt = 0
 

list<int> g_PaletteIndex
 

LPDIRECT3D8 g_pd3d = NULL
 

LPDIRECT3DDEVICE8 g_pd3dDevice = NULL
 

map<unsigned,int> g_TexResourceToPaletteIndex
 

map<unsigned,TexturePalette> g_TexResourceToTexturePalette
 

const RageDisplay::PixelFormatDesc PIXEL_FORMAT_DESC[RageDisplay::NUM_PIX_FORMATS] [static]
 


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