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

GraphicsStateGuardianBase Class Reference

This is a base class for the GraphicsStateGuardian class, which is itself a base class for the various GSG's for different platforms. More...

#include <graphicsStateGuardianBase.h>

Inheritance diagram for GraphicsStateGuardianBase:

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

Public Member Functions

virtual bool wants_normals (void) const=0
virtual bool wants_texcoords (void) const=0
virtual bool wants_colors (void) const=0
virtual TextureContext * prepare_texture (Texture *tex)=0
virtual void apply_texture (TextureContext *tc)=0
virtual void release_texture (TextureContext *tc)=0
virtual GeomNodeContext * prepare_geom_node (GeomNode *node)=0
virtual void draw_geom_node (GeomNode *node, const RenderState *state, GeomNodeContext *gnc)=0
virtual void release_geom_node (GeomNodeContext *gnc)=0
virtual GeomContext * prepare_geom (Geom *geom)=0
virtual void release_geom (GeomContext *gc)=0
virtual void set_state_and_transform (const RenderState *state, const TransformState *transform)=0
virtual float compute_distance_to (const LPoint3f &point) const=0
virtual bool depth_offset_decals ()=0
virtual ConstPointerTo< RenderState > begin_decal_base_first ()=0
virtual ConstPointerTo< RenderState > begin_decal_nested ()=0
virtual ConstPointerTo< RenderState > begin_decal_base_second ()=0
virtual void finish_decal ()=0
virtual void draw_point (GeomPoint *geom, GeomContext *gc)=0
virtual void draw_line (GeomLine *geom, GeomContext *gc)=0
virtual void draw_linestrip (GeomLinestrip *geom, GeomContext *gc)=0
virtual void draw_sprite (GeomSprite *geom, GeomContext *gc)=0
virtual void draw_polygon (GeomPolygon *geom, GeomContext *gc)=0
virtual void draw_quad (GeomQuad *geom, GeomContext *gc)=0
virtual void draw_tri (GeomTri *geom, GeomContext *gc)=0
virtual void draw_tristrip (GeomTristrip *geom, GeomContext *gc)=0
virtual void draw_trifan (GeomTrifan *geom, GeomContext *gc)=0
virtual void draw_sphere (GeomSphere *geom, GeomContext *gc)=0
virtual void copy_texture (TextureContext *tc, const DisplayRegion *dr)=0
virtual void copy_texture (TextureContext *tc, const DisplayRegion *dr, const RenderBuffer &rb)=0
virtual void texture_to_pixel_buffer (TextureContext *tc, PixelBuffer *pb)=0
virtual void texture_to_pixel_buffer (TextureContext *tc, PixelBuffer *pb, const DisplayRegion *dr)=0
virtual void copy_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr)=0
virtual void copy_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr, const RenderBuffer &rb)=0
virtual void apply_material (const Material *material)=0
virtual void issue_transform (const TransformState *)
virtual void issue_alpha_test (const AlphaTestAttrib *)
virtual void issue_color_scale (const ColorScaleAttrib *)
virtual void issue_color (const ColorAttrib *)
virtual void issue_tex_matrix (const TexMatrixAttrib *)
virtual void issue_texture (const TextureAttrib *)
virtual void issue_light (const LightAttrib *)
virtual void issue_material (const MaterialAttrib *)
virtual void issue_render_mode (const RenderModeAttrib *)
virtual void issue_texture_apply (const TextureApplyAttrib *)
virtual void issue_color_write (const ColorWriteAttrib *)
virtual void issue_depth_test (const DepthTestAttrib *)
virtual void issue_depth_write (const DepthWriteAttrib *)
virtual void issue_cull_face (const CullFaceAttrib *)
virtual void issue_transparency (const TransparencyAttrib *)
virtual void issue_fog (const FogAttrib *)
virtual void issue_depth_offset (const DepthOffsetAttrib *)
virtual void issue_color_blend (const ColorBlendAttrib *)
virtual void issue_tex_gen (const TexGenAttrib *)
virtual void issue_stencil (const StencilAttrib *)
virtual void issue_clip_plane (const ClipPlaneAttrib *)
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 TypeHandle get_type () const
virtual TypeHandle force_init_type ()
int get_type_index () const
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.

bool is_of_type (TypeHandle handle) const
 Returns true if the current object is or derives from the indicated type.

bool is_exact_type (TypeHandle handle) const
 Returns true if the current object is the indicated type exactly.

int get_ref_count () const
 Returns the current reference count.

int ref () const
 Explicitly increments the reference count.

int unref () const
 Explicitly decrements the reference count.

void test_ref_count_integrity () const
 Does some easy checks to make sure that the reference count isn't completely bogus.


Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Static Private Attributes

TypeHandle _type_handle

Detailed Description

This is a base class for the GraphicsStateGuardian class, which is itself a base class for the various GSG's for different platforms.

This class contains all the function prototypes to support the double-dispatch of GSG to geoms, transitions, etc. It lives in a separate class in its own package so we can avoid circular build dependency problems.

Definition at line 108 of file graphicsStateGuardianBase.h.


Member Function Documentation

virtual void GraphicsStateGuardianBase::apply_material (  const Material *  material  )  [pure virtual]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

virtual void GraphicsStateGuardianBase::apply_texture (  TextureContext *  tc  )  [pure virtual]
 

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

virtual ConstPointerTo< RenderState > GraphicsStateGuardianBase::begin_decal_base_first (   )  [pure virtual]
 

Implemented in GraphicsStateGuardian.

virtual ConstPointerTo< RenderState > GraphicsStateGuardianBase::begin_decal_base_second (   )  [pure virtual]
 

Implemented in GraphicsStateGuardian.

virtual ConstPointerTo< RenderState > GraphicsStateGuardianBase::begin_decal_nested (   )  [pure virtual]
 

Implemented in GraphicsStateGuardian.

virtual void GraphicsStateGuardianBase::bind_light (  Spotlight *  light,
int  light_id
)  [inline, virtual]
 

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

Definition at line 209 of file graphicsStateGuardianBase.h.

virtual void GraphicsStateGuardianBase::bind_light (  DirectionalLight *  light,
int  light_id
)  [inline, virtual]
 

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

Definition at line 208 of file graphicsStateGuardianBase.h.

virtual void GraphicsStateGuardianBase::bind_light (  PointLight *  light,
int  light_id
)  [inline, virtual]
 

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

Definition at line 207 of file graphicsStateGuardianBase.h.

Referenced by Spotlight::xform().

virtual float GraphicsStateGuardianBase::compute_distance_to (  const LPoint3f &  point  )  const [pure virtual]
 

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

virtual void GraphicsStateGuardianBase::copy_pixel_buffer (  PixelBuffer *  pb,
const DisplayRegion *  dr,
const RenderBuffer &  rb
)  [pure virtual]
 

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

virtual void GraphicsStateGuardianBase::copy_pixel_buffer (  PixelBuffer *  pb,
const DisplayRegion *  dr
)  [pure virtual]
 

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

virtual void GraphicsStateGuardianBase::copy_texture (  TextureContext *  tc,
const DisplayRegion *  dr,
const RenderBuffer &  rb
)  [pure virtual]
 

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

virtual void GraphicsStateGuardianBase::copy_texture (  TextureContext *  tc,
const DisplayRegion *  dr
)  [pure virtual]
 

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

Referenced by Texture::unprepare().

virtual bool GraphicsStateGuardianBase::depth_offset_decals (   )  [pure virtual]
 

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

virtual void GraphicsStateGuardianBase::draw_geom_node (  GeomNode *  node,
const RenderState *  state,
GeomNodeContext *  gnc
)  [pure virtual]
 

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

virtual void GraphicsStateGuardianBase::draw_line (  GeomLine *  geom,
GeomContext *  gc
)  [pure virtual]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Referenced by GeomLine::make_copy().

virtual void GraphicsStateGuardianBase::draw_linestrip (  GeomLinestrip *  geom,
GeomContext *  gc
)  [pure virtual]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Referenced by GeomLinestrip::make_copy().

virtual void GraphicsStateGuardianBase::draw_point (  GeomPoint *  geom,
GeomContext *  gc
)  [pure virtual]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

virtual void GraphicsStateGuardianBase::draw_polygon (  GeomPolygon *  geom,
GeomContext *  gc
)  [pure virtual]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

virtual void GraphicsStateGuardianBase::draw_quad (  GeomQuad *  geom,
GeomContext *  gc
)  [pure virtual]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

virtual void GraphicsStateGuardianBase::draw_sphere (  GeomSphere *  geom,
GeomContext *  gc
)  [pure virtual]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

virtual void GraphicsStateGuardianBase::draw_sprite (  GeomSprite *  geom,
GeomContext *  gc
)  [pure virtual]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Referenced by GeomSprite::make_copy().

virtual void GraphicsStateGuardianBase::draw_tri (  GeomTri *  geom,
GeomContext *  gc
)  [pure virtual]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

virtual void GraphicsStateGuardianBase::draw_trifan (  GeomTrifan *  geom,
GeomContext *  gc
)  [pure virtual]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

virtual void GraphicsStateGuardianBase::draw_tristrip (  GeomTristrip *  geom,
GeomContext *  gc
)  [pure virtual]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

virtual void GraphicsStateGuardianBase::finish_decal (   )  [pure virtual]
 

Implemented in GraphicsStateGuardian.

virtual TypeHandle GraphicsStateGuardianBase::force_init_type (  void   )  [inline, virtual]
 

Reimplemented from TypedReferenceCount.

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

Definition at line 225 of file graphicsStateGuardianBase.h.

TypeHandle GraphicsStateGuardianBase::get_class_type (  void   )  [inline, static]
 

Reimplemented from TypedReferenceCount.

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

Definition at line 212 of file graphicsStateGuardianBase.h.

int ReferenceCount::get_ref_count (   )  const [inline, inherited]
 

Returns the current reference count.

Definition at line 183 of file referenceCount.I.

Referenced by RenderState::determine_bin_index(), RenderEffects::determine_show_bounds(), FontPool::ns_garbage_collect(), TexturePool::ns_garbage_collect(), MaterialPool::ns_get_material(), and TexturePool::ns_release_texture().

virtual TypeHandle GraphicsStateGuardianBase::get_type (  void   )  const [inline, virtual]
 

Reimplemented from TypedReferenceCount.

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

Definition at line 222 of file graphicsStateGuardianBase.h.

int TypedObject::get_type_index (   )  const [inline, inherited]
 

Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.

This is equivalent to get_type().get_index().

Definition at line 71 of file typedObject.I.

References TypeHandle::get_name(), TypedObject::get_type(), and INLINE.

void GraphicsStateGuardianBase::init_type (  void   )  [inline, static]
 

Reimplemented from TypedReferenceCount.

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

Definition at line 217 of file graphicsStateGuardianBase.h.

bool TypedObject::is_exact_type (  TypeHandle  handle  )  const [inline, inherited]
 

Returns true if the current object is the indicated type exactly.

Definition at line 101 of file typedObject.I.

Referenced by PT(), and CollisionNode::xform().

bool TypedObject::is_of_type (  TypeHandle  handle  )  const [inline, inherited]
 

Returns true if the current object is or derives from the indicated type.

Definition at line 86 of file typedObject.I.

Referenced by EggMaterialCollection::collapse_equivalent_materials(), EggTextureCollection::collapse_equivalent_textures(), DeferredNodeProperty::compose(), AnimBundleMaker::create_s_channel(), CharacterMaker::create_slider(), ProjectionScreen::cull_callback(), DataNode::define_output(), EggNode::determine_draw_order(), CharacterMaker::egg_to_index(), EggGroupUniquifier::EggGroupUniquifier(), EggPoolUniquifier::EggPoolUniquifier(), EggGroupNode::find_textures(), StaticTextFont::get_glyph(), EggMaterialCollection::insert_materials(), EggTextureCollection::insert_textures(), CharacterJoint::make_copy(), PT(), EggGroupNode::r_flatten_transforms(), EggGroupNode::r_transform_vertices(), EggGroupNode::recompute_polygon_normals(), CollisionLevelState::reserve(), PandaFramework::reset_frame_rate(), PandaFramework::set_texture(), EggGroupNode::steal_children(), and DataGraphTraverser::traverse().

virtual void GraphicsStateGuardianBase::issue_alpha_test (  const AlphaTestAttrib *   )  [inline, virtual]
 

Reimplemented in DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 186 of file graphicsStateGuardianBase.h.

Referenced by AlphaTestAttrib::make().

virtual void GraphicsStateGuardianBase::issue_clip_plane (  const ClipPlaneAttrib *   )  [inline, virtual]
 

Reimplemented in GraphicsStateGuardian.

Definition at line 205 of file graphicsStateGuardianBase.h.

References TypedReferenceCount::init_type().

Referenced by ClipPlaneAttrib::make().

virtual void GraphicsStateGuardianBase::issue_color (  const ColorAttrib *   )  [inline, virtual]
 

Reimplemented in GraphicsStateGuardian.

Definition at line 188 of file graphicsStateGuardianBase.h.

virtual void GraphicsStateGuardianBase::issue_color_blend (  const ColorBlendAttrib *   )  [inline, virtual]
 

Reimplemented in GraphicsStateGuardian.

Definition at line 202 of file graphicsStateGuardianBase.h.

Referenced by ColorBlendAttrib::make().

virtual void GraphicsStateGuardianBase::issue_color_scale (  const ColorScaleAttrib *   )  [inline, virtual]
 

Reimplemented in GraphicsStateGuardian.

Definition at line 187 of file graphicsStateGuardianBase.h.

Referenced by ColorScaleAttrib::make().

virtual void GraphicsStateGuardianBase::issue_color_write (  const ColorWriteAttrib *   )  [inline, virtual]
 

Reimplemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 195 of file graphicsStateGuardianBase.h.

Referenced by ColorWriteAttrib::make().

virtual void GraphicsStateGuardianBase::issue_cull_face (  const CullFaceAttrib *   )  [inline, virtual]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 198 of file graphicsStateGuardianBase.h.

Referenced by CullFaceAttrib::get_effective_mode().

virtual void GraphicsStateGuardianBase::issue_depth_offset (  const DepthOffsetAttrib *   )  [inline, virtual]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 201 of file graphicsStateGuardianBase.h.

Referenced by DepthOffsetAttrib::make().

virtual void GraphicsStateGuardianBase::issue_depth_test (  const DepthTestAttrib *   )  [inline, virtual]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 196 of file graphicsStateGuardianBase.h.

Referenced by DepthTestAttrib::make().

virtual void GraphicsStateGuardianBase::issue_depth_write (  const DepthWriteAttrib *   )  [inline, virtual]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 197 of file graphicsStateGuardianBase.h.

Referenced by DepthWriteAttrib::make().

virtual void GraphicsStateGuardianBase::issue_fog (  const FogAttrib *   )  [inline, virtual]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 200 of file graphicsStateGuardianBase.h.

Referenced by FogAttrib::make_off().

virtual void GraphicsStateGuardianBase::issue_light (  const LightAttrib *   )  [inline, virtual]
 

Reimplemented in GraphicsStateGuardian.

Definition at line 191 of file graphicsStateGuardianBase.h.

Referenced by LightAttrib::make().

virtual void GraphicsStateGuardianBase::issue_material (  const MaterialAttrib *   )  [inline, virtual]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 192 of file graphicsStateGuardianBase.h.

Referenced by MaterialAttrib::make_off().

virtual void GraphicsStateGuardianBase::issue_render_mode (  const RenderModeAttrib *   )  [inline, virtual]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 193 of file graphicsStateGuardianBase.h.

Referenced by RenderModeAttrib::make().

virtual void GraphicsStateGuardianBase::issue_stencil (  const StencilAttrib *   )  [inline, virtual]
 

Definition at line 204 of file graphicsStateGuardianBase.h.

virtual void GraphicsStateGuardianBase::issue_tex_gen (  const TexGenAttrib *   )  [inline, virtual]
 

Definition at line 203 of file graphicsStateGuardianBase.h.

virtual void GraphicsStateGuardianBase::issue_tex_matrix (  const TexMatrixAttrib *   )  [inline, virtual]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 189 of file graphicsStateGuardianBase.h.

Referenced by TexMatrixAttrib::make().

virtual void GraphicsStateGuardianBase::issue_texture (  const TextureAttrib *   )  [inline, virtual]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 190 of file graphicsStateGuardianBase.h.

Referenced by TextureAttrib::make_off().

virtual void GraphicsStateGuardianBase::issue_texture_apply (  const TextureApplyAttrib *   )  [inline, virtual]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 194 of file graphicsStateGuardianBase.h.

Referenced by TextureApplyAttrib::make().

virtual void GraphicsStateGuardianBase::issue_transform (  const TransformState *   )  [inline, virtual]
 

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

Definition at line 185 of file graphicsStateGuardianBase.h.

virtual void GraphicsStateGuardianBase::issue_transparency (  const TransparencyAttrib *   )  [inline, virtual]
 

Reimplemented in GraphicsStateGuardian.

Definition at line 199 of file graphicsStateGuardianBase.h.

References PUBLISHED.

Referenced by TransparencyAttrib::make().

virtual GeomContext* GraphicsStateGuardianBase::prepare_geom (  Geom *  geom  )  [pure virtual]
 

Implemented in GraphicsStateGuardian.

Referenced by Geom::draw().

virtual GeomNodeContext* GraphicsStateGuardianBase::prepare_geom_node (  GeomNode *  node  )  [pure virtual]
 

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

virtual TextureContext* GraphicsStateGuardianBase::prepare_texture (  Texture *  tex  )  [pure virtual]
 

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

Referenced by Texture::set_border_color().

int ReferenceCount::ref (   )  const [inline, inherited]
 

Explicitly increments the reference count.

User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically.

This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it.

The return value is the new reference count.

Definition at line 225 of file referenceCount.I.

Referenced by ClientDevice::ClientDevice(), EggGroupNode::find_textures(), EggGroupNode::r_apply_texmats(), EggGroupNode::r_flatten_transforms(), and EggGroupNode::reverse_vertex_ordering().

virtual void GraphicsStateGuardianBase::release_geom (  GeomContext *  gc  )  [pure virtual]
 

Implemented in GraphicsStateGuardian.

Referenced by Geom::config().

virtual void GraphicsStateGuardianBase::release_geom_node (  GeomNodeContext *  gnc  )  [pure virtual]
 

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

virtual void GraphicsStateGuardianBase::release_texture (  TextureContext *  tc  )  [pure virtual]
 

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

virtual void GraphicsStateGuardianBase::set_state_and_transform (  const RenderState *  state,
const TransformState *  transform
)  [pure virtual]
 

Implemented in GraphicsStateGuardian.

Referenced by CullHandler::draw_with_decals().

void ReferenceCount::test_ref_count_integrity (   )  const [inline, inherited]
 

Does some easy checks to make sure that the reference count isn't completely bogus.

Definition at line 328 of file referenceCount.I.

References INLINE.

Referenced by EggNode::determine_bin(), and ReferenceCount::~ReferenceCount().

virtual void GraphicsStateGuardianBase::texture_to_pixel_buffer (  TextureContext *  tc,
PixelBuffer *  pb,
const DisplayRegion *  dr
)  [pure virtual]
 

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

virtual void GraphicsStateGuardianBase::texture_to_pixel_buffer (  TextureContext *  tc,
PixelBuffer *  pb
)  [pure virtual]
 

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

Referenced by SomeViz::DisplayTexture(), and BaseViz::DisplayTexture().

int ReferenceCount::unref (   )  const [inline, inherited]
 

Explicitly decrements the reference count.

Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic; plus, we don't have a virtual destructor anyway.) However, see the helper function unref_delete().

User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically.

This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it.

The return value is the new reference count.

Definition at line 293 of file referenceCount.I.

References INLINE.

Referenced by RenderState::determine_bin_index(), and RenderEffects::determine_show_bounds().

virtual bool GraphicsStateGuardianBase::wants_colors (  void   )  const [pure virtual]
 

Implemented in GraphicsStateGuardian, and RIBGraphicsStateGuardian.

virtual bool GraphicsStateGuardianBase::wants_normals (  void   )  const [pure virtual]
 

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

virtual bool GraphicsStateGuardianBase::wants_texcoords (  void   )  const [pure virtual]
 

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


Member Data Documentation

TypeHandle GraphicsStateGuardianBase::_type_handle [static, private]
 

Reimplemented from TypedReferenceCount.

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

Definition at line 24 of file graphicsStateGuardianBase.cxx.


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:51:26 2003 for Panda by doxygen1.3