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

DXGraphicsStateGuardian8 Class Reference

#include <dxGraphicsStateGuardian8.h>

Inheritance diagram for DXGraphicsStateGuardian8:

GraphicsStateGuardian GraphicsStateGuardianBase TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Member Functions

 DXGraphicsStateGuardian8 (const FrameBufferProperties &properties)
 ~DXGraphicsStateGuardian8 ()
virtual void reset ()
virtual void do_clear (const RenderBuffer &buffer)
virtual void prepare_display_region ()
virtual bool prepare_lens ()
virtual void draw_point (GeomPoint *geom, GeomContext *gc)
virtual void draw_line (GeomLine *geom, GeomContext *gc)
virtual void draw_linestrip (GeomLinestrip *geom, GeomContext *gc)
void draw_linestrip_base (Geom *geom, GeomContext *gc, bool bConnectEnds)
virtual void draw_sprite (GeomSprite *geom, GeomContext *gc)
virtual void draw_polygon (GeomPolygon *geom, GeomContext *gc)
virtual void draw_quad (GeomQuad *geom, GeomContext *gc)
virtual void draw_tri (GeomTri *geom, GeomContext *gc)
virtual void draw_tristrip (GeomTristrip *geom, GeomContext *gc)
virtual void draw_trifan (GeomTrifan *geom, GeomContext *gc)
virtual void draw_sphere (GeomSphere *geom, GeomContext *gc)
virtual GeomNodeContextprepare_geom_node (GeomNode *node)
virtual void draw_geom_node (GeomNode *node, const RenderState *state, GeomNodeContext *gnc)
virtual void release_geom_node (GeomNodeContext *gnc)
virtual TextureContextprepare_texture (Texture *tex)
virtual void apply_texture (TextureContext *tc)
virtual void release_texture (TextureContext *tc)
virtual void copy_texture (TextureContext *tc, const DisplayRegion *dr)
virtual void copy_texture (TextureContext *tc, const DisplayRegion *dr, const RenderBuffer &rb)
virtual void texture_to_pixel_buffer (TextureContext *tc, PixelBuffer *pb)
virtual void texture_to_pixel_buffer (TextureContext *tc, PixelBuffer *pb, const DisplayRegion *dr)
virtual void copy_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr)
virtual void copy_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr, const RenderBuffer &rb)
virtual void apply_material (const Material *material)
virtual void apply_fog (Fog *fog)
virtual void issue_transform (const TransformState *transform)
virtual void issue_tex_matrix (const TexMatrixAttrib *attrib)
virtual void issue_texture (const TextureAttrib *attrib)
virtual void issue_material (const MaterialAttrib *attrib)
virtual void issue_render_mode (const RenderModeAttrib *attrib)
virtual void issue_texture_apply (const TextureApplyAttrib *attrib)
virtual void issue_alpha_test (const AlphaTestAttrib *attrib)
virtual void issue_depth_test (const DepthTestAttrib *attrib)
virtual void issue_depth_write (const DepthWriteAttrib *attrib)
virtual void issue_color_write (const ColorWriteAttrib *attrib)
virtual void issue_cull_face (const CullFaceAttrib *attrib)
virtual void issue_fog (const FogAttrib *attrib)
virtual void issue_depth_offset (const DepthOffsetAttrib *attrib)
virtual void bind_light (PointLight *light, int light_id)
virtual void bind_light (DirectionalLight *light, int light_id)
virtual void bind_light (Spotlight *light, int light_id)
virtual bool begin_frame ()
virtual bool begin_scene ()
virtual void end_scene ()
virtual void end_frame ()
virtual bool wants_normals (void) const
virtual bool wants_texcoords (void) const
virtual bool depth_offset_decals ()
virtual CoordinateSystem get_internal_coordinate_system () const
INLINE float compute_distance_to (const LPoint3f &point) const
virtual void set_color_clear_value (const Colorf &value)
void set_context (DXScreenData *pNewContextData)
virtual TypeHandle get_type (void) const
virtual TypeHandle force_init_type ()
INLINE void SetDXReady (bool status)
INLINE bool GetDXReady (void)
void DXGraphicsStateGuardian8::SetTextureBlendMode (TextureApplyAttrib::Mode TexBlendMode, bool bJustEnable)
DXShaderHandle read_vertex_shader (string &filename)
DXShaderHandle read_pixel_shader (string &filename)
void init_shader (ShaderType stype, DXShaderHandle &hShader, string *pFname)
void dx_cleanup (bool bRestoreDisplayMode, bool bAtExitFnCalled)
void reset_panda_gsg (void)
HRESULT reset_d3d_device (D3DPRESENT_PARAMETERS *pPresParams)
bool CheckCooperativeLevel (bool bDoReactivateWindow=false)
void show_frame (bool bNoNewFrameDrawn=false)
void dx_init (void)
void support_overlay_window (bool flag)

Static Public Member Functions

GraphicsStateGuardianmake_DXGraphicsStateGuardian8 (const FactoryParams &params)
TypeHandle get_class_type (void)
void init_type (void)

Public Attributes

DXScreenData_pScrn
LPDIRECT3DDEVICE8 _pD3DDevice
IDirect3DTexture8 * _pGlobalTexture
DXShaderHandle _CurVertexShader
DXShaderHandle _CurPixelShader

Protected Types

enum  DxgsgFogType { None, PerVertexFog = D3DRS_FOGVERTEXMODE, PerPixelFog = D3DRS_FOGTABLEMODE }

Protected Member Functions

virtual void enable_lighting (bool enable)
virtual void set_ambient_light (const Colorf &color)
virtual void enable_light (int light_id, bool enable)
virtual bool slot_new_clip_plane (int plane_id)
virtual void enable_clip_plane (int plane_id, bool enable)
virtual void bind_clip_plane (PlaneNode *plane, int plane_id)
virtual void set_blend_mode (ColorWriteAttrib::Mode color_write_mode, ColorBlendAttrib::Mode color_blend_mode, TransparencyAttrib::Mode transparency_mode)
void free_nondx_resources ()
void free_d3d_device (void)
virtual PT (SavedFrameBuffer) save_frame_buffer(const RenderBuffer &buffer
virtual CPT (DisplayRegion) dr)
virtual void restore_frame_buffer (SavedFrameBuffer *frame_buffer)
void set_draw_buffer (const RenderBuffer &rb)
void set_read_buffer (const RenderBuffer &rb)
INLINE void add_to_FVFBuf (void *data, size_t bytes)
void GenerateSphere (void *pVertexSpace, DWORD dwVertSpaceByteSize, void *pIndexSpace, DWORD dwIndexSpaceByteSize, D3DXVECTOR3 *pCenter, float fRadius, DWORD wNumRings, DWORD wNumSections, float sx, float sy, float sz, DWORD *pNumVertices, DWORD *pNumTris, DWORD fvfFlags, DWORD dwVertSize)
HRESULT ReleaseAllDeviceObjects (void)
HRESULT RecreateAllDeviceObjects (void)
HRESULT DeleteAllDeviceObjects (void)
INLINE void enable_color_material (bool val)
INLINE void enable_fog (bool val)
INLINE void enable_zwritemask (bool val)
INLINE void set_color_writemask (UINT color_writemask)
INLINE void enable_gouraud_shading (bool val)
INLINE void set_vertex_format (DWORD NewFvfType)
INLINE D3DTEXTUREADDRESS get_texture_wrap_mode (Texture::WrapMode wm) const
INLINE D3DFOGMODE get_fog_mode_type (Fog::Mode m) const
INLINE void enable_primitive_clipping (bool val)
INLINE void enable_alpha_test (bool val)
INLINE void enable_line_smooth (bool val)
INLINE void enable_blend (bool val)
INLINE void enable_point_smooth (bool val)
INLINE void enable_texturing (bool val)
INLINE void call_dxLightModelAmbient (const Colorf &color)
INLINE void call_dxAlphaFunc (D3DCMPFUNC func, float refval)
INLINE void call_dxBlendFunc (D3DBLEND sfunc, D3DBLEND dfunc)
INLINE void enable_dither (bool val)
INLINE void enable_stencil_test (bool val)
void report_texmgr_stats ()
void draw_multitri (Geom *geom, D3DPRIMITIVETYPE tri_id)
void draw_prim_inner_loop (int nVerts, const Geom *geom, ushort perFlags)
void draw_prim_inner_loop_coordtexonly (int nVerts, const Geom *geom)
size_t draw_prim_setup (const Geom *geom)
 CPT (DisplayRegion) _actual_display_region
INLINE void transform_color (Colorf &InColor, D3DCOLOR &OutColor)

Protected Attributes

bool _bDXisReady
HRESULT _last_testcooplevel_result
DXTextureContext8_pCurTexContext
bool _bTransformIssued
D3DMATRIX _SavedTransform
RenderBuffer::Type _cur_read_pixel_buffer
Normalf p_normal
TexCoordf p_texcoord
D3DCOLOR _curD3Dcolor
DWORD _perPrim
DWORD _perVertex
DWORD _perComp
DWORD _CurFVFType
BYTE * _pCurFvfBufPtr
BYTE * _pFvfBufBasePtr
WORD * _index_buf
D3DCOLOR _scene_graph_color_D3DCOLOR
D3DCOLOR _d3dcolor_clear_value
bool _bGouraudShadingOn
UINT _color_writemask
bool _bDrawPrimDoSetupVertexBuffer
DXGeomNodeContext8_pCurrentGeomContext
Geom::VertexIterator vi
Geom::NormalIterator ni
Geom::TexCoordIterator ti
Geom::ColorIterator ci
Vertexf_coord_array
Vertexf_pCurCoord
ushort_coordindex_array
ushort_pCurCoordIndex
TexCoordf_texcoord_array
TexCoordf_pCurTexCoord
ushort_texcoordindex_array
ushort_pCurTexCoordIndex
Colorf _lmodel_ambient
float _material_ambient
float _material_diffuse
float _material_specular
float _material_shininess
float _material_emission
DxgsgFogType _doFogType
bool _fog_enabled
float _alpha_func_refval
D3DCMPFUNC _alpha_func
D3DBLEND _blend_source_func
D3DBLEND _blend_dest_func
bool _line_smooth_enabled
bool _color_material_enabled
bool _texturing_enabled
bool _clipping_enabled
bool _dither_enabled
bool _stencil_test_enabled
bool _blend_enabled
bool _depth_test_enabled
bool _depth_write_enabled
bool _alpha_test_enabled
DWORD _clip_plane_bits
RenderModeAttrib::Mode _current_fill_mode
TextureApplyAttrib::Mode _CurTexBlendMode
D3DTEXTUREFILTERTYPE _CurTexMagFilter
D3DTEXTUREFILTERTYPE _CurTexMinFilter
D3DTEXTUREFILTERTYPE _CurTexMipFilter
DWORD _CurTexAnisoDegree
Texture::WrapMode _CurTexWrapModeU
Texture::WrapMode _CurTexWrapModeV
LMatrix4f _current_projection_mat
int _projection_mat_stack_count
bool _overlay_windows_supported

Static Private Attributes

TypeHandle _type_handle

Friends

class wdxGraphicsWindow8
class wdxGraphicsPipe8
class wdxGraphicsWindowGroup8
class DXTextureContext8

Member Enumeration Documentation

enum DXGraphicsStateGuardian8::DxgsgFogType [protected]
 

Enumeration values:
None 
PerVertexFog 
PerPixelFog 

Definition at line 277 of file dxGraphicsStateGuardian8.h.


Constructor & Destructor Documentation

DXGraphicsStateGuardian8::DXGraphicsStateGuardian8 const FrameBufferProperties properties  ) 
 

Definition at line 401 of file dxGraphicsStateGuardian8.cxx.

References _bDXisReady, GraphicsStateGuardian::_color_clear_value, _cur_read_pixel_buffer, _CurPixelShader, _CurVertexShader, _index_buf, _overlay_windows_supported, _pFvfBufBasePtr, _pGlobalTexture, _pScrn, matIdentity, NULL, reset_panda_gsg(), set_color_clear_value(), and RenderBuffer::T_front.

DXGraphicsStateGuardian8::~DXGraphicsStateGuardian8  ) 
 

Definition at line 437 of file dxGraphicsStateGuardian8.cxx.

References _pCurTexContext, _pD3DDevice, free_nondx_resources(), IS_VALID_PTR, and NULL.


Member Function Documentation

INLINE void DXGraphicsStateGuardian8::add_to_FVFBuf void *  data,
size_t  bytes
[protected]
 

Definition at line 1252 of file dxGraphicsStateGuardian8.cxx.

References _pCurFvfBufPtr, and data.

Referenced by draw_prim_inner_loop(), draw_sprite(), and GenerateSphere().

void DXGraphicsStateGuardian8::apply_fog Fog fog  )  [virtual]
 

Definition at line 3406 of file dxGraphicsStateGuardian8.cxx.

References _doFogType, _pD3DDevice, Colorf, Fog::get_color(), Fog::get_exp_density(), get_fog_mode_type(), Fog::get_linear_range(), Fog::get_mode(), Fog::M_exponential, Fog::M_exponential_squared, MY_D3DRGBA, and None.

Referenced by issue_fog().

void DXGraphicsStateGuardian8::apply_material const Material material  )  [virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 3390 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, Material::get_ambient(), Material::get_diffuse(), Material::get_emission(), Material::get_shininess(), and Material::get_specular().

Referenced by issue_material().

void DXGraphicsStateGuardian8::apply_texture TextureContext tc  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 2992 of file dxGraphicsStateGuardian8.cxx.

References DXTextureContext8::_bHasMipMaps, _CurTexAnisoDegree, _CurTexMagFilter, _CurTexMinFilter, _CurTexMipFilter, _CurTexWrapModeU, _CurTexWrapModeV, _pCurTexContext, _pD3DDevice, DXTextureContext8::_pD3DTexture8, _pScrn, DXTextureContext8::_tex, TextureContext::_texture, GraphicsStateGuardian::add_to_texture_record(), TextureContext::clear_dirty_flags(), DXTextureContext8::CreateTexture(), DCAST, DXTextureContext8::DeleteTexture(), Texture::DF_image, Texture::DF_mipmap, enable_texturing(), Texture::FT_linear, Texture::FT_linear_mipmap_linear, Texture::get_anisotropic_degree(), TextureContext::get_dirty_flags(), Texture::get_magfilter(), Texture::get_minfilter(), get_texture_wrap_mode(), Texture::get_wrapu(), Texture::get_wrapv(), NULL, PandaFilterNameStrs, release_texture(), tc, tex, uint, and Texture::WrapMode.

bool DXGraphicsStateGuardian8::begin_frame  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 3913 of file dxGraphicsStateGuardian8.cxx.

References GraphicsStateGuardian::begin_frame().

bool DXGraphicsStateGuardian8::begin_scene  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 3933 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, GraphicsStateGuardian::begin_scene(), CheckCooperativeLevel(), and D3DERRORSTRING.

void DXGraphicsStateGuardian8::bind_clip_plane PlaneNode plane,
int  plane_id
[protected, virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4336 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, CS_default, CS_yup_left, NodePath::get_mat(), and PlaneNode::get_plane().

void DXGraphicsStateGuardian8::bind_light Spotlight light,
int  light_id
[virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 3858 of file dxGraphicsStateGuardian8.cxx.

References __D3DLIGHT_RANGE_MAX, _pD3DDevice, CS_default, CS_yup_left, Spotlight::get_attenuation(), Lens::get_hfov(), LensNode::get_lens(), NodePath::get_mat(), Lens::get_nodal_point(), Spotlight::get_specular_color(), Lens::get_view_vector(), and NULL.

void DXGraphicsStateGuardian8::bind_light DirectionalLight light,
int  light_id
[virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 3817 of file dxGraphicsStateGuardian8.cxx.

References __D3DLIGHT_RANGE_MAX, _pD3DDevice, CS_default, CS_yup_left, DirectionalLight::get_direction(), and NodePath::get_mat().

void DXGraphicsStateGuardian8::bind_light PointLight light,
int  light_id
[virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 3776 of file dxGraphicsStateGuardian8.cxx.

References __D3DLIGHT_RANGE_MAX, _pD3DDevice, CS_default, CS_yup_left, PointLight::get_attenuation(), NodePath::get_mat(), and PointLight::get_point().

INLINE void DXGraphicsStateGuardian8::call_dxAlphaFunc D3DCMPFUNC  func,
float  refval
[protected]
 

Referenced by issue_alpha_test().

INLINE void DXGraphicsStateGuardian8::call_dxBlendFunc D3DBLEND  sfunc,
D3DBLEND  dfunc
[protected]
 

Referenced by set_blend_mode().

INLINE void DXGraphicsStateGuardian8::call_dxLightModelAmbient const Colorf color  )  [protected]
 

bool DXGraphicsStateGuardian8::CheckCooperativeLevel bool  bDoReactivateWindow = false  ) 
 

Definition at line 4696 of file dxGraphicsStateGuardian8.cxx.

References _bDXisReady, _last_testcooplevel_result, _pD3DDevice, _pScrn, D3DERRORSTRING, DXScreenData::PresParams, and reset_d3d_device().

Referenced by wdxGraphicsWindow8::begin_frame(), begin_scene(), end_scene(), and show_frame().

INLINE float DXGraphicsStateGuardian8::compute_distance_to const LPoint3f &  point  )  const [virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 4128 of file dxGraphicsStateGuardian8.cxx.

void DXGraphicsStateGuardian8::copy_pixel_buffer PixelBuffer pb,
const DisplayRegion dr,
const RenderBuffer rb
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 3379 of file dxGraphicsStateGuardian8.cxx.

References copy_pixel_buffer(), pb, and set_read_buffer().

void DXGraphicsStateGuardian8::copy_pixel_buffer PixelBuffer pb,
const DisplayRegion dr
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 3276 of file dxGraphicsStateGuardian8.cxx.

References _cur_read_pixel_buffer, PixelBuffer::_image, _pD3DDevice, _pScrn, ConvertD3DSurftoPixBuf(), D3DERRORSTRING, PointerToArray< unsigned char >::empty(), DisplayRegion::get_region_pixels(), PixelBuffer::get_xsize(), PixelBuffer::get_ysize(), DXScreenData::hMon, DXScreenData::hWnd, NULL, pb, DXScreenData::PresParams, RECT_XSIZE, RECT_YSIZE, RELEASE, RELEASE_ONCE, RenderBuffer::T_back, RenderBuffer::T_front, and w.

Referenced by copy_pixel_buffer().

void DXGraphicsStateGuardian8::copy_texture TextureContext tc,
const DisplayRegion dr,
const RenderBuffer rb
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 3221 of file dxGraphicsStateGuardian8.cxx.

References copy_texture(), set_read_buffer(), and tc.

void DXGraphicsStateGuardian8::copy_texture TextureContext tc,
const DisplayRegion dr
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 3172 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, DXTextureContext8::_pD3DTexture8, DXTextureContext8::_tex, D3DERRORSTRING, DCAST, DisplayRegion::get_region_pixels(), NULL, pb, SAFE_RELEASE, PixelBuffer::set_size(), tc, and w.

Referenced by copy_texture().

DXGraphicsStateGuardian8::CPT DisplayRegion   )  [protected, virtual]
 

Implements GraphicsStateGuardian.

virtual DXGraphicsStateGuardian8::CPT DisplayRegion   )  [protected, virtual]
 

Implements GraphicsStateGuardian.

Referenced by dx_init().

HRESULT DXGraphicsStateGuardian8::DeleteAllDeviceObjects void   )  [protected]
 

Definition at line 4582 of file dxGraphicsStateGuardian8.cxx.

References _CurPixelShader, _CurVertexShader, _pD3DDevice, _pGlobalTexture, delete_tex_callback(), SAFE_DELSHADER, SAFE_RELEASE, and GraphicsStateGuardian::traverse_prepared_textures().

Referenced by free_d3d_device().

bool DXGraphicsStateGuardian8::depth_offset_decals  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4096 of file dxGraphicsStateGuardian8.cxx.

void DXGraphicsStateGuardian8::do_clear const RenderBuffer buffer  )  [virtual]
 

Implements GraphicsStateGuardian.

Definition at line 942 of file dxGraphicsStateGuardian8.cxx.

References _d3dcolor_clear_value, GraphicsStateGuardian::_depth_clear_value, _pD3DDevice, _pScrn, GraphicsStateGuardian::_stencil_clear_value, buffer, D3DERRORSTRING, IS_STENCIL_FORMAT, NULL, DXScreenData::PresParams, RenderBuffer::T_back, RenderBuffer::T_depth, and RenderBuffer::T_stencil.

void DXGraphicsStateGuardian8::draw_geom_node GeomNode node,
const RenderState state,
GeomNodeContext gnc
[virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4910 of file dxGraphicsStateGuardian8.cxx.

void DXGraphicsStateGuardian8::draw_line GeomLine geom,
GeomContext gc
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 1611 of file dxGraphicsStateGuardian8.cxx.

References _bDrawPrimDoSetupVertexBuffer, GraphicsStateGuardian::_draw_primitive_pcollector, _pCurFvfBufPtr, _pD3DDevice, _perComp, _perPrim, _perVertex, _pFvfBufBasePtr, GraphicsStateGuardian::_vertices_other_pcollector, PStatCollector::add_level(), DO_PSTATS_STUFF, draw_prim_inner_loop(), draw_prim_setup(), DrawPrim, G_COLOR, G_NORMAL, G_PER_COMPONENT, G_PER_VERTEX, Geom::get_next_normal(), Geom::get_num_prims(), Geom::get_num_vertices(), GeomLine::get_width(), ni, NULL, p_normal, PER_COLOR, PER_NORMAL, TestDrawPrimFailure(), and VERT_BUFFER_SIZE.

void DXGraphicsStateGuardian8::draw_linestrip GeomLinestrip geom,
GeomContext gc
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 1707 of file dxGraphicsStateGuardian8.cxx.

References BOOL(), draw_linestrip_base(), and GeomLinestrip::get_width().

void DXGraphicsStateGuardian8::draw_linestrip_base Geom geom,
GeomContext gc,
bool  bConnectEnds
 

Definition at line 1727 of file dxGraphicsStateGuardian8.cxx.

References _bDrawPrimDoSetupVertexBuffer, GraphicsStateGuardian::_draw_primitive_pcollector, _pCurFvfBufPtr, _pD3DDevice, _perComp, _perPrim, _perVertex, _pFvfBufBasePtr, GraphicsStateGuardian::_vertices_other_pcollector, PStatCollector::add_level(), DO_PSTATS_STUFF, draw_prim_inner_loop(), draw_prim_setup(), DrawPrim, G_COLOR, G_NORMAL, G_PER_COMPONENT, G_PER_VERTEX, Geom::get_lengths(), Geom::get_next_normal(), Geom::get_num_prims(), Geom::get_num_vertices(), ni, NULL, p_normal, PER_COLOR, PER_NORMAL, TestDrawPrimFailure(), ushort, and VERT_BUFFER_SIZE.

Referenced by draw_linestrip(), draw_polygon(), and draw_quad().

void DXGraphicsStateGuardian8::draw_multitri Geom geom,
D3DPRIMITIVETYPE  tri_id
[protected]
 

Definition at line 2455 of file dxGraphicsStateGuardian8.cxx.

References _bDrawPrimDoSetupVertexBuffer, _CurFVFType, _pCurFvfBufPtr, _pD3DDevice, _perComp, _perPrim, _perVertex, _pFvfBufBasePtr, draw_prim_inner_loop(), draw_prim_inner_loop_coordtexonly(), draw_prim_setup(), DrawPrim, G_OFF, G_OVERALL, G_PER_COMPONENT, G_PER_PRIM, G_PER_VERTEX, GeomBindType, Geom::get_colors(), Geom::get_coords(), Geom::get_lengths(), Geom::get_next_normal(), Geom::get_normals(), Geom::get_num_prims(), Geom::get_texcoords(), ni, NULL, p_normal, PER_COLOR, PER_NORMAL, PER_TEXCOORD, TestDrawPrimFailure(), uint, and VERT_BUFFER_SIZE.

Referenced by draw_polygon(), draw_quad(), draw_trifan(), and draw_tristrip().

void DXGraphicsStateGuardian8::draw_point GeomPoint geom,
GeomContext gc
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 1534 of file dxGraphicsStateGuardian8.cxx.

References _bDrawPrimDoSetupVertexBuffer, GraphicsStateGuardian::_draw_primitive_pcollector, _pCurFvfBufPtr, _pD3DDevice, _perPrim, _perVertex, _pFvfBufBasePtr, GraphicsStateGuardian::_vertices_other_pcollector, PStatCollector::add_level(), DO_PSTATS_STUFF, draw_prim_inner_loop(), draw_prim_setup(), DrawPrim, G_COLOR, G_NORMAL, G_PER_VERTEX, GeomBindType, Geom::get_colors(), Geom::get_coords(), Geom::get_normals(), Geom::get_num_prims(), Geom::get_num_vertices(), GeomPoint::get_size(), Geom::get_texcoords(), NULL, PANDA_MAXNUMVERTS, PER_COLOR, PER_NORMAL, TestDrawPrimFailure(), and VERT_BUFFER_SIZE.

void DXGraphicsStateGuardian8::draw_polygon GeomPolygon geom,
GeomContext gc
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 2223 of file dxGraphicsStateGuardian8.cxx.

References GraphicsStateGuardian::_draw_primitive_pcollector, _pD3DDevice, GraphicsStateGuardian::_vertices_other_pcollector, PStatCollector::add_level(), DO_PSTATS_STUFF, draw_linestrip_base(), draw_multitri(), and Geom::get_num_vertices().

void DXGraphicsStateGuardian8::draw_prim_inner_loop int  nVerts,
const Geom geom,
ushort  perFlags
[protected]
 

Definition at line 1422 of file dxGraphicsStateGuardian8.cxx.

References _curD3Dcolor, _CurFVFType, add_to_FVFBuf(), Color_TexCoord, ColorOnly, DrawLoopFlags, Normal_Color, Normal_Color_TexCoord, Normal_TexCoord, NormalOnly, p_normal, p_texcoord, TexCoordf, TexCoordOnly, and Vertexf.

Referenced by draw_line(), draw_linestrip_base(), draw_multitri(), draw_point(), and draw_tri().

void DXGraphicsStateGuardian8::draw_prim_inner_loop_coordtexonly int  nVerts,
const Geom geom
[protected]
 

Definition at line 1471 of file dxGraphicsStateGuardian8.cxx.

References _coord_array, _coordindex_array, _curD3Dcolor, _pCurCoord, _pCurCoordIndex, _pCurFvfBufPtr, _pCurTexCoord, _pCurTexCoordIndex, _texcoord_array, _texcoordindex_array, G_COLOR, G_NORMAL, G_OFF, G_PER_COMPONENT, G_PER_VERTEX, G_TEXCOORD, GeomBindType, NULL, TexCoordf, ushort, and Vertexf.

Referenced by draw_multitri(), and draw_tri().

size_t DXGraphicsStateGuardian8::draw_prim_setup const Geom geom  )  [protected]
 

Definition at line 1291 of file dxGraphicsStateGuardian8.cxx.

References GraphicsStateGuardian::_color_transform_enabled, _coord_array, _coordindex_array, _curD3Dcolor, _fog_enabled, GraphicsStateGuardian::_has_scene_graph_color, _pCurCoord, _pCurCoordIndex, _pCurTexCoord, _pCurTexCoordIndex, _perComp, _perPrim, _perVertex, GraphicsStateGuardian::_scene_graph_color, _scene_graph_color_D3DCOLOR, GraphicsStateGuardian::_scene_graph_color_stale, _texcoord_array, _texcoordindex_array, ci, Colorf_to_D3DCOLOR(), enable_gouraud_shading(), G_COLOR, G_COORD, G_NORMAL, G_OFF, G_OVERALL, G_PER_VERTEX, GeomBindType, Geom::get_coords(), Geom::get_next_normal(), Geom::get_texcoords(), Geom::make_color_iterator(), Geom::make_normal_iterator(), Geom::make_texcoord_iterator(), Geom::make_vertex_iterator(), ni, NULL, p_normal, PER_COLOR, PER_NORMAL, set_vertex_format(), ti, transform_color(), vi, and wants_normals().

Referenced by draw_line(), draw_linestrip_base(), draw_multitri(), draw_point(), draw_sphere(), and draw_tri().

void DXGraphicsStateGuardian8::draw_quad GeomQuad geom,
GeomContext gc
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 2247 of file dxGraphicsStateGuardian8.cxx.

References GraphicsStateGuardian::_draw_primitive_pcollector, _pD3DDevice, GraphicsStateGuardian::_vertices_other_pcollector, PStatCollector::add_level(), DO_PSTATS_STUFF, draw_linestrip_base(), draw_multitri(), and Geom::get_num_vertices().

void DXGraphicsStateGuardian8::draw_sphere GeomSphere geom,
GeomContext gc
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 2888 of file dxGraphicsStateGuardian8.cxx.

References _CurFVFType, GraphicsStateGuardian::_draw_primitive_pcollector, _index_buf, _pCurFvfBufPtr, _pD3DDevice, _pFvfBufBasePtr, GraphicsStateGuardian::_vertices_other_pcollector, PStatCollector::add_level(), ci, DO_PSTATS_STUFF, dot(), draw_prim_setup(), DrawIndexedPrim, G_COLOR, G_PER_PRIM, GenerateSphere(), Geom::get_next_vertex(), Geom::get_num_prims(), Geom::get_num_vertices(), Geom::make_color_iterator(), Geom::make_vertex_iterator(), NULL, PANDA_MAXNUMVERTS, TestDrawPrimFailure(), v, VERT_BUFFER_SIZE, Vertexf, and vi.

void DXGraphicsStateGuardian8::draw_sprite GeomSprite geom,
GeomContext gc
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 1855 of file dxGraphicsStateGuardian8.cxx.

References WrappedSprite::_c, _curD3Dcolor, GraphicsStateGuardian::_draw_primitive_pcollector, _fog_enabled, _index_buf, _pCurFvfBufPtr, _pD3DDevice, _pFvfBufBasePtr, WrappedSprite::_theta, GeomSprite::_theta, WrappedSprite::_v, GraphicsStateGuardian::_vertices_other_pcollector, WrappedSprite::_x_ratio, GeomSprite::_x_texel_ratio, WrappedSprite::_y_ratio, GeomSprite::_y_texel_ratio, PStatCollector::add_level(), add_to_FVFBuf(), alpha, ci, Colorf, DO_PSTATS_STUFF, DrawIndexedPrim, enable_dither(), enable_gouraud_shading(), G_COLOR, G_OFF, G_OVERALL, G_PER_VERTEX, GeomSprite::get_alpha_disable(), GeomSprite::get_ll_uv(), TransparencyAttrib::get_mode(), Geom::get_next_vertex(), Geom::get_num_prims(), GeomSprite::get_texture(), GeomSprite::get_theta_bind_type(), GeomSprite::get_ur_uv(), GeomSprite::get_x_bind_type(), GeomSprite::get_y_bind_type(), RenderAttrib::M_none, Geom::make_color_iterator(), Geom::make_vertex_iterator(), matIdentity, GraphicsStateGuardian::modify_state(), NULL, PANDA_MAXNUMVERTS, WrappedSpriteSortPtr::pSpr, set_vertex_format(), TestDrawPrimFailure(), tex, VERT_BUFFER_SIZE, Vertexf, vi, x, y, z, and WrappedSpriteSortPtr::z.

void DXGraphicsStateGuardian8::draw_tri GeomTri geom,
GeomContext gc
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 2272 of file dxGraphicsStateGuardian8.cxx.

References _bDrawPrimDoSetupVertexBuffer, _CurFVFType, GraphicsStateGuardian::_draw_primitive_pcollector, _pCurFvfBufPtr, _pCurTexContext, _pD3DDevice, _perPrim, _perVertex, _pFvfBufBasePtr, DXTextureContext8::_tex, GraphicsStateGuardian::_vertices_tri_pcollector, PStatCollector::add_level(), DO_PSTATS_STUFF, draw_prim_inner_loop(), draw_prim_inner_loop_coordtexonly(), draw_prim_setup(), DrawPrim, G_OFF, G_PER_PRIM, G_PER_VERTEX, GeomBindType, Geom::get_colors(), Geom::get_coords(), Geom::get_next_normal(), Geom::get_normals(), Geom::get_num_prims(), Geom::get_num_vertices(), Geom::get_texcoords(), MY_D3DRGBA, ni, NULL, p_normal, PER_COLOR, PER_NORMAL, PER_TEXCOORD, set_vertex_format(), TestDrawPrimFailure(), uint, and VERT_BUFFER_SIZE.

void DXGraphicsStateGuardian8::draw_trifan GeomTrifan geom,
GeomContext gc
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 2438 of file dxGraphicsStateGuardian8.cxx.

References GraphicsStateGuardian::_draw_primitive_pcollector, GraphicsStateGuardian::_vertices_trifan_pcollector, PStatCollector::add_level(), DO_PSTATS_STUFF, draw_multitri(), and Geom::get_num_vertices().

void DXGraphicsStateGuardian8::draw_tristrip GeomTristrip geom,
GeomContext gc
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 2421 of file dxGraphicsStateGuardian8.cxx.

References GraphicsStateGuardian::_draw_primitive_pcollector, GraphicsStateGuardian::_vertices_tristrip_pcollector, PStatCollector::add_level(), DO_PSTATS_STUFF, draw_multitri(), and Geom::get_num_vertices().

void DXGraphicsStateGuardian8::dx_cleanup bool  bRestoreDisplayMode,
bool  bAtExitFnCalled
 

Definition at line 4495 of file dxGraphicsStateGuardian8.cxx.

References _CurPixelShader, _CurVertexShader, _pD3DDevice, _pGlobalTexture, _pScrn, D3D_MAXTEXTURESTAGES, free_nondx_resources(), NULL, DXScreenData::pD3DDevice, PRINT_REFCNT, RELEASE, GraphicsStateGuardian::release_all_geoms(), RELEASE_DOWN_TO_ZERO, SAFE_DELSHADER, and SAFE_RELEASE.

void DXGraphicsStateGuardian8::dx_init void   ) 
 

Definition at line 510 of file dxGraphicsStateGuardian8.cxx.

References _alpha_func, _alpha_func_refval, _alpha_test_enabled, _bDrawPrimDoSetupVertexBuffer, _bGouraudShadingOn, _blend_dest_func, _blend_enabled, _blend_source_func, _clip_plane_bits, _clipping_enabled, _color_material_enabled, _color_writemask, _CurFVFType, _CurPixelShader, _current_fill_mode, _current_projection_mat, _CurTexAnisoDegree, _CurTexBlendMode, _CurTexMagFilter, _CurTexMinFilter, _CurTexMipFilter, _CurTexWrapModeU, _CurTexWrapModeV, _CurVertexShader, _depth_test_enabled, _dither_enabled, _doFogType, _fog_enabled, GraphicsStateGuardian::_has_scene_graph_color, _index_buf, _last_testcooplevel_result, _line_smooth_enabled, _lmodel_ambient, GraphicsStateGuardian::_normals_enabled, _pCurFvfBufPtr, _pCurrentGeomContext, _pCurTexContext, _pD3DDevice, _pFvfBufBasePtr, _pGlobalTexture, _projection_mat_stack_count, _pScrn, _stencil_test_enabled, _texturing_enabled, DXScreenData::bCanDirectDisableColorWrites, DXScreenData::CardIDNum, Colorf, CPT(), DXScreenData::d3dcaps, D3DERRORSTRING, D3DFORMAT_FLAG, DXScreenData::DisplayMode, dx_decal_type, dx_force_backface_culling, dx_globaltexture_stagenum, dx_ignore_mipmaps, dx_no_dithering, dx_use_rangebased_fog, enable_line_smooth(), g_D3DFORMATmap, GDT_blend, GDT_mask, GDT_offset, get_texture_wrap_mode(), init_shader(), IS_16BPP_DISPLAY_FORMAT, CullFaceAttrib::M_cull_clockwise, RenderAttrib::M_less, DepthWriteAttrib::M_on, MAX_POSSIBLE_TEXFMTS, None, NULL, PANDA_MAXNUMVERTS, DXScreenData::pD3D8, pdx_globaltexture_filename, pdx_pixelshader_filename, pdx_vertexshader_filename, PerPixelFog, PerVertexFog, PixelShader, DXScreenData::PresParams, PRINT_REFCNT, GraphicsStateGuardian::set_state(), DXScreenData::SupportedTexFmtsMask, VERT_BUFFER_SIZE, VertexShader, and Texture::WM_clamp.

Referenced by wdxGraphicsWindow8::init_resized_window().

void DXGraphicsStateGuardian8::DXGraphicsStateGuardian8::SetTextureBlendMode TextureApplyAttrib::Mode  TexBlendMode,
bool  bJustEnable
 

INLINE void DXGraphicsStateGuardian8::enable_alpha_test bool  val  )  [protected]
 

Referenced by issue_alpha_test().

INLINE void DXGraphicsStateGuardian8::enable_blend bool  val  )  [protected]
 

Referenced by set_blend_mode().

INLINE void DXGraphicsStateGuardian8::enable_clip_plane int  plane_id,
bool  enable
[protected, virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4314 of file dxGraphicsStateGuardian8.cxx.

References _clip_plane_bits, and _pD3DDevice.

INLINE void DXGraphicsStateGuardian8::enable_color_material bool  val  )  [protected]
 

INLINE void DXGraphicsStateGuardian8::enable_dither bool  val  )  [protected]
 

Referenced by draw_sprite().

INLINE void DXGraphicsStateGuardian8::enable_fog bool  val  )  [protected]
 

Referenced by issue_fog().

INLINE void DXGraphicsStateGuardian8::enable_gouraud_shading bool  val  )  [protected]
 

Referenced by draw_prim_setup(), and draw_sprite().

void DXGraphicsStateGuardian8::enable_light int  light_id,
bool  enable
[protected, virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4277 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice.

void DXGraphicsStateGuardian8::enable_lighting bool  enable  )  [protected, virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4251 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice.

INLINE void DXGraphicsStateGuardian8::enable_line_smooth bool  val  )  [protected]
 

Referenced by dx_init().

INLINE void DXGraphicsStateGuardian8::enable_point_smooth bool  val  )  [protected]
 

INLINE void DXGraphicsStateGuardian8::enable_primitive_clipping bool  val  )  [protected]
 

INLINE void DXGraphicsStateGuardian8::enable_stencil_test bool  val  )  [protected]
 

INLINE void DXGraphicsStateGuardian8::enable_texturing bool  val  )  [protected]
 

Definition at line 3545 of file dxGraphicsStateGuardian8.cxx.

References _CurTexBlendMode, _pD3DDevice, and _texturing_enabled.

Referenced by apply_texture(), and issue_texture().

INLINE void DXGraphicsStateGuardian8::enable_zwritemask bool  val  )  [protected]
 

Referenced by issue_depth_write().

void DXGraphicsStateGuardian8::end_frame  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4000 of file dxGraphicsStateGuardian8.cxx.

References GraphicsStateGuardian::_texmgrmem_total_pcollector, GraphicsStateGuardian::end_frame(), PStatCollector::is_active(), and report_texmgr_stats().

void DXGraphicsStateGuardian8::end_scene  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 3971 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, CheckCooperativeLevel(), and D3DERRORSTRING.

virtual TypeHandle DXGraphicsStateGuardian8::force_init_type void   )  [inline, virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 344 of file dxGraphicsStateGuardian8.h.

References GraphicsStateGuardian::get_class_type(), and GraphicsStateGuardian::init_type().

void DXGraphicsStateGuardian8::free_d3d_device void   )  [protected]
 

Definition at line 468 of file dxGraphicsStateGuardian8.cxx.

References _bDXisReady, _pD3DDevice, D3D_MAXTEXTURESTAGES, DeleteAllDeviceObjects(), free_nondx_resources(), NULL, RELEASE, RELEASE_DOWN_TO_ZERO, and GraphicsStateGuardian::set_state().

void DXGraphicsStateGuardian8::free_nondx_resources  )  [protected]
 

Definition at line 496 of file dxGraphicsStateGuardian8.cxx.

References _index_buf, _pFvfBufBasePtr, and SAFE_DELETE_ARRAY.

Referenced by dx_cleanup(), free_d3d_device(), and ~DXGraphicsStateGuardian8().

void DXGraphicsStateGuardian8::GenerateSphere void *  pVertexSpace,
DWORD  dwVertSpaceByteSize,
void *  pIndexSpace,
DWORD  dwIndexSpaceByteSize,
D3DXVECTOR3 *  pCenter,
float  fRadius,
DWORD  wNumRings,
DWORD  wNumSections,
float  sx,
float  sy,
float  sz,
DWORD *  pNumVertices,
DWORD *  pNumTris,
DWORD  fvfFlags,
DWORD  dwVertSize
[protected]
 

Definition at line 2643 of file dxGraphicsStateGuardian8.cxx.

References _curD3Dcolor, _pCurFvfBufPtr, add_to_FVFBuf(), csincos(), PANDA_MAXNUMVERTS, TexCoordf, VERT_BUFFER_SIZE, x, y, and z.

Referenced by draw_sphere().

TypeHandle DXGraphicsStateGuardian8::get_class_type void   )  [static]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4480 of file dxGraphicsStateGuardian8.cxx.

References _type_handle.

Referenced by get_type().

INLINE D3DFOGMODE DXGraphicsStateGuardian8::get_fog_mode_type Fog::Mode  m  )  const [protected]
 

Definition at line 4229 of file dxGraphicsStateGuardian8.cxx.

References Fog::M_exponential, and Fog::M_exponential_squared.

Referenced by apply_fog().

CoordinateSystem DXGraphicsStateGuardian8::get_internal_coordinate_system  )  const [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4115 of file dxGraphicsStateGuardian8.cxx.

References CS_yup_left.

INLINE D3DTEXTUREADDRESS DXGraphicsStateGuardian8::get_texture_wrap_mode Texture::WrapMode  wm  )  const [protected]
 

Definition at line 4216 of file dxGraphicsStateGuardian8.cxx.

References Texture::WM_invalid.

Referenced by apply_texture(), and dx_init().

TypeHandle DXGraphicsStateGuardian8::get_type void   )  const [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4476 of file dxGraphicsStateGuardian8.cxx.

References get_class_type().

INLINE bool DXGraphicsStateGuardian8::GetDXReady void   )  [inline]
 

Definition at line 346 of file dxGraphicsStateGuardian8.h.

void DXGraphicsStateGuardian8::init_shader ShaderType  stype,
DXShaderHandle hShader,
string *  pFname
 

Definition at line 842 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, _pScrn, DXScreenData::bCanUsePixelShaders, DXScreenData::bIsDX81, D3DERRORSTRING, NULL, PixelShader, read_pixel_shader(), read_vertex_shader(), and VertexShader.

Referenced by dx_init().

void DXGraphicsStateGuardian8::init_type void   )  [static]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4484 of file dxGraphicsStateGuardian8.cxx.

References _type_handle, GraphicsStateGuardian::get_class_type(), GraphicsStateGuardian::init_type(), and register_type().

Referenced by init_libdxgsg8().

void DXGraphicsStateGuardian8::issue_alpha_test const AlphaTestAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 3692 of file dxGraphicsStateGuardian8.cxx.

References call_dxAlphaFunc(), enable_alpha_test(), AlphaTestAttrib::get_mode(), AlphaTestAttrib::get_reference_alpha(), RenderAttrib::M_none, mode, and RenderAttrib::PandaCompareFunc.

void DXGraphicsStateGuardian8::issue_color_write const ColorWriteAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4349 of file dxGraphicsStateGuardian8.cxx.

References GraphicsStateGuardian::_color_write_mode, ColorWriteAttrib::get_mode(), ColorWriteAttrib::M_on, and set_color_writemask().

void DXGraphicsStateGuardian8::issue_cull_face const CullFaceAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 3719 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, CullFaceAttrib::get_effective_mode(), CullFaceAttrib::M_cull_clockwise, CullFaceAttrib::M_cull_counter_clockwise, and mode.

void DXGraphicsStateGuardian8::issue_depth_offset const DepthOffsetAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 3762 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, and DepthOffsetAttrib::get_offset().

void DXGraphicsStateGuardian8::issue_depth_test const DepthTestAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 3674 of file dxGraphicsStateGuardian8.cxx.

References _depth_test_enabled, _pD3DDevice, DepthTestAttrib::get_mode(), RenderAttrib::M_none, mode, and RenderAttrib::PandaCompareFunc.

void DXGraphicsStateGuardian8::issue_depth_write const DepthWriteAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 3709 of file dxGraphicsStateGuardian8.cxx.

References enable_zwritemask(), DepthWriteAttrib::get_mode(), and DepthWriteAttrib::M_on.

void DXGraphicsStateGuardian8::issue_fog const FogAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 3745 of file dxGraphicsStateGuardian8.cxx.

References apply_fog(), enable_fog(), FogAttrib::get_fog(), FogAttrib::is_off(), and NULL.

void DXGraphicsStateGuardian8::issue_material const MaterialAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 3622 of file dxGraphicsStateGuardian8.cxx.

References apply_material(), MaterialAttrib::get_material(), and NULL.

void DXGraphicsStateGuardian8::issue_render_mode const RenderModeAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 3639 of file dxGraphicsStateGuardian8.cxx.

References _current_fill_mode, _pD3DDevice, RenderModeAttrib::get_mode(), RenderModeAttrib::M_wireframe, and mode.

void DXGraphicsStateGuardian8::issue_tex_matrix const TexMatrixAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 3595 of file dxGraphicsStateGuardian8.cxx.

void DXGraphicsStateGuardian8::issue_texture const TextureAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 3605 of file dxGraphicsStateGuardian8.cxx.

References Texture::apply(), enable_texturing(), TextureAttrib::get_texture(), TextureAttrib::is_off(), NULL, and tex.

void DXGraphicsStateGuardian8::issue_texture_apply const TextureApplyAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 3665 of file dxGraphicsStateGuardian8.cxx.

void DXGraphicsStateGuardian8::issue_transform const TransformState transform  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 3569 of file dxGraphicsStateGuardian8.cxx.

References _CurVertexShader, _pD3DDevice, D3DERRORSTRING, NULL, transform, and VSHADER_XFORMMATRIX_CONSTANTREGNUMSTART.

GraphicsStateGuardian* DXGraphicsStateGuardian8::make_DXGraphicsStateGuardian8 const FactoryParams params  )  [static]
 

void DXGraphicsStateGuardian8::prepare_display_region  )  [virtual]
 

Implements GraphicsStateGuardian.

Definition at line 982 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, b, D3DERRORSTRING, and w.

GeomNodeContext * DXGraphicsStateGuardian8::prepare_geom_node GeomNode node  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4898 of file dxGraphicsStateGuardian8.cxx.

References NULL.

bool DXGraphicsStateGuardian8::prepare_lens  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 1018 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, CS_yup_left, and NULL.

TextureContext * DXGraphicsStateGuardian8::prepare_texture Texture tex  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 2957 of file dxGraphicsStateGuardian8.cxx.

References _pScrn, DXTextureContext8::CreateTexture(), DXTextureContext8, GraphicsStateGuardian::mark_prepared_texture(), NULL, and tex.

virtual DXGraphicsStateGuardian8::PT SavedFrameBuffer   )  const [protected, virtual]
 

Reimplemented from GraphicsStateGuardian.

Referenced by texture_to_pixel_buffer().

DXShaderHandle DXGraphicsStateGuardian8::read_pixel_shader string &  filename  ) 
 

Definition at line 191 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, _pScrn, DXScreenData::bCanUsePixelShaders, D3DERRORSTRING, DXShaderHandle, HANDLE(), NULL, SAFE_DELETE, and SAFE_RELEASE.

Referenced by init_shader().

DXShaderHandle DXGraphicsStateGuardian8::read_vertex_shader string &  filename  ) 
 

Definition at line 269 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, _pScrn, DXScreenData::bCanUseHWVertexShaders, D3DERRORSTRING, DXShaderHandle, HANDLE(), NULL, SAFE_DELETE, and SAFE_RELEASE.

Referenced by init_shader().

HRESULT DXGraphicsStateGuardian8::RecreateAllDeviceObjects void   )  [protected]
 

Definition at line 4610 of file dxGraphicsStateGuardian8.cxx.

References recreate_tex_callback(), and GraphicsStateGuardian::traverse_prepared_textures().

void DXGraphicsStateGuardian8::release_geom_node GeomNodeContext gnc  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4923 of file dxGraphicsStateGuardian8.cxx.

void DXGraphicsStateGuardian8::release_texture TextureContext tc  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 3153 of file dxGraphicsStateGuardian8.cxx.

References Texture::clear_gsg(), DCAST, DXTextureContext8::DeleteTexture(), tc, tex, and GraphicsStateGuardian::unmark_prepared_texture().

Referenced by apply_texture().

HRESULT DXGraphicsStateGuardian8::ReleaseAllDeviceObjects void   )  [protected]
 

Definition at line 4621 of file dxGraphicsStateGuardian8.cxx.

Referenced by reset_d3d_device().

void DXGraphicsStateGuardian8::report_texmgr_stats  )  [protected]
 

Definition at line 1115 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, GraphicsStateGuardian::_texmgrmem_resident_pcollector, GraphicsStateGuardian::_texmgrmem_total_pcollector, GraphicsStateGuardian::_total_texmem_pcollector, GraphicsStateGuardian::_used_texmem_pcollector, D3DERRORSTRING, PStatCollector::is_active(), r, and PStatCollector::set_level().

Referenced by end_frame().

void DXGraphicsStateGuardian8::reset  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 457 of file dxGraphicsStateGuardian8.cxx.

References reset_panda_gsg().

HRESULT DXGraphicsStateGuardian8::reset_d3d_device D3DPRESENT_PARAMETERS *  pPresParams  ) 
 

Definition at line 4670 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, _pScrn, DXScreenData::CardIDNum, DXScreenData::DisplayMode, dx_full_screen, IS_VALID_PTR, DXScreenData::pD3D8, DXScreenData::PresParams, and ReleaseAllDeviceObjects().

Referenced by CheckCooperativeLevel(), and wdxGraphicsWindow8::reset_device_resize_window().

void DXGraphicsStateGuardian8::reset_panda_gsg void   ) 
 

Definition at line 377 of file dxGraphicsStateGuardian8.cxx.

References GraphicsStateGuardian::_buffer_mask, GraphicsStateGuardian::reset(), RenderBuffer::T_back, and RenderBuffer::T_color.

Referenced by DXGraphicsStateGuardian8(), and reset().

void DXGraphicsStateGuardian8::restore_frame_buffer SavedFrameBuffer frame_buffer  )  [protected, virtual]
 

Implements GraphicsStateGuardian.

Definition at line 4471 of file dxGraphicsStateGuardian8.cxx.

void DXGraphicsStateGuardian8::set_ambient_light const Colorf color  )  [protected, virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4264 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, and Colorf_to_D3DCOLOR().

void DXGraphicsStateGuardian8::set_blend_mode ColorWriteAttrib::Mode  color_write_mode,
ColorBlendAttrib::Mode  color_blend_mode,
TransparencyAttrib::Mode  transparency_mode
[protected, virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4363 of file dxGraphicsStateGuardian8.cxx.

References _pScrn, DXScreenData::bCanDirectDisableColorWrites, call_dxBlendFunc(), enable_blend(), ColorBlendAttrib::M_add, TransparencyAttrib::M_alpha, TransparencyAttrib::M_alpha_sorted, TransparencyAttrib::M_binary, TransparencyAttrib::M_dual, ColorBlendAttrib::M_multiply, ColorBlendAttrib::M_multiply_add, TransparencyAttrib::M_multisample, TransparencyAttrib::M_multisample_mask, and RenderAttrib::M_none.

void DXGraphicsStateGuardian8::set_color_clear_value const Colorf value  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 185 of file dxGraphicsStateGuardian8.cxx.

References GraphicsStateGuardian::_color_clear_value, _d3dcolor_clear_value, and Colorf_to_D3DCOLOR().

Referenced by Colorf_to_D3DCOLOR(), and DXGraphicsStateGuardian8().

INLINE void DXGraphicsStateGuardian8::set_color_writemask UINT  color_writemask  )  [protected]
 

Referenced by issue_color_write().

void DXGraphicsStateGuardian8::set_context DXScreenData pNewContextData  ) 
 

Definition at line 4543 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, _pScrn, NULL, and DXScreenData::pD3DDevice.

Referenced by wdxGraphicsWindow8::init_resized_window(), and wdxGraphicsWindow8::make_current().

void DXGraphicsStateGuardian8::set_draw_buffer const RenderBuffer rb  )  [protected]
 

Definition at line 4147 of file dxGraphicsStateGuardian8.cxx.

References RenderBuffer::_buffer_type, RenderBuffer::T_back, RenderBuffer::T_back_left, RenderBuffer::T_back_right, RenderBuffer::T_color, RenderBuffer::T_front, RenderBuffer::T_front_left, RenderBuffer::T_front_right, RenderBuffer::T_left, and RenderBuffer::T_right.

void DXGraphicsStateGuardian8::set_read_buffer const RenderBuffer rb  )  [protected]
 

Definition at line 4197 of file dxGraphicsStateGuardian8.cxx.

References RenderBuffer::_buffer_type, _cur_read_pixel_buffer, RenderBuffer::T_back, and RenderBuffer::T_front.

Referenced by copy_pixel_buffer(), and copy_texture().

INLINE void DXGraphicsStateGuardian8::set_vertex_format DWORD  NewFvfType  )  [protected]
 

Referenced by draw_prim_setup(), draw_sprite(), and draw_tri().

INLINE void DXGraphicsStateGuardian8::SetDXReady bool  status  )  [inline]
 

Definition at line 345 of file dxGraphicsStateGuardian8.h.

void DXGraphicsStateGuardian8::show_frame bool  bNoNewFrameDrawn = false  ) 
 

Definition at line 4631 of file dxGraphicsStateGuardian8.cxx.

References _pD3DDevice, _pScrn, CheckCooperativeLevel(), D3DERRORSTRING, NULL, and DXScreenData::PresParams.

Referenced by wdxGraphicsWindow8::end_flip().

bool DXGraphicsStateGuardian8::slot_new_clip_plane int  plane_id  )  [protected, virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4301 of file dxGraphicsStateGuardian8.cxx.

void DXGraphicsStateGuardian8::support_overlay_window bool  flag  ) 
 

Definition at line 904 of file dxGraphicsStateGuardian8.cxx.

void DXGraphicsStateGuardian8::texture_to_pixel_buffer TextureContext tc,
PixelBuffer pb,
const DisplayRegion dr
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 3264 of file dxGraphicsStateGuardian8.cxx.

void DXGraphicsStateGuardian8::texture_to_pixel_buffer TextureContext tc,
PixelBuffer pb
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 3232 of file dxGraphicsStateGuardian8.cxx.

References GraphicsStateGuardian::get_render_buffer(), NULL, pb, GraphicsStateGuardian::pop_frame_buffer(), PT(), GraphicsStateGuardian::push_frame_buffer(), RenderBuffer::T_back, RenderBuffer::T_depth, tc, tex, and w.

INLINE void DXGraphicsStateGuardian8::transform_color Colorf InColor,
D3DCOLOR &  OutColor
[protected]
 

Definition at line 1276 of file dxGraphicsStateGuardian8.cxx.

References GraphicsStateGuardian::_current_color_offset, GraphicsStateGuardian::_current_color_scale, Colorf, and Colorf_to_D3DCOLOR().

Referenced by draw_prim_setup().

INLINE bool DXGraphicsStateGuardian8::wants_normals void   )  const [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4072 of file dxGraphicsStateGuardian8.cxx.

References GraphicsStateGuardian::_lighting_enabled, and GraphicsStateGuardian::_normals_enabled.

Referenced by draw_prim_setup().

INLINE bool DXGraphicsStateGuardian8::wants_texcoords void   )  const [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 4082 of file dxGraphicsStateGuardian8.cxx.

References _texturing_enabled.


Friends And Related Function Documentation

friend class DXTextureContext8 [friend]
 

Definition at line 70 of file dxGraphicsStateGuardian8.h.

Referenced by prepare_texture().

friend class wdxGraphicsPipe8 [friend]
 

Definition at line 68 of file dxGraphicsStateGuardian8.h.

friend class wdxGraphicsWindow8 [friend]
 

Definition at line 67 of file dxGraphicsStateGuardian8.h.

friend class wdxGraphicsWindowGroup8 [friend]
 

Definition at line 69 of file dxGraphicsStateGuardian8.h.


Member Data Documentation

D3DCMPFUNC DXGraphicsStateGuardian8::_alpha_func [protected]
 

Definition at line 289 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

float DXGraphicsStateGuardian8::_alpha_func_refval [protected]
 

Definition at line 288 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

bool DXGraphicsStateGuardian8::_alpha_test_enabled [protected]
 

Definition at line 303 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

bool DXGraphicsStateGuardian8::_bDrawPrimDoSetupVertexBuffer [protected]
 

Definition at line 247 of file dxGraphicsStateGuardian8.h.

Referenced by draw_line(), draw_linestrip_base(), draw_multitri(), draw_point(), draw_tri(), and dx_init().

bool DXGraphicsStateGuardian8::_bDXisReady [protected]
 

Definition at line 180 of file dxGraphicsStateGuardian8.h.

Referenced by CheckCooperativeLevel(), DXGraphicsStateGuardian8(), and free_d3d_device().

bool DXGraphicsStateGuardian8::_bGouraudShadingOn [protected]
 

Definition at line 245 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

D3DBLEND DXGraphicsStateGuardian8::_blend_dest_func [protected]
 

Definition at line 292 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

bool DXGraphicsStateGuardian8::_blend_enabled [protected]
 

Definition at line 300 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

D3DBLEND DXGraphicsStateGuardian8::_blend_source_func [protected]
 

Definition at line 291 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

bool DXGraphicsStateGuardian8::_bTransformIssued [protected]
 

Definition at line 184 of file dxGraphicsStateGuardian8.h.

DWORD DXGraphicsStateGuardian8::_clip_plane_bits [protected]
 

Definition at line 304 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init(), and enable_clip_plane().

bool DXGraphicsStateGuardian8::_clipping_enabled [protected]
 

Definition at line 297 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

bool DXGraphicsStateGuardian8::_color_material_enabled [protected]
 

Definition at line 295 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

UINT DXGraphicsStateGuardian8::_color_writemask [protected]
 

Definition at line 246 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

Vertexf* DXGraphicsStateGuardian8::_coord_array [protected]
 

Definition at line 258 of file dxGraphicsStateGuardian8.h.

Referenced by draw_prim_inner_loop_coordtexonly(), and draw_prim_setup().

ushort* DXGraphicsStateGuardian8::_coordindex_array [protected]
 

Definition at line 259 of file dxGraphicsStateGuardian8.h.

Referenced by draw_prim_inner_loop_coordtexonly(), and draw_prim_setup().

RenderBuffer::Type DXGraphicsStateGuardian8::_cur_read_pixel_buffer [protected]
 

Definition at line 187 of file dxGraphicsStateGuardian8.h.

Referenced by copy_pixel_buffer(), DXGraphicsStateGuardian8(), and set_read_buffer().

D3DCOLOR DXGraphicsStateGuardian8::_curD3Dcolor [protected]
 

Definition at line 235 of file dxGraphicsStateGuardian8.h.

Referenced by draw_prim_inner_loop(), draw_prim_inner_loop_coordtexonly(), draw_prim_setup(), draw_sprite(), and GenerateSphere().

DWORD DXGraphicsStateGuardian8::_CurFVFType [protected]
 

Definition at line 237 of file dxGraphicsStateGuardian8.h.

Referenced by draw_multitri(), draw_prim_inner_loop(), draw_sphere(), draw_tri(), and dx_init().

DXShaderHandle DXGraphicsStateGuardian8::_CurPixelShader
 

Definition at line 354 of file dxGraphicsStateGuardian8.h.

Referenced by DeleteAllDeviceObjects(), dx_cleanup(), dx_init(), and DXGraphicsStateGuardian8().

RenderModeAttrib::Mode DXGraphicsStateGuardian8::_current_fill_mode [protected]
 

Definition at line 306 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init(), and issue_render_mode().

LMatrix4f DXGraphicsStateGuardian8::_current_projection_mat [protected]
 

Definition at line 316 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

DWORD DXGraphicsStateGuardian8::_CurTexAnisoDegree [protected]
 

Definition at line 314 of file dxGraphicsStateGuardian8.h.

Referenced by apply_texture(), and dx_init().

TextureApplyAttrib::Mode DXGraphicsStateGuardian8::_CurTexBlendMode [protected]
 

Definition at line 312 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init(), and enable_texturing().

D3DTEXTUREFILTERTYPE DXGraphicsStateGuardian8::_CurTexMagFilter [protected]
 

Definition at line 313 of file dxGraphicsStateGuardian8.h.

Referenced by apply_texture(), and dx_init().

D3DTEXTUREFILTERTYPE DXGraphicsStateGuardian8::_CurTexMinFilter [protected]
 

Definition at line 313 of file dxGraphicsStateGuardian8.h.

Referenced by apply_texture(), and dx_init().

D3DTEXTUREFILTERTYPE DXGraphicsStateGuardian8::_CurTexMipFilter [protected]
 

Definition at line 313 of file dxGraphicsStateGuardian8.h.

Referenced by apply_texture(), and dx_init().

Texture::WrapMode DXGraphicsStateGuardian8::_CurTexWrapModeU [protected]
 

Definition at line 315 of file dxGraphicsStateGuardian8.h.

Referenced by apply_texture(), and dx_init().

Texture::WrapMode DXGraphicsStateGuardian8::_CurTexWrapModeV [protected]
 

Definition at line 315 of file dxGraphicsStateGuardian8.h.

Referenced by apply_texture(), and dx_init().

DXShaderHandle DXGraphicsStateGuardian8::_CurVertexShader
 

Definition at line 354 of file dxGraphicsStateGuardian8.h.

Referenced by DeleteAllDeviceObjects(), dx_cleanup(), dx_init(), DXGraphicsStateGuardian8(), and issue_transform().

D3DCOLOR DXGraphicsStateGuardian8::_d3dcolor_clear_value [protected]
 

Definition at line 243 of file dxGraphicsStateGuardian8.h.

Referenced by do_clear(), and set_color_clear_value().

bool DXGraphicsStateGuardian8::_depth_test_enabled [protected]
 

Definition at line 301 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init(), and issue_depth_test().

bool DXGraphicsStateGuardian8::_depth_write_enabled [protected]
 

Definition at line 302 of file dxGraphicsStateGuardian8.h.

bool DXGraphicsStateGuardian8::_dither_enabled [protected]
 

Definition at line 298 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

DxgsgFogType DXGraphicsStateGuardian8::_doFogType [protected]
 

Definition at line 281 of file dxGraphicsStateGuardian8.h.

Referenced by apply_fog(), and dx_init().

bool DXGraphicsStateGuardian8::_fog_enabled [protected]
 

Definition at line 282 of file dxGraphicsStateGuardian8.h.

Referenced by draw_prim_setup(), draw_sprite(), and dx_init().

WORD* DXGraphicsStateGuardian8::_index_buf [protected]
 

Definition at line 240 of file dxGraphicsStateGuardian8.h.

Referenced by draw_sphere(), draw_sprite(), dx_init(), DXGraphicsStateGuardian8(), and free_nondx_resources().

HRESULT DXGraphicsStateGuardian8::_last_testcooplevel_result [protected]
 

Definition at line 181 of file dxGraphicsStateGuardian8.h.

Referenced by CheckCooperativeLevel(), and dx_init().

bool DXGraphicsStateGuardian8::_line_smooth_enabled [protected]
 

Definition at line 294 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

Colorf DXGraphicsStateGuardian8::_lmodel_ambient [protected]
 

Definition at line 270 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

float DXGraphicsStateGuardian8::_material_ambient [protected]
 

Definition at line 271 of file dxGraphicsStateGuardian8.h.

float DXGraphicsStateGuardian8::_material_diffuse [protected]
 

Definition at line 272 of file dxGraphicsStateGuardian8.h.

float DXGraphicsStateGuardian8::_material_emission [protected]
 

Definition at line 275 of file dxGraphicsStateGuardian8.h.

float DXGraphicsStateGuardian8::_material_shininess [protected]
 

Definition at line 274 of file dxGraphicsStateGuardian8.h.

float DXGraphicsStateGuardian8::_material_specular [protected]
 

Definition at line 273 of file dxGraphicsStateGuardian8.h.

bool DXGraphicsStateGuardian8::_overlay_windows_supported [protected]
 

Definition at line 324 of file dxGraphicsStateGuardian8.h.

Referenced by DXGraphicsStateGuardian8().

Vertexf * DXGraphicsStateGuardian8::_pCurCoord [protected]
 

Definition at line 258 of file dxGraphicsStateGuardian8.h.

Referenced by draw_prim_inner_loop_coordtexonly(), and draw_prim_setup().

ushort * DXGraphicsStateGuardian8::_pCurCoordIndex [protected]
 

Definition at line 259 of file dxGraphicsStateGuardian8.h.

Referenced by draw_prim_inner_loop_coordtexonly(), and draw_prim_setup().

BYTE* DXGraphicsStateGuardian8::_pCurFvfBufPtr [protected]
 

Definition at line 239 of file dxGraphicsStateGuardian8.h.

Referenced by add_to_FVFBuf(), draw_line(), draw_linestrip_base(), draw_multitri(), draw_point(), draw_prim_inner_loop_coordtexonly(), draw_sphere(), draw_sprite(), draw_tri(), dx_init(), and GenerateSphere().

DXGeomNodeContext8* DXGraphicsStateGuardian8::_pCurrentGeomContext [protected]
 

Definition at line 248 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

DXTextureContext8* DXGraphicsStateGuardian8::_pCurTexContext [protected]
 

Definition at line 182 of file dxGraphicsStateGuardian8.h.

Referenced by apply_texture(), draw_tri(), dx_init(), and ~DXGraphicsStateGuardian8().

TexCoordf * DXGraphicsStateGuardian8::_pCurTexCoord [protected]
 

Definition at line 261 of file dxGraphicsStateGuardian8.h.

Referenced by draw_prim_inner_loop_coordtexonly(), and draw_prim_setup().

ushort * DXGraphicsStateGuardian8::_pCurTexCoordIndex [protected]
 

Definition at line 262 of file dxGraphicsStateGuardian8.h.

Referenced by draw_prim_inner_loop_coordtexonly(), and draw_prim_setup().

LPDIRECT3DDEVICE8 DXGraphicsStateGuardian8::_pD3DDevice
 

Definition at line 154 of file dxGraphicsStateGuardian8.h.

Referenced by apply_fog(), apply_material(), apply_texture(), begin_scene(), bind_clip_plane(), bind_light(), CheckCooperativeLevel(), copy_pixel_buffer(), copy_texture(), DeleteAllDeviceObjects(), do_clear(), draw_line(), draw_linestrip_base(), draw_multitri(), draw_point(), draw_polygon(), draw_quad(), draw_sphere(), draw_sprite(), draw_tri(), dx_cleanup(), dx_init(), enable_clip_plane(), enable_light(), enable_lighting(), enable_texturing(), end_scene(), free_d3d_device(), init_shader(), issue_cull_face(), issue_depth_offset(), issue_depth_test(), issue_render_mode(), issue_transform(), prepare_display_region(), prepare_lens(), read_pixel_shader(), read_vertex_shader(), report_texmgr_stats(), reset_d3d_device(), set_ambient_light(), set_context(), show_frame(), and ~DXGraphicsStateGuardian8().

DWORD DXGraphicsStateGuardian8::_perComp [protected]
 

Definition at line 236 of file dxGraphicsStateGuardian8.h.

Referenced by draw_line(), draw_linestrip_base(), draw_multitri(), and draw_prim_setup().

DWORD DXGraphicsStateGuardian8::_perPrim [protected]
 

Definition at line 236 of file dxGraphicsStateGuardian8.h.

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

DWORD DXGraphicsStateGuardian8::_perVertex [protected]
 

Definition at line 236 of file dxGraphicsStateGuardian8.h.

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

BYTE * DXGraphicsStateGuardian8::_pFvfBufBasePtr [protected]
 

Definition at line 239 of file dxGraphicsStateGuardian8.h.

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

IDirect3DTexture8* DXGraphicsStateGuardian8::_pGlobalTexture
 

Definition at line 353 of file dxGraphicsStateGuardian8.h.

Referenced by DeleteAllDeviceObjects(), dx_cleanup(), dx_init(), and DXGraphicsStateGuardian8().

int DXGraphicsStateGuardian8::_projection_mat_stack_count [protected]
 

Definition at line 317 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

DXScreenData* DXGraphicsStateGuardian8::_pScrn
 

Definition at line 153 of file dxGraphicsStateGuardian8.h.

Referenced by apply_texture(), CheckCooperativeLevel(), copy_pixel_buffer(), do_clear(), dx_cleanup(), dx_init(), DXGraphicsStateGuardian8(), init_shader(), prepare_texture(), read_pixel_shader(), read_vertex_shader(), recreate_tex_callback(), reset_d3d_device(), set_blend_mode(), set_context(), and show_frame().

D3DMATRIX DXGraphicsStateGuardian8::_SavedTransform [protected]
 

Definition at line 185 of file dxGraphicsStateGuardian8.h.

D3DCOLOR DXGraphicsStateGuardian8::_scene_graph_color_D3DCOLOR [protected]
 

Definition at line 242 of file dxGraphicsStateGuardian8.h.

Referenced by draw_prim_setup().

bool DXGraphicsStateGuardian8::_stencil_test_enabled [protected]
 

Definition at line 299 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init().

TexCoordf* DXGraphicsStateGuardian8::_texcoord_array [protected]
 

Definition at line 261 of file dxGraphicsStateGuardian8.h.

Referenced by draw_prim_inner_loop_coordtexonly(), and draw_prim_setup().

ushort* DXGraphicsStateGuardian8::_texcoordindex_array [protected]
 

Definition at line 262 of file dxGraphicsStateGuardian8.h.

Referenced by draw_prim_inner_loop_coordtexonly(), and draw_prim_setup().

bool DXGraphicsStateGuardian8::_texturing_enabled [protected]
 

Definition at line 296 of file dxGraphicsStateGuardian8.h.

Referenced by dx_init(), enable_texturing(), and wants_texcoords().

TypeHandle DXGraphicsStateGuardian8::_type_handle [static, private]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 80 of file dxGraphicsStateGuardian8.cxx.

Referenced by get_class_type(), and init_type().

Geom::ColorIterator DXGraphicsStateGuardian8::ci [protected]
 

Definition at line 254 of file dxGraphicsStateGuardian8.h.

Referenced by draw_prim_setup(), draw_sphere(), and draw_sprite().

Geom::NormalIterator DXGraphicsStateGuardian8::ni [protected]
 

Definition at line 252 of file dxGraphicsStateGuardian8.h.

Referenced by draw_line(), draw_linestrip_base(), draw_multitri(), draw_prim_setup(), and draw_tri().

Normalf DXGraphicsStateGuardian8::p_normal [protected]
 

Definition at line 233 of file dxGraphicsStateGuardian8.h.

Referenced by draw_line(), draw_linestrip_base(), draw_multitri(), draw_prim_inner_loop(), draw_prim_setup(), and draw_tri().

TexCoordf DXGraphicsStateGuardian8::p_texcoord [protected]
 

Definition at line 234 of file dxGraphicsStateGuardian8.h.

Referenced by draw_prim_inner_loop().

Geom::TexCoordIterator DXGraphicsStateGuardian8::ti [protected]
 

Definition at line 253 of file dxGraphicsStateGuardian8.h.

Referenced by draw_prim_setup().

Geom::VertexIterator DXGraphicsStateGuardian8::vi [protected]
 

Definition at line 251 of file dxGraphicsStateGuardian8.h.

Referenced by draw_prim_setup(), draw_sphere(), and draw_sprite().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:11:59 2003 for Panda by doxygen1.3