#include <graphicsStateGuardianBase.h>
Inheritance diagram for GraphicsStateGuardianBase:
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 |
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.
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian. |
|
Implemented in GraphicsStateGuardian. |
|
Implemented in GraphicsStateGuardian. |
|
Implemented in GraphicsStateGuardian. |
|
Reimplemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 209 of file graphicsStateGuardianBase.h. |
|
Reimplemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 208 of file graphicsStateGuardianBase.h. |
|
Reimplemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 207 of file graphicsStateGuardianBase.h. Referenced by Spotlight::xform(). |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian. Referenced by Texture::unprepare(). |
|
Implemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Referenced by GeomLine::make_copy(). |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Referenced by GeomLinestrip::make_copy(). |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Referenced by GeomSprite::make_copy(). |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. |
|
Implemented in GraphicsStateGuardian. |
|
Reimplemented from TypedReferenceCount. Reimplemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, glxGraphicsStateGuardian, RIBGraphicsStateGuardian, and wglGraphicsStateGuardian. Definition at line 225 of file graphicsStateGuardianBase.h. |
|
Reimplemented from TypedReferenceCount. Reimplemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, glxGraphicsStateGuardian, RIBGraphicsStateGuardian, and wglGraphicsStateGuardian. Definition at line 212 of file graphicsStateGuardianBase.h. |
|
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(). |
|
Reimplemented from TypedReferenceCount. Reimplemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, glxGraphicsStateGuardian, RIBGraphicsStateGuardian, and wglGraphicsStateGuardian. Definition at line 222 of file graphicsStateGuardianBase.h. |
|
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. |
|
Reimplemented from TypedReferenceCount. Reimplemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, glxGraphicsStateGuardian, RIBGraphicsStateGuardian, and wglGraphicsStateGuardian. Definition at line 217 of file graphicsStateGuardianBase.h. |
|
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(). |
|
|
Reimplemented in DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 186 of file graphicsStateGuardianBase.h. Referenced by AlphaTestAttrib::make(). |
|
Reimplemented in GraphicsStateGuardian. Definition at line 205 of file graphicsStateGuardianBase.h. References TypedReferenceCount::init_type(). Referenced by ClipPlaneAttrib::make(). |
|
Reimplemented in GraphicsStateGuardian. Definition at line 188 of file graphicsStateGuardianBase.h. |
|
Reimplemented in GraphicsStateGuardian. Definition at line 202 of file graphicsStateGuardianBase.h. Referenced by ColorBlendAttrib::make(). |
|
Reimplemented in GraphicsStateGuardian. Definition at line 187 of file graphicsStateGuardianBase.h. Referenced by ColorScaleAttrib::make(). |
|
Reimplemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 195 of file graphicsStateGuardianBase.h. Referenced by ColorWriteAttrib::make(). |
|
Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 198 of file graphicsStateGuardianBase.h. Referenced by CullFaceAttrib::get_effective_mode(). |
|
Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 201 of file graphicsStateGuardianBase.h. Referenced by DepthOffsetAttrib::make(). |
|
Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 196 of file graphicsStateGuardianBase.h. Referenced by DepthTestAttrib::make(). |
|
Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 197 of file graphicsStateGuardianBase.h. Referenced by DepthWriteAttrib::make(). |
|
Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 200 of file graphicsStateGuardianBase.h. Referenced by FogAttrib::make_off(). |
|
Reimplemented in GraphicsStateGuardian. Definition at line 191 of file graphicsStateGuardianBase.h. Referenced by LightAttrib::make(). |
|
Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 192 of file graphicsStateGuardianBase.h. Referenced by MaterialAttrib::make_off(). |
|
Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 193 of file graphicsStateGuardianBase.h. Referenced by RenderModeAttrib::make(). |
|
Definition at line 204 of file graphicsStateGuardianBase.h. |
|
Definition at line 203 of file graphicsStateGuardianBase.h. |
|
Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 189 of file graphicsStateGuardianBase.h. Referenced by TexMatrixAttrib::make(). |
|
Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 190 of file graphicsStateGuardianBase.h. Referenced by TextureAttrib::make_off(). |
|
Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 194 of file graphicsStateGuardianBase.h. Referenced by TextureApplyAttrib::make(). |
|
Reimplemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. Definition at line 185 of file graphicsStateGuardianBase.h. |
|
Reimplemented in GraphicsStateGuardian. Definition at line 199 of file graphicsStateGuardianBase.h. References PUBLISHED. Referenced by TransparencyAttrib::make(). |
|
Implemented in GraphicsStateGuardian. Referenced by Geom::draw(). |
|
Implemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian. Referenced by Texture::set_border_color(). |
|
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(). |
|
Implemented in GraphicsStateGuardian. Referenced by Geom::config(). |
|
Implemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian. |
|
Implemented in GraphicsStateGuardian. Referenced by CullHandler::draw_with_decals(). |
|
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(). |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian. Referenced by SomeViz::DisplayTexture(), and BaseViz::DisplayTexture(). |
|
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(). |
|
Implemented in GraphicsStateGuardian, and RIBGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian. |
|
Implemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, and RIBGraphicsStateGuardian. |
|
Reimplemented from TypedReferenceCount. Reimplemented in CRGraphicsStateGuardian, GraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, GLGraphicsStateGuardian, glxGraphicsStateGuardian, RIBGraphicsStateGuardian, and wglGraphicsStateGuardian. Definition at line 24 of file graphicsStateGuardianBase.cxx. |