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

GraphicsStateGuardian Class Reference

#include <graphicsStateGuardian.h>

Inheritance diagram for GraphicsStateGuardian:

GraphicsStateGuardianBase TypedReferenceCount TypedObject ReferenceCount CRGraphicsStateGuardian DXGraphicsStateGuardian7 DXGraphicsStateGuardian8 GLGraphicsStateGuardian RIBGraphicsStateGuardian glxGraphicsStateGuardian wglGraphicsStateGuardian List of all members.

Public Member Functions

 GraphicsStateGuardian (const FrameBufferProperties &properties)
virtual ~GraphicsStateGuardian ()
void release_all_geoms ()
INLINE const FrameBufferPropertiesget_properties () const
INLINE GraphicsPipeget_pipe () const
INLINE const GraphicsThreadingModelget_threading_model () const
INLINE void set_scene (SceneSetup *scene_setup)
INLINE SceneSetupget_scene () const
virtual TextureContextprepare_texture (Texture *tex)
virtual void apply_texture (TextureContext *tc)
virtual void release_texture (TextureContext *tc)
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 GeomContextprepare_geom (Geom *geom)
virtual void release_geom (GeomContext *gc)
virtual void set_state_and_transform (const RenderState *state, const TransformState *transform)
virtual void set_color_clear_value (const Colorf &value)
virtual void set_depth_clear_value (const float value)
virtual void do_clear (const RenderBuffer &buffer)=0
void clear (ClearableRegion *clearable)
INLINE void clear (DisplayRegion *dr)
virtual void prepare_display_region ()=0
virtual bool prepare_lens ()
INLINE void enable_normals (bool val)
virtual bool begin_frame ()
virtual bool begin_scene ()
virtual void end_scene ()
virtual void end_frame ()
virtual bool wants_normals () const
virtual bool wants_texcoords () const
virtual bool wants_colors () const
virtual bool depth_offset_decals ()
virtual CPT (RenderState) begin_decal_base_first()
virtual CPT (RenderState) begin_decal_nested()
virtual CPT (RenderState) begin_decal_base_second()
virtual void finish_decal ()
INLINE void reset_if_new ()
virtual void reset ()
INLINE void modify_state (const RenderState *state)
INLINE void set_state (const RenderState *state)
INLINE void set_transform (const TransformState *transform)
RenderBuffer get_render_buffer (int buffer_type)
INLINE const DisplayRegionget_current_display_region (void) const
INLINE const Lensget_current_lens () const
INLINE DisplayRegionStack push_display_region (const DisplayRegion *dr)
INLINE void pop_display_region (DisplayRegionStack &node)
INLINE FrameBufferStack push_frame_buffer (const RenderBuffer &buffer, const DisplayRegion *dr)
INLINE void pop_frame_buffer (FrameBufferStack &node)
INLINE LensStack push_lens (const Lens *lens)
INLINE void pop_lens (LensStack &stack)
INLINE bool set_lens (const Lens *lens)
INLINE void set_coordinate_system (CoordinateSystem cs)
INLINE CoordinateSystem get_coordinate_system () const
virtual CoordinateSystem get_internal_coordinate_system () const
virtual void issue_transform (const TransformState *transform)
virtual void issue_color_scale (const ColorScaleAttrib *attrib)
virtual void issue_color (const ColorAttrib *attrib)
virtual void issue_light (const LightAttrib *attrib)
virtual void issue_color_write (const ColorWriteAttrib *attrib)
virtual void issue_transparency (const TransparencyAttrib *attrib)
virtual void issue_color_blend (const ColorBlendAttrib *attrib)
virtual void issue_clip_plane (const ClipPlaneAttrib *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)
void traverse_prepared_textures (bool(*pertex_callbackfn)(TextureContext *, void *), void *callback_arg)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Public Attributes

PUBLISHED __pad0__: void release_all_textures()

Static Public Attributes

PStatCollector _total_texusage_pcollector
PStatCollector _active_texusage_pcollector
PStatCollector _total_geom_pcollector
PStatCollector _active_geom_pcollector
PStatCollector _total_geom_node_pcollector
PStatCollector _active_geom_node_pcollector
PStatCollector _total_texmem_pcollector
PStatCollector _used_texmem_pcollector
PStatCollector _texmgrmem_total_pcollector
PStatCollector _texmgrmem_resident_pcollector
PStatCollector _vertices_pcollector
PStatCollector _vertices_tristrip_pcollector
PStatCollector _vertices_trifan_pcollector
PStatCollector _vertices_tri_pcollector
PStatCollector _vertices_other_pcollector
PStatCollector _state_changes_pcollector
PStatCollector _transform_state_pcollector
PStatCollector _texture_state_pcollector
PStatCollector _nodes_pcollector
PStatCollector _geom_nodes_pcollector
PStatCollector _frustum_cull_volumes_pcollector
PStatCollector _frustum_cull_transforms_pcollector
PStatCollector _set_state_pcollector
PStatCollector _draw_primitive_pcollector
PStatCollector _transform_states_pcollector
PStatCollector _transform_states_unused_pcollector
PStatCollector _render_states_pcollector
PStatCollector _render_states_unused_pcollector

Protected Types

enum  ColorTransform { CT_offset = 0x01, CT_scale = 0x02 }

Protected Member Functions

INLINE Lightget_light (int light_id) const
virtual bool slot_new_light (int light_id)
virtual void enable_lighting (bool enable)
virtual void set_ambient_light (const Colorf &color)
virtual void enable_light (int light_id, bool enable)
virtual void begin_bind_lights ()
virtual void end_bind_lights ()
INLINE PlaneNodeget_clip_plane (int plane_id) const
virtual bool slot_new_clip_plane (int plane_id)
virtual void enable_clip_planes (bool enable)
virtual void enable_clip_plane (int plane_id, bool enable)
virtual void begin_bind_clip_planes ()
virtual void bind_clip_plane (PlaneNode *plane, int pane_id)
virtual void end_bind_clip_planes ()
virtual void set_blend_mode (ColorWriteAttrib::Mode color_write_mode, ColorBlendAttrib::Mode color_blend_mode, TransparencyAttrib::Mode transparency_mode)
virtual PT (SavedFrameBuffer) save_frame_buffer(const RenderBuffer &buffer
virtual CPT (DisplayRegion) dr)=0
virtual void restore_frame_buffer (SavedFrameBuffer *frame_buffer)=0
bool mark_prepared_texture (TextureContext *tc)
bool unmark_prepared_texture (TextureContext *tc)
bool mark_prepared_geom (GeomContext *gc)
bool unmark_prepared_geom (GeomContext *gc)
bool mark_prepared_geom_node (GeomNodeContext *gnc)
bool unmark_prepared_geom_node (GeomNodeContext *gnc)
virtual void free_pointers ()
virtual void close_gsg ()
INLINE void init_frame_pstats ()
INLINE void add_to_texture_record (TextureContext *)
INLINE void add_to_geom_record (GeomContext *)
INLINE void add_to_geom_node_record (GeomNodeContext *)
INLINE void record_state_change (TypeHandle)
 PT (SceneSetup) _scene_setup
 CPT (RenderState) _state
 CPT (TransformState) _transform
 CPT (DisplayRegion) _current_display_region
 CPT (Lens) _current_lens

Static Protected Member Functions

 CPT (RenderState) get_unlit_state()
 CPT (RenderState) get_unclipped_state()
 CPT (RenderState) get_untextured_state()

Protected Attributes

int _buffer_mask
Colorf _color_clear_value
float _depth_clear_value
bool _stencil_clear_value
Colorf _accum_clear_value
int _clear_buffer_type
int _display_region_stack_level
int _frame_buffer_stack_level
int _lens_stack_level
bool _normals_enabled
CoordinateSystem _coordinate_system
Colorf _scene_graph_color
bool _has_scene_graph_color
bool _scene_graph_color_stale
bool _vertex_colors_enabled
bool _lighting_enabled
bool _clip_planes_enabled
int _color_transform_enabled
LVecBase4f _current_color_offset
LVecBase4f _current_color_scale
ColorWriteAttrib::Mode _color_write_mode
ColorBlendAttrib::Mode _color_blend_mode
TransparencyAttrib::Mode _transparency_mode
bool _needs_reset
bool _closing_gsg

Private Types

typedef pset< TextureContext * > Textures
typedef pset< GeomContext * > Geoms
typedef pset< GeomNodeContext * > GeomNodes

Private Member Functions

 PT (GraphicsPipe) _pipe

Private Attributes

pvector< LightInfo_light_info
bool _lighting_enabled_this_frame
pvector< ClipPlaneInfo_clip_plane_info
bool _clip_planes_enabled_this_frame
Textures _prepared_textures
Geoms _prepared_geoms
GeomNodes _prepared_geom_nodes
FrameBufferProperties _properties
GraphicsThreadingModel _threading_model

Static Private Attributes

TypeHandle _type_handle

Friends

class GraphicsPipe
class GraphicsWindow
class GraphicsEngine

Member Typedef Documentation

typedef pset<GeomNodeContext *> GraphicsStateGuardian::GeomNodes [private]
 

Definition at line 331 of file graphicsStateGuardian.h.

Referenced by release_all_geoms().

typedef pset<GeomContext *> GraphicsStateGuardian::Geoms [private]
 

Definition at line 329 of file graphicsStateGuardian.h.

Referenced by release_all_geoms().

typedef pset<TextureContext *> GraphicsStateGuardian::Textures [private]
 

Definition at line 327 of file graphicsStateGuardian.h.


Member Enumeration Documentation

enum GraphicsStateGuardian::ColorTransform [protected]
 

Enumeration values:
CT_offset 
CT_scale 

Definition at line 256 of file graphicsStateGuardian.h.


Constructor & Destructor Documentation

GraphicsStateGuardian::GraphicsStateGuardian const FrameBufferProperties properties  ) 
 

Definition at line 84 of file graphicsStateGuardian.cxx.

References _closing_gsg, _coordinate_system, _needs_reset, _properties, default_coordinate_system, and NULL.

GraphicsStateGuardian::~GraphicsStateGuardian  )  [virtual]
 

Definition at line 99 of file graphicsStateGuardian.cxx.


Member Function Documentation

INLINE void GraphicsStateGuardian::add_to_geom_node_record GeomNodeContext  )  [inline, protected]
 

Definition at line 216 of file graphicsStateGuardian.h.

Referenced by GLGraphicsStateGuardian::draw_geom_node(), CRGraphicsStateGuardian::draw_geom_node(), and DXGraphicsStateGuardian7::prepare_texture().

INLINE void GraphicsStateGuardian::add_to_geom_record GeomContext  )  [inline, protected]
 

Definition at line 215 of file graphicsStateGuardian.h.

INLINE void GraphicsStateGuardian::add_to_texture_record TextureContext  )  [inline, protected]
 

Definition at line 214 of file graphicsStateGuardian.h.

Referenced by GLGraphicsStateGuardian::apply_texture(), DXGraphicsStateGuardian8::apply_texture(), CRGraphicsStateGuardian::apply_texture(), and DXGraphicsStateGuardian7::prepare_texture().

void GraphicsStateGuardian::apply_texture TextureContext tc  )  [virtual]
 

Implements GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian.

Definition at line 235 of file graphicsStateGuardian.cxx.

void GraphicsStateGuardian::begin_bind_clip_planes  )  [protected, virtual]
 

Reimplemented in GLGraphicsStateGuardian.

Definition at line 1199 of file graphicsStateGuardian.cxx.

Referenced by issue_clip_plane().

void GraphicsStateGuardian::begin_bind_lights  )  [protected, virtual]
 

Reimplemented in CRGraphicsStateGuardian, and GLGraphicsStateGuardian.

Definition at line 1127 of file graphicsStateGuardian.cxx.

Referenced by issue_light().

bool GraphicsStateGuardian::begin_frame  )  [virtual]
 

Reimplemented in DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 407 of file graphicsStateGuardian.cxx.

References _clip_plane_info, _clip_planes_enabled_this_frame, _light_info, _lighting_enabled_this_frame, enable_clip_plane(), enable_light(), init_frame_pstats(), modify_state(), and NULL.

Referenced by GLGraphicsStateGuardian::begin_frame(), DXGraphicsStateGuardian8::begin_frame(), and DXGraphicsStateGuardian7::prepare_texture().

bool GraphicsStateGuardian::begin_scene  )  [virtual]
 

Reimplemented in DXGraphicsStateGuardian7, and DXGraphicsStateGuardian8.

Definition at line 473 of file graphicsStateGuardian.cxx.

Referenced by DXGraphicsStateGuardian8::begin_scene(), GraphicsEngine::cull_and_draw_together(), GraphicsEngine::do_draw(), and DXGraphicsStateGuardian7::prepare_texture().

void GraphicsStateGuardian::bind_clip_plane PlaneNode plane,
int  pane_id
[protected, virtual]
 

Reimplemented in DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1211 of file graphicsStateGuardian.cxx.

Referenced by issue_clip_plane().

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

Reimplemented from GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1058 of file graphicsStateGuardian.cxx.

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

Reimplemented from GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1046 of file graphicsStateGuardian.cxx.

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

Reimplemented from GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1034 of file graphicsStateGuardian.cxx.

INLINE void GraphicsStateGuardian::clear DisplayRegion dr  ) 
 

void GraphicsStateGuardian::clear ClearableRegion clearable  ) 
 

Definition at line 358 of file graphicsStateGuardian.cxx.

References do_clear(), ClearableRegion::get_clear_color(), ClearableRegion::get_clear_color_active(), ClearableRegion::get_clear_depth(), ClearableRegion::get_clear_depth_active(), get_render_buffer(), prepare_display_region(), set_color_clear_value(), set_depth_clear_value(), RenderBuffer::T_back, and RenderBuffer::T_depth.

Referenced by PlanarReflector::apply(), GraphicsEngine::cull_and_draw_together(), GraphicsEngine::do_draw(), SpheretexReflector::pre_apply(), and ProjtexShadower::pre_apply().

void GraphicsStateGuardian::close_gsg  )  [protected, virtual]
 

Definition at line 1379 of file graphicsStateGuardian.cxx.

References _closing_gsg, free_pointers(), and release_all_geoms().

Referenced by GraphicsPipe::close_gsg(), and GLGraphicsStateGuardian::~GLGraphicsStateGuardian().

GraphicsStateGuardian::CPT Lens   )  [protected]
 

GraphicsStateGuardian::CPT DisplayRegion   )  [protected]
 

Reimplemented in CRGraphicsStateGuardian, CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian.

GraphicsStateGuardian::CPT TransformState   )  [protected]
 

GraphicsStateGuardian::CPT RenderState   )  [protected, virtual]
 

Implements GraphicsStateGuardianBase.

Reimplemented in GLGraphicsStateGuardian.

GraphicsStateGuardian::CPT RenderState   )  [static, protected, virtual]
 

Implements GraphicsStateGuardianBase.

Reimplemented in GLGraphicsStateGuardian.

GraphicsStateGuardian::CPT RenderState   )  [static, protected, virtual]
 

Implements GraphicsStateGuardianBase.

Reimplemented in GLGraphicsStateGuardian.

GraphicsStateGuardian::CPT RenderState   )  [static, protected, virtual]
 

Implements GraphicsStateGuardianBase.

Reimplemented in GLGraphicsStateGuardian.

virtual GraphicsStateGuardian::CPT DisplayRegion   )  [protected, pure virtual]
 

Implemented in CRGraphicsStateGuardian, CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian.

virtual GraphicsStateGuardian::CPT RenderState   )  [virtual]
 

Implements GraphicsStateGuardianBase.

Reimplemented in GLGraphicsStateGuardian.

virtual GraphicsStateGuardian::CPT RenderState   )  [virtual]
 

Implements GraphicsStateGuardianBase.

Reimplemented in GLGraphicsStateGuardian.

virtual GraphicsStateGuardian::CPT RenderState   )  [virtual]
 

Implements GraphicsStateGuardianBase.

Reimplemented in GLGraphicsStateGuardian.

bool GraphicsStateGuardian::depth_offset_decals  )  [virtual]
 

Implements GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 541 of file graphicsStateGuardian.cxx.

Referenced by GraphicsEngine::do_cull().

virtual void GraphicsStateGuardian::do_clear const RenderBuffer buffer  )  [pure virtual]
 

Implemented in DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Referenced by clear().

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

Implements GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 270 of file graphicsStateGuardian.cxx.

References Geom::draw(), and GeomNode::get_geom().

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

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1183 of file graphicsStateGuardian.cxx.

Referenced by begin_frame(), and issue_clip_plane().

void GraphicsStateGuardian::enable_clip_planes bool  enable  )  [protected, virtual]
 

Definition at line 1171 of file graphicsStateGuardian.cxx.

Referenced by issue_clip_plane().

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

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1111 of file graphicsStateGuardian.cxx.

Referenced by begin_frame(), and issue_light().

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

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1088 of file graphicsStateGuardian.cxx.

Referenced by issue_light().

INLINE void GraphicsStateGuardian::enable_normals bool  val  )  [inline]
 

Definition at line 107 of file graphicsStateGuardian.h.

Referenced by SpheretexShader::apply().

void GraphicsStateGuardian::end_bind_clip_planes  )  [protected, virtual]
 

Reimplemented in GLGraphicsStateGuardian.

Definition at line 1224 of file graphicsStateGuardian.cxx.

Referenced by issue_clip_plane().

void GraphicsStateGuardian::end_bind_lights  )  [protected, virtual]
 

Reimplemented in CRGraphicsStateGuardian, and GLGraphicsStateGuardian.

Definition at line 1140 of file graphicsStateGuardian.cxx.

Referenced by issue_light().

void GraphicsStateGuardian::end_frame  )  [virtual]
 

Reimplemented in DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 498 of file graphicsStateGuardian.cxx.

Referenced by GLGraphicsStateGuardian::end_frame(), DXGraphicsStateGuardian8::end_frame(), and DXGraphicsStateGuardian7::prepare_texture().

void GraphicsStateGuardian::end_scene  )  [virtual]
 

Reimplemented in DXGraphicsStateGuardian7, and DXGraphicsStateGuardian8.

Definition at line 487 of file graphicsStateGuardian.cxx.

Referenced by GraphicsEngine::cull_and_draw_together(), GraphicsEngine::do_draw(), and DXGraphicsStateGuardian7::prepare_texture().

void GraphicsStateGuardian::finish_decal  )  [virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 631 of file graphicsStateGuardian.cxx.

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

Reimplemented from GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, glxGraphicsStateGuardian, RIBGraphicsStateGuardian, and wglGraphicsStateGuardian.

Definition at line 355 of file graphicsStateGuardian.h.

References ReferenceCount::get_class_type(), and GraphicsStateGuardianBase::init_type().

void GraphicsStateGuardian::free_pointers  )  [protected, virtual]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, and GLGraphicsStateGuardian.

Definition at line 1367 of file graphicsStateGuardian.cxx.

Referenced by close_gsg().

TypeHandle GraphicsStateGuardian::get_class_type void   )  [inline, static]
 

Reimplemented from ReferenceCount.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, glxGraphicsStateGuardian, RIBGraphicsStateGuardian, and wglGraphicsStateGuardian.

Definition at line 342 of file graphicsStateGuardian.h.

Referenced by GLGraphicsStateGuardian::force_init_type(), DXGraphicsStateGuardian8::force_init_type(), DXGraphicsStateGuardian7::force_init_type(), CRGraphicsStateGuardian::force_init_type(), RIBGraphicsStateGuardian::init_type(), GLGraphicsStateGuardian::init_type(), DXGraphicsStateGuardian8::init_type(), CRGraphicsStateGuardian::init_type(), and DXGraphicsStateGuardian7::prepare_texture().

INLINE PlaneNode* GraphicsStateGuardian::get_clip_plane int  plane_id  )  const [protected]
 

INLINE CoordinateSystem GraphicsStateGuardian::get_coordinate_system  )  const
 

Referenced by SpheretexReflector::pre_apply(), and PT().

INLINE const DisplayRegion* GraphicsStateGuardian::get_current_display_region void   )  const
 

Referenced by PlanarReflector::apply(), and PlanarReflector::pre_apply().

INLINE const Lens* GraphicsStateGuardian::get_current_lens  )  const
 

CoordinateSystem GraphicsStateGuardian::get_internal_coordinate_system  )  const [virtual]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 649 of file graphicsStateGuardian.cxx.

References CS_default.

Referenced by PT().

INLINE Light* GraphicsStateGuardian::get_light int  light_id  )  const [protected]
 

INLINE GraphicsPipe* GraphicsStateGuardian::get_pipe  )  const
 

Referenced by GraphicsEngine::WindowRenderer::do_close(), GraphicsEngine::WindowRenderer::do_frame(), and GraphicsEngine::make_window().

INLINE const FrameBufferProperties& GraphicsStateGuardian::get_properties  )  const
 

RenderBuffer GraphicsStateGuardian::get_render_buffer int  buffer_type  ) 
 

Definition at line 154 of file graphicsStateGuardian.cxx.

References _buffer_mask.

Referenced by PlanarReflector::apply(), clear(), SpheretexReflector::pre_apply(), ProjtexShadower::pre_apply(), DXGraphicsStateGuardian7::prepare_texture(), NonlinearImager::render_screen(), GLGraphicsStateGuardian::texture_to_pixel_buffer(), DXGraphicsStateGuardian8::texture_to_pixel_buffer(), and CRGraphicsStateGuardian::texture_to_pixel_buffer().

INLINE SceneSetup* GraphicsStateGuardian::get_scene  )  const
 

INLINE const GraphicsThreadingModel& GraphicsStateGuardian::get_threading_model  )  const
 

Referenced by GraphicsEngine::make_window().

virtual TypeHandle GraphicsStateGuardian::get_type void   )  const [inline, virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, glxGraphicsStateGuardian, RIBGraphicsStateGuardian, and wglGraphicsStateGuardian.

Definition at line 352 of file graphicsStateGuardian.h.

References ReferenceCount::get_class_type().

Referenced by GraphicsEngine::setup_gsg().

INLINE void GraphicsStateGuardian::init_frame_pstats  )  [inline, protected]
 

Definition at line 213 of file graphicsStateGuardian.h.

Referenced by begin_frame().

void GraphicsStateGuardian::init_type void   )  [inline, static]
 

Reimplemented from GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, glxGraphicsStateGuardian, RIBGraphicsStateGuardian, and wglGraphicsStateGuardian.

Definition at line 347 of file graphicsStateGuardian.h.

References TypedObject::get_class_type(), GraphicsStateGuardianBase::init_type(), and register_type().

Referenced by GLGraphicsStateGuardian::force_init_type(), DXGraphicsStateGuardian8::force_init_type(), DXGraphicsStateGuardian7::force_init_type(), CRGraphicsStateGuardian::force_init_type(), init_libdisplay(), RIBGraphicsStateGuardian::init_type(), GLGraphicsStateGuardian::init_type(), DXGraphicsStateGuardian8::init_type(), CRGraphicsStateGuardian::init_type(), and DXGraphicsStateGuardian7::prepare_texture().

void GraphicsStateGuardian::issue_clip_plane const ClipPlaneAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 914 of file graphicsStateGuardian.cxx.

References _clip_plane_info, _clip_planes_enabled, _clip_planes_enabled_this_frame, begin_bind_clip_planes(), bind_clip_plane(), enable_clip_plane(), enable_clip_planes(), end_bind_clip_planes(), ClipPlaneAttrib::get_num_planes(), ClipPlaneAttrib::get_operation(), ClipPlaneAttrib::get_plane(), ClipPlaneAttrib::has_plane(), NULL, ClipPlaneAttrib::O_remove, and slot_new_clip_plane().

void GraphicsStateGuardian::issue_color const ColorAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 695 of file graphicsStateGuardian.cxx.

References _has_scene_graph_color, _scene_graph_color, _scene_graph_color_stale, _vertex_colors_enabled, ColorAttrib::get_color(), ColorAttrib::get_color_type(), ColorAttrib::T_flat, and ColorAttrib::T_off.

Referenced by GLGraphicsStateGuardian::draw_line(), CRGraphicsStateGuardian::draw_line(), GLGraphicsStateGuardian::draw_linestrip(), CRGraphicsStateGuardian::draw_linestrip(), GLGraphicsStateGuardian::draw_point(), CRGraphicsStateGuardian::draw_point(), GLGraphicsStateGuardian::draw_polygon(), CRGraphicsStateGuardian::draw_polygon(), GLGraphicsStateGuardian::draw_quad(), CRGraphicsStateGuardian::draw_quad(), GLGraphicsStateGuardian::draw_sphere(), CRGraphicsStateGuardian::draw_sphere(), GLGraphicsStateGuardian::draw_tri(), CRGraphicsStateGuardian::draw_tri(), GLGraphicsStateGuardian::draw_trifan(), CRGraphicsStateGuardian::draw_trifan(), GLGraphicsStateGuardian::draw_tristrip(), and CRGraphicsStateGuardian::draw_tristrip().

void GraphicsStateGuardian::issue_color_blend const ColorBlendAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 901 of file graphicsStateGuardian.cxx.

References _color_blend_mode, _color_write_mode, _transparency_mode, ColorBlendAttrib::get_mode(), and set_blend_mode().

void GraphicsStateGuardian::issue_color_scale const ColorScaleAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 669 of file graphicsStateGuardian.cxx.

References _color_transform_enabled, _current_color_scale, _has_scene_graph_color, _scene_graph_color_stale, CT_scale, and ColorScaleAttrib::get_scale().

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

Reimplemented from GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 879 of file graphicsStateGuardian.cxx.

References _color_blend_mode, _color_write_mode, _transparency_mode, ColorWriteAttrib::get_mode(), and set_blend_mode().

Referenced by GLGraphicsStateGuardian::issue_color_write().

void GraphicsStateGuardian::issue_light const LightAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 750 of file graphicsStateGuardian.cxx.

References _light_info, _lighting_enabled, _lighting_enabled_this_frame, begin_bind_lights(), Light::bind(), Colorf, enable_light(), enable_lighting(), end_bind_lights(), AmbientLight::get_class_type(), Light::get_color(), LightAttrib::get_light(), LightAttrib::get_num_lights(), LightAttrib::get_operation(), Light::get_type(), LightAttrib::has_light(), NULL, LightAttrib::O_remove, set_ambient_light(), and slot_new_light().

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

Reimplemented from GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 660 of file graphicsStateGuardian.cxx.

void GraphicsStateGuardian::issue_transparency const TransparencyAttrib attrib  )  [virtual]
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 890 of file graphicsStateGuardian.cxx.

References _color_blend_mode, _color_write_mode, _transparency_mode, TransparencyAttrib::get_mode(), and set_blend_mode().

bool GraphicsStateGuardian::mark_prepared_geom GeomContext gc  )  [protected]
 

Definition at line 1290 of file graphicsStateGuardian.cxx.

References _prepared_geoms, _total_geom_pcollector, and PStatCollector::add_level().

bool GraphicsStateGuardian::mark_prepared_geom_node GeomNodeContext gnc  )  [protected]
 

Definition at line 1330 of file graphicsStateGuardian.cxx.

References _prepared_geom_nodes, _total_geom_node_pcollector, and PStatCollector::add_level().

Referenced by GLGraphicsStateGuardian::prepare_geom_node(), CRGraphicsStateGuardian::prepare_geom_node(), and DXGraphicsStateGuardian7::prepare_texture().

bool GraphicsStateGuardian::mark_prepared_texture TextureContext tc  )  [protected]
 

Definition at line 1250 of file graphicsStateGuardian.cxx.

References _prepared_textures, _total_texusage_pcollector, PStatCollector::add_level(), and tc.

Referenced by RIBGraphicsStateGuardian::prepare_texture(), GLGraphicsStateGuardian::prepare_texture(), DXGraphicsStateGuardian8::prepare_texture(), DXGraphicsStateGuardian7::prepare_texture(), and CRGraphicsStateGuardian::prepare_texture().

INLINE void GraphicsStateGuardian::modify_state const RenderState state  ) 
 

Referenced by begin_frame(), CRGraphicsStateGuardian::clear(), GLGraphicsStateGuardian::copy_pixel_buffer(), GLGraphicsStateGuardian::copy_texture(), GLGraphicsStateGuardian::do_clear(), GLGraphicsStateGuardian::draw_pixel_buffer(), GLGraphicsStateGuardian::draw_sprite(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), CRGraphicsStateGuardian::draw_sprite(), and GLGraphicsStateGuardian::draw_texture().

INLINE void GraphicsStateGuardian::pop_display_region DisplayRegionStack node  ) 
 

Referenced by CRGraphicsStateGuardian::clear(), GraphicsEngine::cull_and_draw_together(), GraphicsEngine::do_draw(), GLGraphicsStateGuardian::draw_pixel_buffer(), GLGraphicsStateGuardian::draw_texture(), SpheretexReflector::pre_apply(), and ProjtexShadower::pre_apply().

INLINE void GraphicsStateGuardian::pop_frame_buffer FrameBufferStack node  ) 
 

Referenced by SpheretexReflector::pre_apply(), ProjtexShadower::pre_apply(), DXGraphicsStateGuardian7::prepare_texture(), GLGraphicsStateGuardian::texture_to_pixel_buffer(), DXGraphicsStateGuardian8::texture_to_pixel_buffer(), and CRGraphicsStateGuardian::texture_to_pixel_buffer().

INLINE void GraphicsStateGuardian::pop_lens LensStack stack  ) 
 

virtual void GraphicsStateGuardian::prepare_display_region  )  [pure virtual]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian.

Referenced by clear(), GraphicsEngine::cull_and_draw_together(), and GraphicsEngine::do_draw().

GeomContext * GraphicsStateGuardian::prepare_geom Geom geom  )  [virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 300 of file graphicsStateGuardian.cxx.

References NULL.

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

Implements GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 259 of file graphicsStateGuardian.cxx.

References NULL.

bool GraphicsStateGuardian::prepare_lens  )  [virtual]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 389 of file graphicsStateGuardian.cxx.

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

Implements GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian.

Definition at line 222 of file graphicsStateGuardian.cxx.

References NULL.

GraphicsStateGuardian::PT GraphicsPipe   )  [private]
 

GraphicsStateGuardian::PT SceneSetup   )  [protected]
 

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

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian.

INLINE DisplayRegionStack GraphicsStateGuardian::push_display_region const DisplayRegion dr  ) 
 

Referenced by CRGraphicsStateGuardian::clear(), GraphicsEngine::cull_and_draw_together(), GraphicsEngine::do_draw(), GLGraphicsStateGuardian::draw_pixel_buffer(), GLGraphicsStateGuardian::draw_texture(), SpheretexReflector::pre_apply(), and ProjtexShadower::pre_apply().

INLINE FrameBufferStack GraphicsStateGuardian::push_frame_buffer const RenderBuffer buffer,
const DisplayRegion dr
 

Referenced by SpheretexReflector::pre_apply(), ProjtexShadower::pre_apply(), DXGraphicsStateGuardian7::prepare_texture(), GLGraphicsStateGuardian::texture_to_pixel_buffer(), DXGraphicsStateGuardian8::texture_to_pixel_buffer(), and CRGraphicsStateGuardian::texture_to_pixel_buffer().

INLINE LensStack GraphicsStateGuardian::push_lens const Lens lens  ) 
 

INLINE void GraphicsStateGuardian::record_state_change TypeHandle   )  [inline, protected]
 

Definition at line 217 of file graphicsStateGuardian.h.

void GraphicsStateGuardian::release_all_geoms  ) 
 

Definition at line 192 of file graphicsStateGuardian.cxx.

References _prepared_geom_nodes, _prepared_geoms, GeomNodes, Geoms, release_geom(), and release_geom_node().

Referenced by close_gsg(), DXGraphicsStateGuardian8::dx_cleanup(), DXGraphicsStateGuardian7::prepare_texture(), and CRGraphicsStateGuardian::~CRGraphicsStateGuardian().

void GraphicsStateGuardian::release_geom GeomContext gc  )  [virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 312 of file graphicsStateGuardian.cxx.

Referenced by release_all_geoms().

void GraphicsStateGuardian::release_geom_node GeomNodeContext gnc  )  [virtual]
 

Implements GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 288 of file graphicsStateGuardian.cxx.

Referenced by release_all_geoms().

void GraphicsStateGuardian::release_texture TextureContext tc  )  [virtual]
 

Implements GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian.

Definition at line 246 of file graphicsStateGuardian.cxx.

void GraphicsStateGuardian::reset  )  [virtual]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian.

Definition at line 109 of file graphicsStateGuardian.cxx.

References _accum_clear_value, _buffer_mask, _clear_buffer_type, _clip_planes_enabled, _clip_planes_enabled_this_frame, _color_blend_mode, _color_clear_value, _color_transform_enabled, _color_write_mode, _current_color_offset, _current_color_scale, _depth_clear_value, _display_region_stack_level, _frame_buffer_stack_level, _has_scene_graph_color, _lens_stack_level, _lighting_enabled, _lighting_enabled_this_frame, _needs_reset, _normals_enabled, _scene_graph_color_stale, _stencil_clear_value, _transparency_mode, _vertex_colors_enabled, RenderAttrib::M_none, ColorWriteAttrib::M_on, RenderBuffer::T_back, and RenderBuffer::T_depth.

Referenced by DXGraphicsStateGuardian7::DXGraphicsStateGuardian7(), RIBGraphicsStateGuardian::reset(), GLGraphicsStateGuardian::reset(), DXGraphicsStateGuardian7::reset(), CRGraphicsStateGuardian::reset(), and DXGraphicsStateGuardian8::reset_panda_gsg().

INLINE void GraphicsStateGuardian::reset_if_new  ) 
 

Referenced by wglGraphicsWindow::make_current(), wdxGraphicsWindow8::make_current(), wdxGraphicsWindow7::make_current(), and glxGraphicsWindow::make_current().

virtual void GraphicsStateGuardian::restore_frame_buffer SavedFrameBuffer frame_buffer  )  [protected, pure virtual]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian.

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

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1100 of file graphicsStateGuardian.cxx.

Referenced by issue_light().

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

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1236 of file graphicsStateGuardian.cxx.

Referenced by issue_color_blend(), issue_color_write(), and issue_transparency().

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

Reimplemented in DXGraphicsStateGuardian7, and DXGraphicsStateGuardian8.

Definition at line 335 of file graphicsStateGuardian.cxx.

References _color_clear_value.

Referenced by clear(), SpheretexReflector::pre_apply(), and ProjtexShadower::pre_apply().

INLINE void GraphicsStateGuardian::set_coordinate_system CoordinateSystem  cs  ) 
 

void GraphicsStateGuardian::set_depth_clear_value const float  value  )  [virtual]
 

Definition at line 346 of file graphicsStateGuardian.cxx.

References _depth_clear_value.

Referenced by clear().

INLINE bool GraphicsStateGuardian::set_lens const Lens lens  ) 
 

Referenced by GraphicsEngine::setup_gsg().

INLINE void GraphicsStateGuardian::set_scene SceneSetup scene_setup  ) 
 

Referenced by GraphicsEngine::setup_gsg().

INLINE void GraphicsStateGuardian::set_state const RenderState state  ) 
 

Referenced by DXGraphicsStateGuardian8::dx_init(), DXGraphicsStateGuardian8::free_d3d_device(), DXGraphicsStateGuardian7::free_dxgsg_objects(), and set_state_and_transform().

void GraphicsStateGuardian::set_state_and_transform const RenderState state,
const TransformState transform
[virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 322 of file graphicsStateGuardian.cxx.

References set_state(), set_transform(), and transform.

INLINE void GraphicsStateGuardian::set_transform const TransformState transform  ) 
 

Referenced by GLGraphicsStateGuardian::draw_pixel_buffer(), GLGraphicsStateGuardian::draw_texture(), and set_state_and_transform().

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

Reimplemented in DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1158 of file graphicsStateGuardian.cxx.

Referenced by issue_clip_plane().

bool GraphicsStateGuardian::slot_new_light int  light_id  )  [protected, virtual]
 

Reimplemented in GLGraphicsStateGuardian.

Definition at line 1075 of file graphicsStateGuardian.cxx.

Referenced by issue_light().

void GraphicsStateGuardian::traverse_prepared_textures bool(*  pertex_callbackfn)(TextureContext *, void *),
void *  callback_arg
 

Definition at line 1547 of file graphicsStateGuardian.cxx.

References _prepared_textures.

Referenced by DXGraphicsStateGuardian8::DeleteAllDeviceObjects(), DXGraphicsStateGuardian7::prepare_texture(), and DXGraphicsStateGuardian8::RecreateAllDeviceObjects().

bool GraphicsStateGuardian::unmark_prepared_geom GeomContext gc  )  [protected]
 

Definition at line 1310 of file graphicsStateGuardian.cxx.

References _prepared_geoms, _total_geom_pcollector, and PStatCollector::sub_level().

bool GraphicsStateGuardian::unmark_prepared_geom_node GeomNodeContext gnc  )  [protected]
 

Definition at line 1350 of file graphicsStateGuardian.cxx.

References _prepared_geom_nodes, _total_geom_node_pcollector, and PStatCollector::sub_level().

Referenced by DXGraphicsStateGuardian7::prepare_texture(), GLGraphicsStateGuardian::release_geom_node(), and CRGraphicsStateGuardian::release_geom_node().

bool GraphicsStateGuardian::unmark_prepared_texture TextureContext tc  )  [protected]
 

Definition at line 1270 of file graphicsStateGuardian.cxx.

References _prepared_textures, _total_texusage_pcollector, PStatCollector::sub_level(), and tc.

Referenced by DXGraphicsStateGuardian7::prepare_texture(), RIBGraphicsStateGuardian::release_texture(), GLGraphicsStateGuardian::release_texture(), DXGraphicsStateGuardian8::release_texture(), and CRGraphicsStateGuardian::release_texture().

bool GraphicsStateGuardian::wants_colors  )  const [virtual]
 

Implements GraphicsStateGuardianBase.

Reimplemented in RIBGraphicsStateGuardian.

Definition at line 528 of file graphicsStateGuardian.cxx.

References _vertex_colors_enabled.

Referenced by GLGraphicsStateGuardian::draw_line(), GLGraphicsStateGuardian::draw_linestrip(), GLGraphicsStateGuardian::draw_polygon(), CRGraphicsStateGuardian::draw_polygon(), GLGraphicsStateGuardian::draw_quad(), CRGraphicsStateGuardian::draw_quad(), GLGraphicsStateGuardian::draw_tri(), CRGraphicsStateGuardian::draw_tri(), GLGraphicsStateGuardian::draw_trifan(), CRGraphicsStateGuardian::draw_trifan(), GLGraphicsStateGuardian::draw_tristrip(), and CRGraphicsStateGuardian::draw_tristrip().

bool GraphicsStateGuardian::wants_normals  )  const [virtual]
 

Implements GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian.

Definition at line 507 of file graphicsStateGuardian.cxx.

References _normals_enabled.

bool GraphicsStateGuardian::wants_texcoords  )  const [virtual]
 

Implements GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian.

Definition at line 517 of file graphicsStateGuardian.cxx.


Friends And Related Function Documentation

friend class GraphicsEngine [friend]
 

Definition at line 362 of file graphicsStateGuardian.h.

friend class GraphicsPipe [friend]
 

Definition at line 360 of file graphicsStateGuardian.h.

friend class GraphicsWindow [friend]
 

Definition at line 361 of file graphicsStateGuardian.h.


Member Data Documentation

PUBLISHED GraphicsStateGuardian::__pad0__
 

Reimplemented from GraphicsStateGuardianBase.

Definition at line 71 of file graphicsStateGuardian.h.

Colorf GraphicsStateGuardian::_accum_clear_value [protected]
 

Definition at line 234 of file graphicsStateGuardian.h.

Referenced by CRGraphicsStateGuardian::clear(), GLGraphicsStateGuardian::do_clear(), and reset().

PStatCollector GraphicsStateGuardian::_active_geom_node_pcollector [static]
 

PStatCollector GraphicsStateGuardian::_active_geom_pcollector [static]
 

PStatCollector GraphicsStateGuardian::_active_texusage_pcollector [static]
 

int GraphicsStateGuardian::_buffer_mask [protected]
 

Definition at line 230 of file graphicsStateGuardian.h.

Referenced by wdxGraphicsWindow8::create_screen_buffers_and_device(), DXGraphicsStateGuardian7::DXGraphicsStateGuardian7(), get_render_buffer(), RIBGraphicsStateGuardian::reset(), reset(), GLGraphicsStateGuardian::reset(), CRGraphicsStateGuardian::reset(), and DXGraphicsStateGuardian8::reset_panda_gsg().

int GraphicsStateGuardian::_clear_buffer_type [protected]
 

Definition at line 235 of file graphicsStateGuardian.h.

Referenced by reset().

pvector<ClipPlaneInfo> GraphicsStateGuardian::_clip_plane_info [private]
 

Definition at line 322 of file graphicsStateGuardian.h.

Referenced by begin_frame(), and issue_clip_plane().

bool GraphicsStateGuardian::_clip_planes_enabled [protected]
 

Definition at line 254 of file graphicsStateGuardian.h.

Referenced by issue_clip_plane(), and reset().

bool GraphicsStateGuardian::_clip_planes_enabled_this_frame [private]
 

Definition at line 323 of file graphicsStateGuardian.h.

Referenced by begin_frame(), issue_clip_plane(), and reset().

bool GraphicsStateGuardian::_closing_gsg [protected]
 

Definition at line 269 of file graphicsStateGuardian.h.

Referenced by close_gsg(), GraphicsStateGuardian(), and GLGraphicsStateGuardian::release_texture().

ColorBlendAttrib::Mode GraphicsStateGuardian::_color_blend_mode [protected]
 

Definition at line 265 of file graphicsStateGuardian.h.

Referenced by issue_color_blend(), issue_color_write(), issue_transparency(), and reset().

Colorf GraphicsStateGuardian::_color_clear_value [protected]
 

Definition at line 231 of file graphicsStateGuardian.h.

Referenced by CRGraphicsStateGuardian::clear(), GLGraphicsStateGuardian::do_clear(), DXGraphicsStateGuardian7::DXGraphicsStateGuardian7(), DXGraphicsStateGuardian8::DXGraphicsStateGuardian8(), reset(), set_color_clear_value(), DXGraphicsStateGuardian8::set_color_clear_value(), and DXGraphicsStateGuardian7::set_color_clear_value().

int GraphicsStateGuardian::_color_transform_enabled [protected]
 

Definition at line 260 of file graphicsStateGuardian.h.

Referenced by GLGraphicsStateGuardian::draw_line(), CRGraphicsStateGuardian::draw_line(), GLGraphicsStateGuardian::draw_linestrip(), CRGraphicsStateGuardian::draw_linestrip(), DXGraphicsStateGuardian7::draw_multitri(), GLGraphicsStateGuardian::draw_point(), DXGraphicsStateGuardian7::draw_point(), CRGraphicsStateGuardian::draw_point(), GLGraphicsStateGuardian::draw_polygon(), CRGraphicsStateGuardian::draw_polygon(), DXGraphicsStateGuardian8::draw_prim_setup(), DXGraphicsStateGuardian7::draw_prim_setup(), GLGraphicsStateGuardian::draw_quad(), CRGraphicsStateGuardian::draw_quad(), GLGraphicsStateGuardian::draw_sphere(), CRGraphicsStateGuardian::draw_sphere(), GLGraphicsStateGuardian::draw_tri(), CRGraphicsStateGuardian::draw_tri(), GLGraphicsStateGuardian::draw_trifan(), CRGraphicsStateGuardian::draw_trifan(), GLGraphicsStateGuardian::draw_tristrip(), CRGraphicsStateGuardian::draw_tristrip(), issue_color_scale(), and reset().

ColorWriteAttrib::Mode GraphicsStateGuardian::_color_write_mode [protected]
 

Definition at line 264 of file graphicsStateGuardian.h.

Referenced by issue_color_blend(), issue_color_write(), DXGraphicsStateGuardian8::issue_color_write(), issue_transparency(), and reset().

CoordinateSystem GraphicsStateGuardian::_coordinate_system [protected]
 

Definition at line 247 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian().

LVecBase4f GraphicsStateGuardian::_current_color_offset [protected]
 

Definition at line 261 of file graphicsStateGuardian.h.

Referenced by GLGraphicsStateGuardian::issue_transformed_color(), reset(), DXGraphicsStateGuardian8::transform_color(), and DXGraphicsStateGuardian7::transform_color().

LVecBase4f GraphicsStateGuardian::_current_color_scale [protected]
 

Definition at line 262 of file graphicsStateGuardian.h.

Referenced by issue_color_scale(), GLGraphicsStateGuardian::issue_transformed_color(), reset(), DXGraphicsStateGuardian8::transform_color(), and DXGraphicsStateGuardian7::transform_color().

float GraphicsStateGuardian::_depth_clear_value [protected]
 

Definition at line 232 of file graphicsStateGuardian.h.

Referenced by CRGraphicsStateGuardian::clear(), GLGraphicsStateGuardian::do_clear(), DXGraphicsStateGuardian8::do_clear(), DXGraphicsStateGuardian7::do_clear(), reset(), and set_depth_clear_value().

int GraphicsStateGuardian::_display_region_stack_level [protected]
 

Definition at line 237 of file graphicsStateGuardian.h.

Referenced by reset().

PStatCollector GraphicsStateGuardian::_draw_primitive_pcollector [static]
 

Referenced by GLGraphicsStateGuardian::draw_geom_node(), CRGraphicsStateGuardian::draw_geom_node(), GLGraphicsStateGuardian::draw_line(), DXGraphicsStateGuardian8::draw_line(), DXGraphicsStateGuardian7::draw_line(), CRGraphicsStateGuardian::draw_line(), GLGraphicsStateGuardian::draw_linestrip(), CRGraphicsStateGuardian::draw_linestrip(), DXGraphicsStateGuardian8::draw_linestrip_base(), DXGraphicsStateGuardian7::draw_linestrip_base(), GLGraphicsStateGuardian::draw_point(), DXGraphicsStateGuardian8::draw_point(), DXGraphicsStateGuardian7::draw_point(), CRGraphicsStateGuardian::draw_point(), GLGraphicsStateGuardian::draw_polygon(), DXGraphicsStateGuardian8::draw_polygon(), DXGraphicsStateGuardian7::draw_polygon(), CRGraphicsStateGuardian::draw_polygon(), GLGraphicsStateGuardian::draw_quad(), DXGraphicsStateGuardian8::draw_quad(), DXGraphicsStateGuardian7::draw_quad(), CRGraphicsStateGuardian::draw_quad(), GLGraphicsStateGuardian::draw_sphere(), DXGraphicsStateGuardian8::draw_sphere(), DXGraphicsStateGuardian7::draw_sphere(), CRGraphicsStateGuardian::draw_sphere(), GLGraphicsStateGuardian::draw_sprite(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), CRGraphicsStateGuardian::draw_sprite(), GLGraphicsStateGuardian::draw_tri(), DXGraphicsStateGuardian8::draw_tri(), DXGraphicsStateGuardian7::draw_tri(), CRGraphicsStateGuardian::draw_tri(), GLGraphicsStateGuardian::draw_trifan(), DXGraphicsStateGuardian8::draw_trifan(), DXGraphicsStateGuardian7::draw_trifan(), CRGraphicsStateGuardian::draw_trifan(), GLGraphicsStateGuardian::draw_tristrip(), DXGraphicsStateGuardian8::draw_tristrip(), DXGraphicsStateGuardian7::draw_tristrip(), CRGraphicsStateGuardian::draw_tristrip(), and DXGraphicsStateGuardian7::prepare_texture().

int GraphicsStateGuardian::_frame_buffer_stack_level [protected]
 

Definition at line 238 of file graphicsStateGuardian.h.

Referenced by reset().

PStatCollector GraphicsStateGuardian::_frustum_cull_transforms_pcollector [static]
 

PStatCollector GraphicsStateGuardian::_frustum_cull_volumes_pcollector [static]
 

PStatCollector GraphicsStateGuardian::_geom_nodes_pcollector [static]
 

bool GraphicsStateGuardian::_has_scene_graph_color [protected]
 

Definition at line 250 of file graphicsStateGuardian.h.

Referenced by DXGraphicsStateGuardian8::draw_prim_setup(), DXGraphicsStateGuardian7::draw_prim_setup(), DXGraphicsStateGuardian8::dx_init(), DXGraphicsStateGuardian7::dx_init(), issue_color(), issue_color_scale(), and reset().

int GraphicsStateGuardian::_lens_stack_level [protected]
 

Definition at line 239 of file graphicsStateGuardian.h.

Referenced by reset().

pvector<LightInfo> GraphicsStateGuardian::_light_info [private]
 

Definition at line 311 of file graphicsStateGuardian.h.

Referenced by begin_frame(), and issue_light().

bool GraphicsStateGuardian::_lighting_enabled [protected]
 

Definition at line 253 of file graphicsStateGuardian.h.

Referenced by DXGraphicsStateGuardian7::dx_init(), issue_light(), DXGraphicsStateGuardian7::prepare_texture(), reset(), GLGraphicsStateGuardian::wants_normals(), DXGraphicsStateGuardian8::wants_normals(), and CRGraphicsStateGuardian::wants_normals().

bool GraphicsStateGuardian::_lighting_enabled_this_frame [private]
 

Definition at line 312 of file graphicsStateGuardian.h.

Referenced by begin_frame(), issue_light(), and reset().

bool GraphicsStateGuardian::_needs_reset [protected]
 

Definition at line 268 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian(), and reset().

PStatCollector GraphicsStateGuardian::_nodes_pcollector [static]
 

bool GraphicsStateGuardian::_normals_enabled [protected]
 

Definition at line 245 of file graphicsStateGuardian.h.

Referenced by DXGraphicsStateGuardian8::dx_init(), DXGraphicsStateGuardian7::dx_init(), GLGraphicsStateGuardian::prepare_geom_node(), CRGraphicsStateGuardian::prepare_geom_node(), DXGraphicsStateGuardian7::prepare_texture(), reset(), CRGraphicsStateGuardian::reset(), wants_normals(), GLGraphicsStateGuardian::wants_normals(), DXGraphicsStateGuardian8::wants_normals(), and CRGraphicsStateGuardian::wants_normals().

GeomNodes GraphicsStateGuardian::_prepared_geom_nodes [private]
 

Definition at line 332 of file graphicsStateGuardian.h.

Referenced by mark_prepared_geom_node(), release_all_geoms(), and unmark_prepared_geom_node().

Geoms GraphicsStateGuardian::_prepared_geoms [private]
 

Definition at line 330 of file graphicsStateGuardian.h.

Referenced by mark_prepared_geom(), release_all_geoms(), and unmark_prepared_geom().

Textures GraphicsStateGuardian::_prepared_textures [private]
 

Definition at line 328 of file graphicsStateGuardian.h.

Referenced by mark_prepared_texture(), traverse_prepared_textures(), and unmark_prepared_texture().

FrameBufferProperties GraphicsStateGuardian::_properties [private]
 

Definition at line 334 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian().

PStatCollector GraphicsStateGuardian::_render_states_pcollector [static]
 

PStatCollector GraphicsStateGuardian::_render_states_unused_pcollector [static]
 

Colorf GraphicsStateGuardian::_scene_graph_color [protected]
 

Definition at line 249 of file graphicsStateGuardian.h.

Referenced by DXGraphicsStateGuardian7::draw_multitri(), DXGraphicsStateGuardian8::draw_prim_setup(), DXGraphicsStateGuardian7::draw_prim_setup(), and issue_color().

bool GraphicsStateGuardian::_scene_graph_color_stale [protected]
 

Definition at line 251 of file graphicsStateGuardian.h.

Referenced by DXGraphicsStateGuardian8::draw_prim_setup(), DXGraphicsStateGuardian7::draw_prim_setup(), issue_color(), issue_color_scale(), and reset().

PStatCollector GraphicsStateGuardian::_set_state_pcollector [static]
 

PStatCollector GraphicsStateGuardian::_state_changes_pcollector [static]
 

bool GraphicsStateGuardian::_stencil_clear_value [protected]
 

Definition at line 233 of file graphicsStateGuardian.h.

Referenced by CRGraphicsStateGuardian::clear(), GLGraphicsStateGuardian::do_clear(), DXGraphicsStateGuardian8::do_clear(), DXGraphicsStateGuardian7::do_clear(), and reset().

PStatCollector GraphicsStateGuardian::_texmgrmem_resident_pcollector [static]
 

Referenced by DXGraphicsStateGuardian8::report_texmgr_stats(), and DXGraphicsStateGuardian7::report_texmgr_stats().

PStatCollector GraphicsStateGuardian::_texmgrmem_total_pcollector [static]
 

Referenced by DXGraphicsStateGuardian8::end_frame(), DXGraphicsStateGuardian7::prepare_texture(), DXGraphicsStateGuardian8::report_texmgr_stats(), and DXGraphicsStateGuardian7::report_texmgr_stats().

PStatCollector GraphicsStateGuardian::_texture_state_pcollector [static]
 

GraphicsThreadingModel GraphicsStateGuardian::_threading_model [private]
 

Definition at line 336 of file graphicsStateGuardian.h.

PStatCollector GraphicsStateGuardian::_total_geom_node_pcollector [static]
 

Referenced by mark_prepared_geom_node(), and unmark_prepared_geom_node().

PStatCollector GraphicsStateGuardian::_total_geom_pcollector [static]
 

Referenced by mark_prepared_geom(), and unmark_prepared_geom().

PStatCollector GraphicsStateGuardian::_total_texmem_pcollector [static]
 

Referenced by DXGraphicsStateGuardian8::report_texmgr_stats(), and DXGraphicsStateGuardian7::report_texmgr_stats().

PStatCollector GraphicsStateGuardian::_total_texusage_pcollector [static]
 

Referenced by mark_prepared_texture(), and unmark_prepared_texture().

PStatCollector GraphicsStateGuardian::_transform_state_pcollector [static]
 

PStatCollector GraphicsStateGuardian::_transform_states_pcollector [static]
 

PStatCollector GraphicsStateGuardian::_transform_states_unused_pcollector [static]
 

TransparencyAttrib::Mode GraphicsStateGuardian::_transparency_mode [protected]
 

Definition at line 266 of file graphicsStateGuardian.h.

Referenced by issue_color_blend(), issue_color_write(), issue_transparency(), and reset().

TypeHandle GraphicsStateGuardian::_type_handle [static, private]
 

Reimplemented from GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, glxGraphicsStateGuardian, RIBGraphicsStateGuardian, and wglGraphicsStateGuardian.

Definition at line 76 of file graphicsStateGuardian.cxx.

PStatCollector GraphicsStateGuardian::_used_texmem_pcollector [static]
 

Referenced by DXGraphicsStateGuardian8::report_texmgr_stats(), and DXGraphicsStateGuardian7::report_texmgr_stats().

bool GraphicsStateGuardian::_vertex_colors_enabled [protected]
 

Definition at line 252 of file graphicsStateGuardian.h.

Referenced by DXGraphicsStateGuardian7::draw_multitri(), issue_color(), GLGraphicsStateGuardian::prepare_geom_node(), CRGraphicsStateGuardian::prepare_geom_node(), reset(), and wants_colors().

PStatCollector GraphicsStateGuardian::_vertices_other_pcollector [static]
 

Referenced by GLGraphicsStateGuardian::draw_line(), DXGraphicsStateGuardian8::draw_line(), DXGraphicsStateGuardian7::draw_line(), CRGraphicsStateGuardian::draw_line(), GLGraphicsStateGuardian::draw_linestrip(), CRGraphicsStateGuardian::draw_linestrip(), DXGraphicsStateGuardian8::draw_linestrip_base(), DXGraphicsStateGuardian7::draw_linestrip_base(), GLGraphicsStateGuardian::draw_point(), DXGraphicsStateGuardian8::draw_point(), DXGraphicsStateGuardian7::draw_point(), CRGraphicsStateGuardian::draw_point(), GLGraphicsStateGuardian::draw_polygon(), DXGraphicsStateGuardian8::draw_polygon(), DXGraphicsStateGuardian7::draw_polygon(), CRGraphicsStateGuardian::draw_polygon(), GLGraphicsStateGuardian::draw_quad(), DXGraphicsStateGuardian8::draw_quad(), DXGraphicsStateGuardian7::draw_quad(), CRGraphicsStateGuardian::draw_quad(), GLGraphicsStateGuardian::draw_sphere(), DXGraphicsStateGuardian8::draw_sphere(), DXGraphicsStateGuardian7::draw_sphere(), CRGraphicsStateGuardian::draw_sphere(), GLGraphicsStateGuardian::draw_sprite(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), CRGraphicsStateGuardian::draw_sprite(), GLGraphicsStateGuardian::prepare_geom_node(), CRGraphicsStateGuardian::prepare_geom_node(), and DXGraphicsStateGuardian7::prepare_texture().

PStatCollector GraphicsStateGuardian::_vertices_pcollector [static]
 

PStatCollector GraphicsStateGuardian::_vertices_tri_pcollector [static]
 

Referenced by GLGraphicsStateGuardian::draw_tri(), DXGraphicsStateGuardian8::draw_tri(), DXGraphicsStateGuardian7::draw_tri(), CRGraphicsStateGuardian::draw_tri(), GLGraphicsStateGuardian::prepare_geom_node(), CRGraphicsStateGuardian::prepare_geom_node(), and DXGraphicsStateGuardian7::prepare_texture().

PStatCollector GraphicsStateGuardian::_vertices_trifan_pcollector [static]
 

Referenced by GLGraphicsStateGuardian::draw_trifan(), DXGraphicsStateGuardian8::draw_trifan(), DXGraphicsStateGuardian7::draw_trifan(), CRGraphicsStateGuardian::draw_trifan(), GLGraphicsStateGuardian::prepare_geom_node(), CRGraphicsStateGuardian::prepare_geom_node(), and DXGraphicsStateGuardian7::prepare_texture().

PStatCollector GraphicsStateGuardian::_vertices_tristrip_pcollector [static]
 

Referenced by GLGraphicsStateGuardian::draw_tristrip(), DXGraphicsStateGuardian8::draw_tristrip(), DXGraphicsStateGuardian7::draw_tristrip(), CRGraphicsStateGuardian::draw_tristrip(), GLGraphicsStateGuardian::prepare_geom_node(), CRGraphicsStateGuardian::prepare_geom_node(), and DXGraphicsStateGuardian7::prepare_texture().


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