Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

dxGraphicsStateGuardian7.cxx File Reference

#include "dxGraphicsStateGuardian7.h"
#include "config_dxgsg7.h"
#include "displayRegion.h"
#include "renderBuffer.h"
#include "geom.h"
#include "geomSphere.h"
#include "geomIssuer.h"
#include "graphicsWindow.h"
#include "graphicsChannel.h"
#include "lens.h"
#include "perspectiveLens.h"
#include "ambientLight.h"
#include "directionalLight.h"
#include "pointLight.h"
#include "spotlight.h"
#include "textureAttrib.h"
#include "lightAttrib.h"
#include "cullFaceAttrib.h"
#include "transparencyAttrib.h"
#include "alphaTestAttrib.h"
#include "depthTestAttrib.h"
#include "depthWriteAttrib.h"
#include "colorWriteAttrib.h"
#include "texMatrixAttrib.h"
#include "materialAttrib.h"
#include "renderModeAttrib.h"
#include "fogAttrib.h"
#include "depthOffsetAttrib.h"
#include "fog.h"
#include <mmsystem.h>

Go to the source code of this file.

Compounds

struct  draw_sprite_vertex_less
class  WrappedSprite
class  WrappedSpriteSortPtr

Defines

#define DISABLE_POLYGON_OFFSET_DECALING
#define DONT_USE_DRAWPRIMSTRIDED
#define NO_MULTIPLE_DISPLAY_REGIONS
#define PER_NORMAL   NormalOnly
#define PER_COLOR   ColorOnly
#define PER_TEXCOORD   TexCoordOnly
#define CountDPs(nv, nt)
#define MY_D3DRGBA(r, g, b, a)   ((D3DCOLOR) D3DRGBA(r,g,b,a))
#define REQUIRED_BLENDCAPS
#define REQUIRED_TEXFILTERCAPS   (D3DPTFILTERCAPS_MAGFLINEAR | D3DPTFILTERCAPS_MINFLINEAR | D3DPTFILTERCAPS_LINEAR)
#define REQUIRED_MIPMAP_TEXFILTERCAPS   (D3DPTFILTERCAPS_MIPFLINEAR | D3DPTFILTERCAPS_LINEARMIPLINEAR)
#define REQUIRED_TEXBLENDCAPS   (D3DTEXOPCAPS_MODULATE | D3DTEXOPCAPS_SELECTARG1 | D3DTEXOPCAPS_SELECTARG2)

Enumerations

enum  DrawLoopFlags {
  NothingSet = 0, NormalOnly, ColorOnly, Normal_Color,
  TexCoordOnly, Normal_TexCoord, Color_TexCoord, Normal_Color_TexCoord
}
enum  DP_Type { DrawPrim, DrawIndexedPrim, DrawPrimStrided }
enum  GeomVertFormat { FlatVerts, IndexedVerts, MixedFmtVerts }

Functions

INLINE DWORD Colorf_to_D3DCOLOR (const Colorf &cColorf)
HRESULT CALLBACK EnumTexFmtsCallback (LPDDPIXELFORMAT pddpf, VOID *param)
void INLINE TestDrawPrimFailure (DP_Type dptype, HRESULT hr, LPDIRECTDRAW7 pDD, DWORD nVerts, DWORD nTris)

Variables

const int VERT_BUFFER_SIZE = (32*6*1024L)
D3DMATRIX matIdentity
const char * DP_Type_Strs [3] = {"DrawPrimitive","DrawIndexedPrimitive","DrawPrimitiveStrided"}


Define Documentation

#define CountDPs nv,
nt   ) 
 

Definition at line 119 of file dxGraphicsStateGuardian7.cxx.

Referenced by TestDrawPrimFailure().

#define DISABLE_POLYGON_OFFSET_DECALING
 

Definition at line 63 of file dxGraphicsStateGuardian7.cxx.

#define DONT_USE_DRAWPRIMSTRIDED
 

Definition at line 70 of file dxGraphicsStateGuardian7.cxx.

#define MY_D3DRGBA r,
g,
b,
a   )     ((D3DCOLOR) D3DRGBA(r,g,b,a))
 

Definition at line 122 of file dxGraphicsStateGuardian7.cxx.

Referenced by DXGraphicsStateGuardian8::apply_fog(), DXGraphicsStateGuardian8::draw_tri(), and DXGraphicsStateGuardian7::prepare_texture().

#define NO_MULTIPLE_DISPLAY_REGIONS
 

Definition at line 81 of file dxGraphicsStateGuardian7.cxx.

#define PER_COLOR   ColorOnly
 

Definition at line 92 of file dxGraphicsStateGuardian7.cxx.

Referenced by DXGraphicsStateGuardian8::draw_line(), DXGraphicsStateGuardian7::draw_line(), DXGraphicsStateGuardian8::draw_linestrip_base(), DXGraphicsStateGuardian7::draw_linestrip_base(), DXGraphicsStateGuardian8::draw_multitri(), DXGraphicsStateGuardian7::draw_multitri(), DXGraphicsStateGuardian8::draw_point(), DXGraphicsStateGuardian7::draw_point(), DXGraphicsStateGuardian8::draw_prim_setup(), DXGraphicsStateGuardian7::draw_prim_setup(), DXGraphicsStateGuardian8::draw_tri(), and DXGraphicsStateGuardian7::draw_tri().

#define PER_NORMAL   NormalOnly
 

Definition at line 91 of file dxGraphicsStateGuardian7.cxx.

Referenced by DXGraphicsStateGuardian8::draw_line(), DXGraphicsStateGuardian7::draw_line(), DXGraphicsStateGuardian8::draw_linestrip_base(), DXGraphicsStateGuardian7::draw_linestrip_base(), DXGraphicsStateGuardian8::draw_multitri(), DXGraphicsStateGuardian7::draw_multitri(), DXGraphicsStateGuardian8::draw_point(), DXGraphicsStateGuardian7::draw_point(), DXGraphicsStateGuardian8::draw_prim_setup(), DXGraphicsStateGuardian7::draw_prim_setup(), DXGraphicsStateGuardian8::draw_tri(), and DXGraphicsStateGuardian7::draw_tri().

#define PER_TEXCOORD   TexCoordOnly
 

Definition at line 93 of file dxGraphicsStateGuardian7.cxx.

Referenced by DXGraphicsStateGuardian8::draw_multitri(), DXGraphicsStateGuardian7::draw_multitri(), DXGraphicsStateGuardian8::draw_tri(), and DXGraphicsStateGuardian7::draw_tri().

#define REQUIRED_BLENDCAPS
 

Value:

(D3DPBLENDCAPS_ZERO|D3DPBLENDCAPS_ONE|    \
                            D3DPBLENDCAPS_SRCALPHA|D3DPBLENDCAPS_INVSRCALPHA  )

#define REQUIRED_MIPMAP_TEXFILTERCAPS   (D3DPTFILTERCAPS_MIPFLINEAR | D3DPTFILTERCAPS_LINEARMIPLINEAR)
 

#define REQUIRED_TEXBLENDCAPS   (D3DTEXOPCAPS_MODULATE | D3DTEXOPCAPS_SELECTARG1 | D3DTEXOPCAPS_SELECTARG2)
 

#define REQUIRED_TEXFILTERCAPS   (D3DPTFILTERCAPS_MAGFLINEAR | D3DPTFILTERCAPS_MINFLINEAR | D3DPTFILTERCAPS_LINEAR)
 


Enumeration Type Documentation

enum DP_Type
 

Enumeration values:
DrawPrim 
DrawIndexedPrim 
DrawPrimStrided 

Definition at line 867 of file dxGraphicsStateGuardian7.cxx.

enum DrawLoopFlags
 

Enumeration values:
NothingSet 
NormalOnly 
ColorOnly 
Normal_Color 
TexCoordOnly 
Normal_TexCoord 
Color_TexCoord 
Normal_Color_TexCoord 

Definition at line 87 of file dxGraphicsStateGuardian7.cxx.

enum GeomVertFormat
 

Enumeration values:
FlatVerts 
IndexedVerts 
MixedFmtVerts 

Definition at line 1017 of file dxGraphicsStateGuardian7.cxx.

Referenced by DXGraphicsStateGuardian7::draw_point().


Function Documentation

INLINE DWORD Colorf_to_D3DCOLOR const Colorf cColorf  ) 
 

_X86_

_X86_

Definition at line 131 of file dxGraphicsStateGuardian7.cxx.

References alpha, blue, ConvD3DErrorToString(), DXGraphicsStateGuardian7::set_color_clear_value(), and w.

HRESULT CALLBACK EnumTexFmtsCallback LPDDPIXELFORMAT  pddpf,
VOID *  param
 

Definition at line 350 of file dxGraphicsStateGuardian7.cxx.

References DXGraphicsStateGuardian7::_cNumTexPixFmts, DXGraphicsStateGuardian7::_pTexPixFmts, MAX_DX_TEXPIXFMTS, and param.

Referenced by DXGraphicsStateGuardian7::dx_init().

void INLINE TestDrawPrimFailure DP_Type  dptype,
HRESULT  hr,
LPDIRECTDRAW7  pDD,
DWORD  nVerts,
DWORD  nTris
 

Definition at line 870 of file dxGraphicsStateGuardian7.cxx.

References ConvD3DErrorToString(), CountDPs, and DP_Type_Strs.


Variable Documentation

const char* DP_Type_Strs[3] = {"DrawPrimitive","DrawIndexedPrimitive","DrawPrimitiveStrided"} [static]
 

Definition at line 868 of file dxGraphicsStateGuardian7.cxx.

Referenced by TestDrawPrimFailure().

D3DMATRIX matIdentity [static]
 

Definition at line 95 of file dxGraphicsStateGuardian7.cxx.

Referenced by DXGraphicsStateGuardian7::draw_sprite(), and DXGraphicsStateGuardian7::DXGraphicsStateGuardian7().

const int VERT_BUFFER_SIZE = (32*6*1024L)
 

Definition at line 77 of file dxGraphicsStateGuardian7.cxx.

Referenced by DXGraphicsStateGuardian8::draw_line(), DXGraphicsStateGuardian7::draw_line(), DXGraphicsStateGuardian8::draw_linestrip_base(), DXGraphicsStateGuardian7::draw_linestrip_base(), DXGraphicsStateGuardian8::draw_multitri(), DXGraphicsStateGuardian7::draw_multitri(), DXGraphicsStateGuardian8::draw_point(), DXGraphicsStateGuardian7::draw_point(), DXGraphicsStateGuardian8::draw_sphere(), DXGraphicsStateGuardian7::draw_sphere(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), DXGraphicsStateGuardian8::draw_tri(), DXGraphicsStateGuardian7::draw_tri(), DXGraphicsStateGuardian8::dx_init(), DXGraphicsStateGuardian7::DXGraphicsStateGuardian7(), DXGraphicsStateGuardian8::GenerateSphere(), and DXGraphicsStateGuardian7::GenerateSphere().


Generated on Fri Apr 18 00:10:42 2003 for Panda by doxygen1.3