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

RIBGraphicsStateGuardian Class Reference

A GraphicsStateGuardian specialized for creating RIB files, suitable for shipping off to a Renderman-friendly non-real-time renderer. More...

#include <ribGraphicsStateGuardian.h>

Inheritance diagram for RIBGraphicsStateGuardian:

GraphicsStateGuardian GraphicsStateGuardianBase TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Member Functions

 RIBGraphicsStateGuardian (GraphicsWindow *win)
virtual void reset ()
 Resets all internal state and prepares a new RIB file.

void reset_file (ostream &out)
 Resets all internal state and prepares a new RIB file to the indicated output stream.

void reset_frame ()
 Resets whatever state is appropriate at the end of a frame.

virtual void clear (const RenderBuffer &buffer)
 Clears all of the indicated buffers to their assigned colors.

virtual void clear (const RenderBuffer &buffer, const DisplayRegion *region)
 Clears all of the indicated buffers to their assigned colors.

virtual void prepare_display_region ()
 Prepare a display region for rendering (set up scissor region and viewport).

virtual void render_frame (const AllAttributesWrapper &initial_state)
virtual void render_scene (Node *root, ProjectionNode *projnode, const AllAttributesWrapper &initial_state)
virtual void render_subgraph (RenderTraverser *traverser, Node *subgraph, ProjectionNode *projnode, const AllAttributesWrapper &initial_state, const AllTransitionsWrapper &net_trans)
virtual void render_subgraph (RenderTraverser *traverser, Node *subgraph, const AllAttributesWrapper &initial_state, const AllTransitionsWrapper &net_trans)
virtual bool wants_normals (void) const
virtual bool wants_texcoords (void) const
virtual bool wants_colors (void) const
 Returns true if the GSG should issue geometry color commands, false otherwise.

virtual float compute_distance_to (const LPoint3f &point) const
 This function may only be called during a render traversal; it will compute the distance to the indicated point, assumed to be in modelview coordinates, from the camera plane.

virtual void draw_point (const GeomPoint *geom)
virtual void draw_line (const GeomLine *geom)
virtual void draw_linestrip (const GeomLinestrip *)
virtual void draw_sprite (const GeomSprite *geom)
virtual void draw_polygon (const GeomPolygon *geom)
virtual void draw_quad (const GeomQuad *geom)
virtual void draw_tri (const GeomTri *geom)
virtual void draw_tristrip (const GeomTristrip *geom)
virtual void draw_trifan (const GeomTrifan *geom)
virtual void draw_sphere (const GeomSphere *geom)
virtual TextureContextprepare_texture (Texture *tex)
 Prepares the indicated texture for retained-mode rendering.

virtual void apply_texture (TextureContext *tc)
 Applies the texture previously indicated via a call to prepare_texture() to the graphics state, so that geometry rendered in the future will be rendered with the given texture.

virtual void release_texture (TextureContext *tc)
 Frees the resources previously allocated via a call to prepare_texture(), including deleting the TextureContext itself, if necessary.

virtual void copy_texture (TextureContext *tc, const DisplayRegion *dr)
virtual void copy_texture (TextureContext *tc, const DisplayRegion *dr, const RenderBuffer &rb)
virtual void draw_texture (TextureContext *tc, const DisplayRegion *dr)
virtual void draw_texture (TextureContext *tc, const DisplayRegion *dr, const RenderBuffer &rb)
virtual void texture_to_pixel_buffer (TextureContext *, PixelBuffer *)
virtual void texture_to_pixel_buffer (TextureContext *, PixelBuffer *, const DisplayRegion *)
virtual void copy_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr)
virtual void copy_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr, const RenderBuffer &rb)
virtual void draw_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr, const NodeAttributes &na=NodeAttributes())
virtual void draw_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr, const RenderBuffer &rb, const NodeAttributes &na=NodeAttributes())
virtual void apply_material (Material *)
virtual void apply_fog (Fog *)
virtual void apply_light (PointLight *)
virtual void apply_light (DirectionalLight *)
virtual void apply_light (Spotlight *)
virtual void apply_light (AmbientLight *)
virtual void issue_transform (const TransformAttribute *attrib)
virtual void issue_color (const ColorAttribute *attrib)
virtual void issue_texture (const TextureAttribute *attrib)
virtual void issue_light (const LightAttribute *attrib)
void set_texture_directory (const string &directory)
 Sets the name of the directory into which texture maps are copied to be available to the RIB file.

string get_texture_directory () const
 Returns the name of the directory into which texture maps are copied to be available to the RIB file.

void set_texture_extension (const string &extension)
 Specifies the filename extension that texture map files are given when they are copied into the directory for RIB files.

string get_texture_extension () const
 Returns the filename extension that texture map files are given when they are copied into the directory for RIB files.

virtual TypeHandle get_type (void) const
virtual TypeHandle force_init_type ()
void release_all_textures ()
 Frees the resources for all textures associated with this GSG.

void release_all_geoms ()
 Frees the resources for all Geoms and GeomNodes associated with this GSG.

const FrameBufferPropertiesget_properties () const
 Returns the frame buffer properties requested for this GSG.

GraphicsPipeget_pipe () const
 Returns the graphics pipe on which this GSG was created.

const GraphicsThreadingModelget_threading_model () const
 Returns the threading model that was used to create this GSG.

void set_scene (SceneSetup *scene_setup)
 Sets the SceneSetup object that indicates the initial camera position, etc.

SceneSetupget_scene () const
 Returns the SceneSetup object.

virtual GeomNodeContextprepare_geom_node (GeomNode *node)
 Prepares the indicated GeomNode for retained-mode rendering.

virtual void draw_geom_node (GeomNode *node, const RenderState *state, GeomNodeContext *gnc)
 Draws a GeomNode previously indicated by a call to prepare_geom_node().

virtual void release_geom_node (GeomNodeContext *gnc)
 Frees the resources previously allocated via a call to prepare_geom_node(), including deleting the GeomNodeContext itself, if necessary.

virtual GeomContextprepare_geom (Geom *geom)
 Prepares the indicated Geom for retained-mode rendering.

virtual void release_geom (GeomContext *gc)
 Frees the resources previously allocated via a call to prepare_geom(), including deleting the GeomContext itself, if necessary.

virtual void set_state_and_transform (const RenderState *state, const TransformState *transform)
 Simultaneously resets the render state and the transform state.

virtual void set_color_clear_value (const Colorf &value)
 Sets the color that the next do_clear() command will set the color buffer to.

virtual void set_depth_clear_value (const float value)
 Sets the depth that the next do_clear() command will set the depth buffer to.

virtual void do_clear (const RenderBuffer &buffer)=0
void clear (ClearableRegion *clearable)
 Clears the framebuffer within the current DisplayRegion, according to the flags indicated by the given ClearableRegion object.

void clear (DisplayRegion *dr)
 Clears the framebuffer within the indicated DisplayRegion, according to the flags indicated by the DisplayRegion object (inheriting from ClearableRegion).

virtual bool prepare_lens ()
 Makes the current lens (whichever lens was most recently specified with push_lens()) active, so that it will transform future rendered geometry.

void enable_normals (bool val)
virtual bool begin_frame ()
 Called before each frame is rendered, to allow the GSG a chance to do any internal cleanup before beginning the frame.

virtual bool begin_scene ()
 Called between begin_frame() and end_frame() to mark the beginning of drawing commands for a "scene" (usually a particular DisplayRegion) within a frame.

virtual void end_scene ()
 Called between begin_frame() and end_frame() to mark the end of drawing commands for a "scene" (usually a particular DisplayRegion) within a frame.

virtual void end_frame ()
 Called after each frame is rendered, to allow the GSG a chance to do any internal cleanup after rendering the frame, and before the window flips.

virtual bool depth_offset_decals ()
 Returns true if this GSG can implement decals using a DepthOffsetAttrib, or false if that is unreliable and the three-step rendering process should be used instead.

virtual ConstPointerTo< RenderStatebegin_decal_base_first ()
 Called during draw to begin a three-step rendering phase to draw decals.

virtual ConstPointerTo< RenderStatebegin_decal_nested ()
 Called during draw to begin a three-step rendering phase to draw decals.

virtual ConstPointerTo< RenderStatebegin_decal_base_second ()
 Called during draw to begin a three-step rendering phase to draw decals.

virtual void finish_decal ()
 Called during draw to clean up after decals are finished.

void reset_if_new ()
 Calls reset() to initialize the GSG, but only if it hasn't been called yet.

void modify_state (const RenderState *state)
 Applies the attributes indicated in the state set to the current state, and issues the changes to the graphics hardware.

void set_state (const RenderState *state)
 Applies the attributes indicated in the state set to the current state, and issues the changes to the graphics hardware.

void set_transform (const TransformState *transform)
 Sets the world transform that will be applied to subsequent geometry.

RenderBuffer get_render_buffer (int buffer_type)
 Returns a RenderBuffer object suitable for operating on the requested set of buffers.

const DisplayRegionget_current_display_region (void) const
 Returns the current display region being rendered to, as set by the last call to push_display_region() (or restored by pop_display_region()).

const Lensget_current_lens () const
 Returns the current lens being rendered with, as set by the last call to push_lens() (or restored by pop_lens()).

DisplayRegionStack push_display_region (const DisplayRegion *dr)
 Saves the current display region information and sets up a new display region for rendering.

void pop_display_region (DisplayRegionStack &node)
 Restores the display region previously in effect, before the matching call to push_display_region().

FrameBufferStack push_frame_buffer (const RenderBuffer &buffer, const DisplayRegion *dr)
 Saves the contents of the frame buffer (within the indicated display region only) so that rendering may be performed (for instance, to render a partial in a multipass algorithm) and the frame buffer later restored via a matching call to pop_frame_buffer().

void pop_frame_buffer (FrameBufferStack &node)
 Restores the contents of the frame buffer as saved by a previous call to push_frame_buffer().

LensStack push_lens (const Lens *lens)
 Saves the current lens information and sets up a new lens for rendering.

void pop_lens (LensStack &stack)
 Restores the lens previously in effect, before the matching call to push_lens().

bool set_lens (const Lens *lens)
 Sets a new lens for rendering without bothering to push or pop.

void set_coordinate_system (CoordinateSystem cs)
 Changes the coordinate system in effect on this particular gsg.

CoordinateSystem get_coordinate_system () const
 Returns the coordinate system in effect on this particular gsg.

virtual CoordinateSystem get_internal_coordinate_system () const
 Should be overridden by derived classes to return the coordinate system used internally by the GSG, if any one particular coordinate system is used.

virtual void issue_transform (const TransformState *transform)
 Sends the indicated transform matrix to the graphics API to be applied to future vertices.

virtual void issue_color_scale (const ColorScaleAttrib *attrib)
virtual void issue_color (const ColorAttrib *attrib)
 This method is defined in the base class because it is likely that this functionality will be used for all (or at least most) kinds of GraphicsStateGuardians--it's not specific to any one rendering backend.

virtual void issue_light (const LightAttrib *attrib)
 The default implementation of issue_light() assumes we have a limited number of hardware lights available.

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)
 This is fundametically similar to issue_light(), with calls to slot_new_clip_plane(), apply_clip_plane(), and enable_clip_planes(), as appropriate.

virtual void bind_light (PointLight *light, int light_id)
 Called the first time a particular light has been bound to a given id within a frame, this should set up the associated hardware light with the light's properties.

virtual void bind_light (DirectionalLight *light, int light_id)
 Called the first time a particular light has been bound to a given id within a frame, this should set up the associated hardware light with the light's properties.

virtual void bind_light (Spotlight *light, int light_id)
 Called the first time a particular light has been bound to a given id within a frame, this should set up the associated hardware light with the light's properties.

void traverse_prepared_textures (bool(*pertex_callbackfn)(TextureContext *, void *), void *callback_arg)
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 apply_material (const Material *material)=0
virtual void issue_alpha_test (const AlphaTestAttrib *)
virtual void issue_tex_matrix (const TexMatrixAttrib *)
virtual void issue_texture (const TextureAttrib *)
virtual void issue_material (const MaterialAttrib *)
virtual void issue_render_mode (const RenderModeAttrib *)
virtual void issue_texture_apply (const TextureApplyAttrib *)
virtual void issue_depth_test (const DepthTestAttrib *)
virtual void issue_depth_write (const DepthWriteAttrib *)
virtual void issue_cull_face (const CullFaceAttrib *)
virtual void issue_fog (const FogAttrib *)
virtual void issue_depth_offset (const DepthOffsetAttrib *)
virtual void issue_tex_gen (const TexGenAttrib *)
virtual void issue_stencil (const StencilAttrib *)
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

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

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

typedef pmap< const Texture *,
Filename
TextureNames
typedef pmap< const Light *,
int > 
LightIDs
typedef pvector< bool > EnabledLights
enum  ColorTransform { CT_offset = 0x01, CT_scale = 0x02 }

Protected Member Functions

virtual PT (SavedFrameBuffer) save_frame_buffer(const RenderBuffer &buffer
virtual CPT (DisplayRegion) dr)
virtual void restore_frame_buffer (SavedFrameBuffer *frame_buffer)
 Restores the frame buffer that was previously saved.

void set_color (const RGBColorf &color)
 Issues the sequence to change the node color to that indicated.

void get_rib_stuff (Node *root, const AllAttributesWrapper &initial_state)
void define_texture (const Texture *tex)
 Called by the RibStuffTraverser (initiated above), this defines a single texture object in the RIB file if it has not already been defined.

void define_light (const Light *light)
 Called by the RibStuffTraverser (initiated above), this defines a single light object in the RIB file if it has not already been defined.

void write_light_color (const Colorf &color) const
 Called by define_light() to write out a single light's color and intensity values.

void write_light_from (const Node *light) const
 Called by define_light() to write out a single light's position.

void write_light_to (const Node *light) const
 Called by define_light() to write out a single light's direction.

ostream & new_line (int extra_indent=0) const
 Beins a new line of output at the current indenting level.

void reset_transform (const LMatrix4f &mat) const
 Outputs an RiTransform command with the given transformation matrix, which resets the current transformation to that specified.

void concat_transform (const LMatrix4f &mat) const
 Outputs an RiTransform command with the given transformation matrix, which composes the specified matrix with the current transformation.

void draw_simple_poly (const Geom *geom)
 Draws a GeomPolygon, GeomTri, or GeomQuad object.

void write_polygon (int num_verts)
 Writes out the RIB command to draw the polygon described by the global rib_* arrays.

Lightget_light (int light_id) const
 Returns the Light object that is bound to the indicated id, or NULL if no Light is bound.

virtual bool slot_new_light (int light_id)
 This will be called by the base class before a particular light id will be used for the first time.

virtual void enable_lighting (bool enable)
 Intended to be overridden by a derived class to enable or disable the use of lighting overall.

virtual void set_ambient_light (const Colorf &color)
 Intended to be overridden by a derived class to indicate the color of the ambient light that should be in effect.

virtual void enable_light (int light_id, bool enable)
 Intended to be overridden by a derived class to enable the indicated light id.

virtual void begin_bind_lights ()
 Called immediately before bind_light() is called, this is intended to provide the derived class a hook in which to set up some state (like transform) that might apply to several lights.

virtual void end_bind_lights ()
 Called after before bind_light() has been called one or more times (but before any geometry is issued or additional state is changed), this is intended to clean up any temporary changes to the state that may have been made by begin_bind_lights().

PlaneNodeget_clip_plane (int plane_id) const
 Returns the PlaneNode object that is bound to the indicated id, or NULL if no PlaneNode is bound.

virtual bool slot_new_clip_plane (int plane_id)
 This will be called by the base class before a particular clip plane id will be used for the first time.

virtual void enable_clip_planes (bool enable)
 Intended to be overridden by a derived class to enable or disable the use of clipping planes overall.

virtual void enable_clip_plane (int plane_id, bool enable)
 Intended to be overridden by a derived class to enable the indicated plane id.

virtual void begin_bind_clip_planes ()
 Called immediately before bind_clip_plane() is called, this is intended to provide the derived class a hook in which to set up some state (like transform) that might apply to several planes.

virtual void bind_clip_plane (PlaneNode *plane, int pane_id)
 Called the first time a particular clipping plane has been bound to a given id within a frame, this should set up the associated hardware (or API) clipping plane with the plane's properties.

virtual void end_bind_clip_planes ()
 Called after before bind_clip_plane() has been called one or more times (but before any geometry is issued or additional state is changed), this is intended to clean up any temporary changes to the state that may have been made by begin_bind_clip_planes().

virtual void set_blend_mode (ColorWriteAttrib::Mode color_write_mode, ColorBlendAttrib::Mode color_blend_mode, TransparencyAttrib::Mode transparency_mode)
 Called after any of these three blending states have changed; this function is responsible for setting the appropriate color blending mode based on the given properties.

virtual PointerTo< SavedFrameBuffersave_frame_buffer (const RenderBuffer &buffer, ConstPointerTo< DisplayRegion > dr)=0
bool mark_prepared_texture (TextureContext *tc)
 This is intended to be called from within prepare_texture().

bool unmark_prepared_texture (TextureContext *tc)
 This is intended to be called from within release_texture().

bool mark_prepared_geom (GeomContext *gc)
 This is intended to be called from within prepare_geom().

bool unmark_prepared_geom (GeomContext *gc)
 This is intended to be called from within release_geom().

bool mark_prepared_geom_node (GeomNodeContext *gnc)
 This is intended to be called from within prepare_geom_node().

bool unmark_prepared_geom_node (GeomNodeContext *gnc)
 This is intended to be called from within release_geom_node().

virtual void free_pointers ()
 Frees some memory that was explicitly allocated within the glgsg.

virtual void close_gsg ()
 This is called by the associated GraphicsWindow when close_window() is called.

void init_frame_pstats ()
void add_to_texture_record (TextureContext *)
void add_to_geom_record (GeomContext *)
void add_to_geom_node_record (GeomNodeContext *)
void record_state_change (TypeHandle)

Static Protected Member Functions

void get_color_and_intensity (const RGBColorf &input, RGBColorf &output, float &intensity)
 Given a three-component color value, extracts it into a normalized three-component color with each component in the range [0..1], and a separate intensity value.

ConstPointerTo< RenderStateget_unlit_state ()
ConstPointerTo< RenderStateget_unclipped_state ()
ConstPointerTo< RenderStateget_untextured_state ()

Protected Attributes

RGBColorf _current_color
string _texture_directory
string _texture_extension
ostream * _output
int _indent_level
TextureNames _texture_names
LightIDs _light_ids
EnabledLights _enabled_lights
PointerTo< SceneSetup_scene_setup
ConstPointerTo< RenderState_state
ConstPointerTo< TransformState_transform
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
ConstPointerTo< DisplayRegion_current_display_region
ConstPointerTo< Lens_current_lens
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

Static Private Attributes

TypeHandle _type_handle

Friends

class RibStuffTraverser

Detailed Description

A GraphicsStateGuardian specialized for creating RIB files, suitable for shipping off to a Renderman-friendly non-real-time renderer.

Definition at line 50 of file ribGraphicsStateGuardian.h.


Member Typedef Documentation

typedef pvector<bool> RIBGraphicsStateGuardian::EnabledLights [protected]
 

Definition at line 170 of file ribGraphicsStateGuardian.h.

typedef pmap<const Light *, int> RIBGraphicsStateGuardian::LightIDs [protected]
 

Definition at line 168 of file ribGraphicsStateGuardian.h.

typedef pmap<const Texture *, Filename> RIBGraphicsStateGuardian::TextureNames [protected]
 

Definition at line 166 of file ribGraphicsStateGuardian.h.


Member Enumeration Documentation

enum GraphicsStateGuardian::ColorTransform [protected, inherited]
 

Enumeration values:
CT_offset 
CT_scale 

Definition at line 268 of file graphicsStateGuardian.h.


Constructor & Destructor Documentation

RIBGraphicsStateGuardian::RIBGraphicsStateGuardian GraphicsWindow win  ) 
 

Definition at line 106 of file ribGraphicsStateGuardian.cxx.


Member Function Documentation

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

Definition at line 228 of file graphicsStateGuardian.h.

Referenced by GLGraphicsStateGuardian::prepare_geom_node().

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

Definition at line 227 of file graphicsStateGuardian.h.

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

Definition at line 226 of file graphicsStateGuardian.h.

Referenced by DXGraphicsStateGuardian8::draw_sphere().

virtual void RIBGraphicsStateGuardian::apply_fog Fog  )  [inline, virtual]
 

Definition at line 117 of file ribGraphicsStateGuardian.h.

virtual void RIBGraphicsStateGuardian::apply_light AmbientLight  )  [inline, virtual]
 

Definition at line 122 of file ribGraphicsStateGuardian.h.

References _current_color, _indent_level, _output, _texture_directory, _texture_extension, _texture_names, and RGBColorf.

virtual void RIBGraphicsStateGuardian::apply_light Spotlight  )  [inline, virtual]
 

Definition at line 121 of file ribGraphicsStateGuardian.h.

virtual void RIBGraphicsStateGuardian::apply_light DirectionalLight  )  [inline, virtual]
 

Definition at line 120 of file ribGraphicsStateGuardian.h.

virtual void RIBGraphicsStateGuardian::apply_light PointLight  )  [inline, virtual]
 

Definition at line 119 of file ribGraphicsStateGuardian.h.

virtual void GraphicsStateGuardianBase::apply_material const Material material  )  [pure virtual, inherited]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

virtual void RIBGraphicsStateGuardian::apply_material Material  )  [inline, virtual]
 

Definition at line 116 of file ribGraphicsStateGuardian.h.

void RIBGraphicsStateGuardian::apply_texture TextureContext tc  )  [virtual]
 

Applies the texture previously indicated via a call to prepare_texture() to the graphics state, so that geometry rendered in the future will be rendered with the given texture.

Reimplemented from GraphicsStateGuardian.

Definition at line 641 of file ribGraphicsStateGuardian.cxx.

void GraphicsStateGuardian::begin_bind_clip_planes  )  [protected, virtual, inherited]
 

Called immediately before bind_clip_plane() is called, this is intended to provide the derived class a hook in which to set up some state (like transform) that might apply to several planes.

The sequence is: begin_bind_clip_planes() will be called, then one or more bind_clip_plane() calls, then end_bind_clip_planes().

Reimplemented in GLGraphicsStateGuardian.

Definition at line 1540 of file graphicsStateGuardian.cxx.

References RenderState::make(), TextureAttrib::make_off(), and NULL.

void GraphicsStateGuardian::begin_bind_lights  )  [protected, virtual, inherited]
 

Called immediately before bind_light() is called, this is intended to provide the derived class a hook in which to set up some state (like transform) that might apply to several lights.

The sequence is: begin_bind_lights() will be called, then one or more bind_light() calls, then end_bind_lights().

Reimplemented in CRGraphicsStateGuardian, and GLGraphicsStateGuardian.

Definition at line 1427 of file graphicsStateGuardian.cxx.

ConstPointerTo< RenderState > GraphicsStateGuardian::begin_decal_base_first  )  [virtual, inherited]
 

Called during draw to begin a three-step rendering phase to draw decals.

The first step, begin_decal_base_first(), is called prior to drawing the base geometry. It should set up whatever internal state is appropriate, as well as returning a RenderState object that should be applied to the base geometry for rendering.

Implements GraphicsStateGuardianBase.

Definition at line 714 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::_has_scene_graph_color, GraphicsStateGuardian::_scene_graph_color_stale, GraphicsStateGuardian::_vertex_colors_enabled, and ColorAttrib::T_vertex.

ConstPointerTo< RenderState > GraphicsStateGuardian::begin_decal_base_second  )  [virtual, inherited]
 

Called during draw to begin a three-step rendering phase to draw decals.

The third step, begin_decal_base_second(), is called after drawing the base geometry and the nested decal geometry, and prior to drawing the base geometry one more time (if needed).

It should return a RenderState object appropriate for rendering the base geometry the second time, or NULL if it is not necessary to re-render the base geometry.

Implements GraphicsStateGuardianBase.

Definition at line 785 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::_light_info, and GraphicsStateGuardian::enable_light().

ConstPointerTo< RenderState > GraphicsStateGuardian::begin_decal_nested  )  [virtual, inherited]
 

Called during draw to begin a three-step rendering phase to draw decals.

The second step, begin_decal_nested(), is called after drawing the base geometry and prior to drawing any of the nested decal geometry that is to be applied to the base geometry.

Implements GraphicsStateGuardianBase.

Definition at line 744 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::_light_info, GraphicsStateGuardian::_lighting_enabled, GraphicsStateGuardian::_lighting_enabled_this_frame, Colorf, GraphicsStateGuardian::enable_lighting(), AmbientLight::get_class_type(), Light::get_color(), LightAttrib::get_light(), LightAttrib::get_num_lights(), LightAttrib::get_operation(), Light::get_type(), nassertv, NULL, and LightAttrib::O_remove.

bool GraphicsStateGuardian::begin_frame  )  [virtual, inherited]
 

Called before each frame is rendered, to allow the GSG a chance to do any internal cleanup before beginning the frame.

The return value is true if successful (in which case the frame will be drawn and end_frame() will be called later), or false if unsuccessful (in which case nothing will be drawn and end_frame() will not be called).

Reimplemented in DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 516 of file graphicsStateGuardian.cxx.

Referenced by GLGraphicsStateGuardian::prepare_lens().

bool GraphicsStateGuardian::begin_scene  )  [virtual, inherited]
 

Called between begin_frame() and end_frame() to mark the beginning of drawing commands for a "scene" (usually a particular DisplayRegion) within a frame.

All 3-D drawing commands, except the clear operation, must be enclosed within begin_scene() .. end_scene().

The return value is true if successful (in which case the scene will be drawn and end_scene() will be called later), or false if unsuccessful (in which case nothing will be drawn and end_scene() will not be called).

Reimplemented in DXGraphicsStateGuardian7, and DXGraphicsStateGuardian8.

Definition at line 595 of file graphicsStateGuardian.cxx.

References CPT, ColorWriteAttrib::M_off, ColorWriteAttrib::make(), RenderState::make(), and NULL.

Referenced by DXGraphicsStateGuardian8::issue_depth_offset().

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

Called the first time a particular clipping plane has been bound to a given id within a frame, this should set up the associated hardware (or API) clipping plane with the plane's properties.

Reimplemented in DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1558 of file graphicsStateGuardian.cxx.

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

Called the first time a particular light has been bound to a given id within a frame, this should set up the associated hardware light with the light's properties.

Reimplemented from GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1320 of file graphicsStateGuardian.cxx.

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

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

Called the first time a particular light has been bound to a given id within a frame, this should set up the associated hardware light with the light's properties.

Reimplemented from GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1302 of file graphicsStateGuardian.cxx.

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

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

Called the first time a particular light has been bound to a given id within a frame, this should set up the associated hardware light with the light's properties.

Reimplemented from GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1284 of file graphicsStateGuardian.cxx.

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

void GraphicsStateGuardian::clear DisplayRegion dr  )  [inline, inherited]
 

Clears the framebuffer within the indicated DisplayRegion, according to the flags indicated by the DisplayRegion object (inheriting from ClearableRegion).

Note that by default, a DisplayRegion does not have any clear flags set, in which case this function will do nothing.

Definition at line 146 of file graphicsStateGuardian.I.

References GraphicsStateGuardian::_state.

void GraphicsStateGuardian::clear ClearableRegion clearable  )  [inherited]
 

Clears the framebuffer within the current DisplayRegion, according to the flags indicated by the given ClearableRegion object.

Definition at line 445 of file graphicsStateGuardian.cxx.

Referenced by GraphicsStateGuardian::set_scene(), and GraphicsEngine::sync_frame().

void RIBGraphicsStateGuardian::clear const RenderBuffer buffer,
const DisplayRegion region
[virtual]
 

Clears all of the indicated buffers to their assigned colors.

Definition at line 207 of file ribGraphicsStateGuardian.cxx.

References _indent_level.

void RIBGraphicsStateGuardian::clear const RenderBuffer buffer  )  [virtual]
 

Clears all of the indicated buffers to their assigned colors.

Definition at line 193 of file ribGraphicsStateGuardian.cxx.

void GraphicsStateGuardian::close_gsg  )  [protected, virtual, inherited]
 

This is called by the associated GraphicsWindow when close_window() is called.

It should null out the _win pointer and possibly free any open resources associated with the GSG.

Definition at line 1791 of file graphicsStateGuardian.cxx.

Referenced by GraphicsPipe::get_hw_channel().

float RIBGraphicsStateGuardian::compute_distance_to const LPoint3f &  point  )  const [virtual]
 

This function may only be called during a render traversal; it will compute the distance to the indicated point, assumed to be in modelview coordinates, from the camera plane.

Implements GraphicsStateGuardianBase.

Definition at line 495 of file ribGraphicsStateGuardian.cxx.

References draw_simple_poly(), and GeomTristrip::explode().

void RIBGraphicsStateGuardian::concat_transform const LMatrix4f &  mat  )  const [protected]
 

Outputs an RiTransform command with the given transformation matrix, which composes the specified matrix with the current transformation.

Definition at line 1247 of file ribGraphicsStateGuardian.cxx.

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

Implements GraphicsStateGuardianBase.

Definition at line 729 of file ribGraphicsStateGuardian.cxx.

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

Implements GraphicsStateGuardianBase.

Definition at line 718 of file ribGraphicsStateGuardian.cxx.

References _enabled_lights, and new_line().

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

Implements GraphicsStateGuardianBase.

Definition at line 685 of file ribGraphicsStateGuardian.cxx.

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

Implements GraphicsStateGuardianBase.

Definition at line 674 of file ribGraphicsStateGuardian.cxx.

virtual RIBGraphicsStateGuardian::CPT DisplayRegion   )  [protected]
 

void RIBGraphicsStateGuardian::define_light const Light light  )  [protected]
 

Called by the RibStuffTraverser (initiated above), this defines a single light object in the RIB file if it has not already been defined.

Definition at line 1088 of file ribGraphicsStateGuardian.cxx.

References G_OVERALL.

void RIBGraphicsStateGuardian::define_texture const Texture tex  )  [protected]
 

Called by the RibStuffTraverser (initiated above), this defines a single texture object in the RIB file if it has not already been defined.

Definition at line 1044 of file ribGraphicsStateGuardian.cxx.

bool GraphicsStateGuardian::depth_offset_decals  )  [virtual, inherited]
 

Returns true if this GSG can implement decals using a DepthOffsetAttrib, or false if that is unreliable and the three-step rendering process should be used instead.

Implements GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 689 of file graphicsStateGuardian.cxx.

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

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

Implemented in DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

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

Draws a GeomNode previously indicated by a call to prepare_geom_node().

Implements GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 324 of file graphicsStateGuardian.cxx.

virtual void GraphicsStateGuardianBase::draw_line GeomLine geom,
GeomContext gc
[pure virtual, inherited]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Referenced by GeomLine::make_copy().

void RIBGraphicsStateGuardian::draw_line const GeomLine geom  )  [virtual]
 

Definition at line 522 of file ribGraphicsStateGuardian.cxx.

virtual void GraphicsStateGuardianBase::draw_linestrip GeomLinestrip geom,
GeomContext gc
[pure virtual, inherited]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Referenced by GeomLinestrip::make_copy().

virtual void RIBGraphicsStateGuardian::draw_linestrip const GeomLinestrip  )  [inline, virtual]
 

Definition at line 83 of file ribGraphicsStateGuardian.h.

virtual void RIBGraphicsStateGuardian::draw_pixel_buffer PixelBuffer pb,
const DisplayRegion dr,
const RenderBuffer rb,
const NodeAttributes &  na = NodeAttributes()
[virtual]
 

virtual void RIBGraphicsStateGuardian::draw_pixel_buffer PixelBuffer pb,
const DisplayRegion dr,
const NodeAttributes &  na = NodeAttributes()
[virtual]
 

virtual void GraphicsStateGuardianBase::draw_point GeomPoint geom,
GeomContext gc
[pure virtual, inherited]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

void RIBGraphicsStateGuardian::draw_point const GeomPoint geom  )  [virtual]
 

Definition at line 511 of file ribGraphicsStateGuardian.cxx.

References draw_simple_poly(), and GeomTrifan::explode().

virtual void GraphicsStateGuardianBase::draw_polygon GeomPolygon geom,
GeomContext gc
[pure virtual, inherited]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

void RIBGraphicsStateGuardian::draw_polygon const GeomPolygon geom  )  [virtual]
 

Definition at line 544 of file ribGraphicsStateGuardian.cxx.

virtual void GraphicsStateGuardianBase::draw_quad GeomQuad geom,
GeomContext gc
[pure virtual, inherited]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

void RIBGraphicsStateGuardian::draw_quad const GeomQuad geom  )  [virtual]
 

Definition at line 568 of file ribGraphicsStateGuardian.cxx.

References tex.

void RIBGraphicsStateGuardian::draw_simple_poly const Geom geom  )  [protected]
 

Draws a GeomPolygon, GeomTri, or GeomQuad object.

This consists of one or more unconnected polygons.

Definition at line 1270 of file ribGraphicsStateGuardian.cxx.

Referenced by compute_distance_to(), draw_point(), and wants_colors().

virtual void GraphicsStateGuardianBase::draw_sphere GeomSphere geom,
GeomContext gc
[pure virtual, inherited]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

void RIBGraphicsStateGuardian::draw_sphere const GeomSphere geom  )  [virtual]
 

Definition at line 608 of file ribGraphicsStateGuardian.cxx.

virtual void GraphicsStateGuardianBase::draw_sprite GeomSprite geom,
GeomContext gc
[pure virtual, inherited]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Referenced by GeomSprite::make_copy().

void RIBGraphicsStateGuardian::draw_sprite const GeomSprite geom  )  [virtual]
 

Definition at line 533 of file ribGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::mark_prepared_texture(), and tex.

void RIBGraphicsStateGuardian::draw_texture TextureContext tc,
const DisplayRegion dr,
const RenderBuffer rb
[virtual]
 

Definition at line 707 of file ribGraphicsStateGuardian.cxx.

References nassertv.

void RIBGraphicsStateGuardian::draw_texture TextureContext tc,
const DisplayRegion dr
[virtual]
 

Definition at line 696 of file ribGraphicsStateGuardian.cxx.

virtual void GraphicsStateGuardianBase::draw_tri GeomTri geom,
GeomContext gc
[pure virtual, inherited]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

void RIBGraphicsStateGuardian::draw_tri const GeomTri geom  )  [virtual]
 

Definition at line 556 of file ribGraphicsStateGuardian.cxx.

virtual void GraphicsStateGuardianBase::draw_trifan GeomTrifan geom,
GeomContext gc
[pure virtual, inherited]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

void RIBGraphicsStateGuardian::draw_trifan const GeomTrifan geom  )  [virtual]
 

Definition at line 594 of file ribGraphicsStateGuardian.cxx.

virtual void GraphicsStateGuardianBase::draw_tristrip GeomTristrip geom,
GeomContext gc
[pure virtual, inherited]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

void RIBGraphicsStateGuardian::draw_tristrip const GeomTristrip geom  )  [virtual]
 

Definition at line 580 of file ribGraphicsStateGuardian.cxx.

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

Intended to be overridden by a derived class to enable the indicated plane id.

A specific PlaneNode will already have been bound to this id via bind_clip_plane().

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1514 of file graphicsStateGuardian.cxx.

Referenced by GraphicsStateGuardian::issue_color(), and GraphicsStateGuardian::set_depth_clear_value().

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

Intended to be overridden by a derived class to enable or disable the use of clipping planes overall.

This is called by issue_clip_plane() according to whether any planes are in use or not.

Definition at line 1496 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::_transform_state_pcollector, and PStatCollector::add_level().

Referenced by GraphicsStateGuardian::issue_color().

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

Intended to be overridden by a derived class to enable the indicated light id.

A specific Light will already have been bound to this id via bind_light().

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1401 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::_active_geom_node_pcollector, GraphicsStateGuardian::_active_geom_pcollector, GraphicsStateGuardian::_frustum_cull_transforms_pcollector, GraphicsStateGuardian::_frustum_cull_volumes_pcollector, GraphicsStateGuardian::_geom_nodes_pcollector, GraphicsStateGuardian::_nodes_pcollector, GraphicsStateGuardian::_render_states_pcollector, GraphicsStateGuardian::_render_states_unused_pcollector, GraphicsStateGuardian::_state_changes_pcollector, GraphicsStateGuardian::_texture_state_pcollector, GraphicsStateGuardian::_transform_state_pcollector, GraphicsStateGuardian::_transform_states_pcollector, GraphicsStateGuardian::_transform_states_unused_pcollector, GraphicsStateGuardian::_vertices_other_pcollector, GraphicsStateGuardian::_vertices_tri_pcollector, GraphicsStateGuardian::_vertices_trifan_pcollector, and GraphicsStateGuardian::_vertices_tristrip_pcollector.

Referenced by GraphicsStateGuardian::begin_decal_base_second(), and GraphicsStateGuardian::set_color_clear_value().

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

Intended to be overridden by a derived class to enable or disable the use of lighting overall.

This is called by issue_light() according to whether any lights are in use or not.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1367 of file graphicsStateGuardian.cxx.

Referenced by GraphicsStateGuardian::begin_decal_nested().

void GraphicsStateGuardian::enable_normals bool  val  )  [inline, inherited]
 

Definition at line 119 of file graphicsStateGuardian.h.

References CoordinateSystem, and INLINE.

void GraphicsStateGuardian::end_bind_clip_planes  )  [protected, virtual, inherited]
 

Called after before bind_clip_plane() has been called one or more times (but before any geometry is issued or additional state is changed), this is intended to clean up any temporary changes to the state that may have been made by begin_bind_clip_planes().

Reimplemented in GLGraphicsStateGuardian.

Definition at line 1578 of file graphicsStateGuardian.cxx.

void GraphicsStateGuardian::end_bind_lights  )  [protected, virtual, inherited]
 

Called after before bind_light() has been called one or more times (but before any geometry is issued or additional state is changed), this is intended to clean up any temporary changes to the state that may have been made by begin_bind_lights().

Reimplemented in CRGraphicsStateGuardian, and GLGraphicsStateGuardian.

Definition at line 1447 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::_active_geom_pcollector, PStatCollector::add_level(), PStatClient::is_connected(), and NULL.

Referenced by GraphicsStateGuardian::issue_color_scale().

void GraphicsStateGuardian::end_frame  )  [virtual, inherited]
 

Called after each frame is rendered, to allow the GSG a chance to do any internal cleanup after rendering the frame, and before the window flips.

Reimplemented in DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 632 of file graphicsStateGuardian.cxx.

void GraphicsStateGuardian::end_scene  )  [virtual, inherited]
 

Called between begin_frame() and end_frame() to mark the end of drawing commands for a "scene" (usually a particular DisplayRegion) within a frame.

All 3-D drawing commands, except the clear operation, must be enclosed within begin_scene() .. end_scene().

Reimplemented in DXGraphicsStateGuardian7, and DXGraphicsStateGuardian8.

Definition at line 616 of file graphicsStateGuardian.cxx.

void GraphicsStateGuardian::finish_decal  )  [virtual, inherited]
 

Called during draw to clean up after decals are finished.

Implements GraphicsStateGuardianBase.

Definition at line 813 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::_light_info.

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

Reimplemented from GraphicsStateGuardian.

Definition at line 179 of file ribGraphicsStateGuardian.h.

void GraphicsStateGuardian::free_pointers  )  [protected, virtual, inherited]
 

Frees some memory that was explicitly allocated within the glgsg.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, and GLGraphicsStateGuardian.

Definition at line 1773 of file graphicsStateGuardian.cxx.

TypeHandle RIBGraphicsStateGuardian::get_class_type void   )  [static]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 1437 of file ribGraphicsStateGuardian.cxx.

PlaneNode * GraphicsStateGuardian::get_clip_plane int  plane_id  )  const [inline, protected, inherited]
 

Returns the PlaneNode object that is bound to the indicated id, or NULL if no PlaneNode is bound.

Definition at line 552 of file graphicsStateGuardian.I.

void RIBGraphicsStateGuardian::get_color_and_intensity const RGBColorf input,
RGBColorf output,
float &  intensity
[static, protected]
 

Given a three-component color value, extracts it into a normalized three-component color with each component in the range [0..1], and a separate intensity value.

Definition at line 1407 of file ribGraphicsStateGuardian.cxx.

CoordinateSystem GraphicsStateGuardian::get_coordinate_system  )  const [inline, inherited]
 

Returns the coordinate system in effect on this particular gsg.

Normally, this will be the default coordinate system, but it might be set differently at runtime.

Definition at line 521 of file graphicsStateGuardian.I.

const DisplayRegion * GraphicsStateGuardian::get_current_display_region void   )  const [inline, inherited]
 

Returns the current display region being rendered to, as set by the last call to push_display_region() (or restored by pop_display_region()).

This display region will be made active (if it is not already) by a call to prepare_display_region().

Definition at line 269 of file graphicsStateGuardian.I.

References FrameBufferStack::_frame_buffer, GraphicsStateGuardian::_frame_buffer_stack_level, FrameBufferStack::_stack_level, and GraphicsStateGuardian::save_frame_buffer().

Referenced by PlanarReflector::init().

const Lens * GraphicsStateGuardian::get_current_lens  )  const [inline, inherited]
 

Returns the current lens being rendered with, as set by the last call to push_lens() (or restored by pop_lens()).

This lens will be made active (if it is not already) by a call to prepare_lens().

Definition at line 288 of file graphicsStateGuardian.I.

CoordinateSystem GraphicsStateGuardian::get_internal_coordinate_system  )  const [virtual, inherited]
 

Should be overridden by derived classes to return the coordinate system used internally by the GSG, if any one particular coordinate system is used.

The default, CS_default, indicates that the GSG can use any coordinate system.

If this returns other than CS_default, the GraphicsEngine will automatically convert all transforms into the indicated coordinate system.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 842 of file graphicsStateGuardian.cxx.

Light * GraphicsStateGuardian::get_light int  light_id  )  const [inline, protected, inherited]
 

Returns the Light object that is bound to the indicated id, or NULL if no Light is bound.

Definition at line 536 of file graphicsStateGuardian.I.

GraphicsPipe * GraphicsStateGuardian::get_pipe  )  const [inline, inherited]
 

Returns the graphics pipe on which this GSG was created.

Definition at line 78 of file graphicsStateGuardian.I.

References GraphicsStateGuardian::_scene_setup, and INLINE.

Referenced by GraphicsEngine::terminate_threads().

const FrameBufferProperties & GraphicsStateGuardian::get_properties  )  const [inline, inherited]
 

Returns the frame buffer properties requested for this GSG.

All windows created for this GSG must be created with the same properties.

Definition at line 63 of file graphicsStateGuardian.I.

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().

RenderBuffer GraphicsStateGuardian::get_render_buffer int  buffer_type  )  [inherited]
 

Returns a RenderBuffer object suitable for operating on the requested set of buffers.

buffer_type is the union of all the desired RenderBuffer::Type values.

Definition at line 170 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::_prepared_textures.

Referenced by CRGraphicsStateGuardian::release_geom_node().

void RIBGraphicsStateGuardian::get_rib_stuff Node *  root,
const AllAttributesWrapper &  initial_state
[protected]
 

SceneSetup * GraphicsStateGuardian::get_scene  )  const [inline, inherited]
 

Returns the SceneSetup object.

Definition at line 123 of file graphicsStateGuardian.I.

References INLINE, and GraphicsStateGuardian::reset().

string RIBGraphicsStateGuardian::get_texture_directory  )  const
 

Returns the name of the directory into which texture maps are copied to be available to the RIB file.

Definition at line 913 of file ribGraphicsStateGuardian.cxx.

string RIBGraphicsStateGuardian::get_texture_extension  )  const
 

Returns the filename extension that texture map files are given when they are copied into the directory for RIB files.

Definition at line 951 of file ribGraphicsStateGuardian.cxx.

const GraphicsThreadingModel & GraphicsStateGuardian::get_threading_model  )  const [inline, inherited]
 

Returns the threading model that was used to create this GSG.

Definition at line 93 of file graphicsStateGuardian.I.

References GraphicsStateGuardian::_scene_setup, and INLINE.

TypeHandle RIBGraphicsStateGuardian::get_type void   )  const [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 1433 of file ribGraphicsStateGuardian.cxx.

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.

ConstPointerTo< RenderState > GraphicsStateGuardian::get_unclipped_state  )  [static, protected, inherited]
 

Definition at line 1969 of file graphicsStateGuardian.cxx.

Referenced by GraphicsStateGuardian::set_depth_clear_value().

ConstPointerTo< RenderState > GraphicsStateGuardian::get_unlit_state  )  [static, protected, inherited]
 

Definition at line 1952 of file graphicsStateGuardian.cxx.

ConstPointerTo< RenderState > GraphicsStateGuardian::get_untextured_state  )  [static, protected, inherited]
 

Reimplemented in GLGraphicsStateGuardian.

Definition at line 1986 of file graphicsStateGuardian.cxx.

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

Definition at line 225 of file graphicsStateGuardian.h.

void RIBGraphicsStateGuardian::init_type void   )  [static]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 1441 of file ribGraphicsStateGuardian.cxx.

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, inherited]
 

Reimplemented in DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 186 of file graphicsStateGuardianBase.h.

Referenced by AlphaTestAttrib::make().

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

This is fundametically similar to issue_light(), with calls to slot_new_clip_plane(), apply_clip_plane(), and enable_clip_planes(), as appropriate.

Reimplemented from GraphicsStateGuardianBase.

Definition at line 1158 of file graphicsStateGuardian.cxx.

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

This method is defined in the base class because it is likely that this functionality will be used for all (or at least most) kinds of GraphicsStateGuardians--it's not specific to any one rendering backend.

The ColorAttribute just changes the interpretation of the color on the vertices, and fiddles with _vertex_colors_enabled, etc.

Reimplemented from GraphicsStateGuardianBase.

Definition at line 905 of file graphicsStateGuardian.cxx.

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

Referenced by GLGraphicsStateGuardian::draw_point(), GLGraphicsStateGuardian::draw_quad(), and CRGraphicsStateGuardian::prepare_lens().

virtual void RIBGraphicsStateGuardian::issue_color const ColorAttribute *  attrib  )  [virtual]
 

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

Reimplemented from GraphicsStateGuardianBase.

Definition at line 1140 of file graphicsStateGuardian.cxx.

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

Reimplemented from GraphicsStateGuardianBase.

Definition at line 868 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::end_bind_lights().

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

Reimplemented from GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1114 of file graphicsStateGuardian.cxx.

Referenced by GLGraphicsStateGuardian::apply_fog().

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

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, inherited]
 

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, inherited]
 

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, inherited]
 

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, inherited]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 200 of file graphicsStateGuardianBase.h.

Referenced by FogAttrib::make_off().

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

The default implementation of issue_light() assumes we have a limited number of hardware lights available.

This function assigns each light to a different hardware light id, trying to keep each light associated with the same id where possible, but reusing id's when necessary. When it is no longer possible to reuse existing id's (e.g. all id's are in use), slot_new_light() is called to prepare the next sequential light id.

It will call apply_light() each time a light is assigned to a particular id for the first time in a given frame, and it will subsequently call enable_light() to enable or disable each light as the frame is rendered, as well as enable_lighting() to enable or disable overall lighting.

If this model of hardware lights with id's does not apply to a particular graphics engine, it should override this function to do something more appropriate instead.

Reimplemented from GraphicsStateGuardianBase.

Definition at line 983 of file graphicsStateGuardian.cxx.

virtual void RIBGraphicsStateGuardian::issue_light const LightAttribute *  attrib  )  [virtual]
 

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

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, inherited]
 

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, inherited]
 

Definition at line 204 of file graphicsStateGuardianBase.h.

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

Definition at line 203 of file graphicsStateGuardianBase.h.

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

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, inherited]
 

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 190 of file graphicsStateGuardianBase.h.

Referenced by TextureAttrib::make_off().

virtual void RIBGraphicsStateGuardian::issue_texture const TextureAttribute *  attrib  )  [virtual]
 

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

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 194 of file graphicsStateGuardianBase.h.

Referenced by TextureApplyAttrib::make().

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

Sends the indicated transform matrix to the graphics API to be applied to future vertices.

Reimplemented from GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 857 of file graphicsStateGuardian.cxx.

virtual void RIBGraphicsStateGuardian::issue_transform const TransformAttribute *  attrib  )  [virtual]
 

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

Reimplemented from GraphicsStateGuardianBase.

Definition at line 1127 of file graphicsStateGuardian.cxx.

GraphicsStateGuardian * RIBGraphicsStateGuardian::make_RIBGraphicsStateGuardian const FactoryParams params  )  [static]
 

Definition at line 1421 of file ribGraphicsStateGuardian.cxx.

bool GraphicsStateGuardian::mark_prepared_geom GeomContext gc  )  [protected, inherited]
 

This is intended to be called from within prepare_geom().

It adds the indicated GeomContext pointer to the _prepared_geoms set, and returns true if it was successfully added (i.e. it was not already in the set).

Definition at line 1671 of file graphicsStateGuardian.cxx.

bool GraphicsStateGuardian::mark_prepared_geom_node GeomNodeContext gnc  )  [protected, inherited]
 

This is intended to be called from within prepare_geom_node().

It adds the indicated GeomNodeContext pointer to the _prepared_geom_nodes set, and returns true if it was successfully added (i.e. it was not already in the set).

Definition at line 1725 of file graphicsStateGuardian.cxx.

bool GraphicsStateGuardian::mark_prepared_texture TextureContext tc  )  [protected, inherited]
 

This is intended to be called from within prepare_texture().

It adds the indicated TextureContext pointer to the _prepared_textures set, and returns true if it was successfully added (i.e. it was not already in the set).

Definition at line 1617 of file graphicsStateGuardian.cxx.

Referenced by draw_sprite().

void GraphicsStateGuardian::modify_state const RenderState state  )  [inline, inherited]
 

Applies the attributes indicated in the state set to the current state, and issues the changes to the graphics hardware.

Any transitions not mentioned are left unchanged.

Definition at line 187 of file graphicsStateGuardian.I.

Referenced by GLGraphicsStateGuardian::copy_texture(), and GraphicsStateGuardian::set_depth_clear_value().

ostream & RIBGraphicsStateGuardian::new_line int  extra_indent = 0  )  const [protected]
 

Beins a new line of output at the current indenting level.

(Does not actually issue the newline character, however).

Definition at line 1206 of file ribGraphicsStateGuardian.cxx.

Referenced by copy_pixel_buffer().

void GraphicsStateGuardian::pop_display_region DisplayRegionStack node  )  [inline, inherited]
 

Restores the display region previously in effect, before the matching call to push_display_region().

The newly-restored display region will not actually be made active for rendering until the next call to prepare_display_region(). This is a state-changing optimization.

Definition at line 347 of file graphicsStateGuardian.I.

References GraphicsStateGuardian::_current_lens, and GraphicsStateGuardian::prepare_lens().

Referenced by GraphicsStateGuardian::set_scene().

void GraphicsStateGuardian::pop_frame_buffer FrameBufferStack node  )  [inline, inherited]
 

Restores the contents of the frame buffer as saved by a previous call to push_frame_buffer().

Definition at line 392 of file graphicsStateGuardian.I.

References GraphicsStateGuardian::_clip_plane_info, INLINE, nassertr, and NULL.

void GraphicsStateGuardian::pop_lens LensStack stack  )  [inline, inherited]
 

Restores the lens previously in effect, before the matching call to push_lens().

The newly-restored lens will not actually be made active for rendering until the next call to prepare_lens(). This is a state-changing optimization.

Definition at line 453 of file graphicsStateGuardian.I.

void RIBGraphicsStateGuardian::prepare_display_region  )  [virtual]
 

Prepare a display region for rendering (set up scissor region and viewport).

Implements GraphicsStateGuardian.

Definition at line 221 of file ribGraphicsStateGuardian.cxx.

References initial_state, and NULL.

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

Prepares the indicated Geom for retained-mode rendering.

The value returned by this function will be passed back into future calls to draw_tristrip(), etc., along with the Geom pointer.

Implements GraphicsStateGuardianBase.

Definition at line 365 of file graphicsStateGuardian.cxx.

References RenderBuffer::T_depth.

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

Prepares the indicated GeomNode for retained-mode rendering.

If this function returns non-NULL, the value returned will be passed back to a future call to draw_geom_node(), which is expected to draw the contents of the node.

Implements GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 309 of file graphicsStateGuardian.cxx.

bool GraphicsStateGuardian::prepare_lens  )  [virtual, inherited]
 

Makes the current lens (whichever lens was most recently specified with push_lens()) active, so that it will transform future rendered geometry.

Normally this is only called from the draw process, and usually it is called immediately after a call to push_lens().

The return value is true if the lens is acceptable, false if it is not.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 487 of file graphicsStateGuardian.cxx.

Referenced by GraphicsStateGuardian::pop_display_region().

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

Prepares the indicated texture for retained-mode rendering.

In the future, this texture may be applied simply by calling apply_texture() with the value returned by this function.

Reimplemented from GraphicsStateGuardian.

Definition at line 620 of file ribGraphicsStateGuardian.cxx.

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

DisplayRegionStack GraphicsStateGuardian::push_display_region const DisplayRegion dr  )  [inline, inherited]
 

Saves the current display region information and sets up a new display region for rendering.

The return value from this function must eventually be passed to a matching pop_display_region() call.

The new display region will not actually be made active for rendering until the next call to prepare_display_region(). This is a state-changing optimization.

Definition at line 317 of file graphicsStateGuardian.I.

References GraphicsStateGuardian::_current_lens, GraphicsStateGuardian::_lens_stack_level, LensStack::_stack_level, INLINE, and nassertv.

Referenced by GLGraphicsStateGuardian::bind_texture(), and GraphicsStateGuardian::set_scene().

FrameBufferStack GraphicsStateGuardian::push_frame_buffer const RenderBuffer buffer,
const DisplayRegion dr
[inline, inherited]
 

Saves the contents of the frame buffer (within the indicated display region only) so that rendering may be performed (for instance, to render a partial in a multipass algorithm) and the frame buffer later restored via a matching call to pop_frame_buffer().

Definition at line 372 of file graphicsStateGuardian.I.

References GraphicsStateGuardian::_coordinate_system, CoordinateSystem, and INLINE.

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

LensStack GraphicsStateGuardian::push_lens const Lens lens  )  [inline, inherited]
 

Saves the current lens information and sets up a new lens for rendering.

The return value from this function must eventually be passed to a matching pop_lens() call.

The new lens will not actually be made active for rendering until the next call to prepare_lens(). This is a state-changing optimization.

Definition at line 423 of file graphicsStateGuardian.I.

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

Definition at line 229 of file graphicsStateGuardian.h.

References Colorf.

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().

void GraphicsStateGuardian::release_all_geoms  )  [inherited]
 

Frees the resources for all Geoms and GeomNodes associated with this GSG.

Warning! This may make the Geoms unrenderable, if the Panda-level information has been deleted.

Definition at line 218 of file graphicsStateGuardian.cxx.

References NULL.

void GraphicsStateGuardian::release_all_textures  )  [inherited]
 

Frees the resources for all textures associated with this GSG.

Definition at line 185 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::_prepared_geom_nodes, GraphicsStateGuardian::_prepared_geoms, nassertv, GraphicsStateGuardian::release_geom(), and GraphicsStateGuardian::release_geom_node().

void GraphicsStateGuardian::release_geom GeomContext gc  )  [virtual, inherited]
 

Frees the resources previously allocated via a call to prepare_geom(), including deleting the GeomContext itself, if necessary.

Implements GraphicsStateGuardianBase.

Definition at line 382 of file graphicsStateGuardian.cxx.

Referenced by GraphicsStateGuardian::release_all_textures().

void GraphicsStateGuardian::release_geom_node GeomNodeContext gnc  )  [virtual, inherited]
 

Frees the resources previously allocated via a call to prepare_geom_node(), including deleting the GeomNodeContext itself, if necessary.

Implements GraphicsStateGuardianBase.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 347 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::_depth_clear_value.

Referenced by GraphicsStateGuardian::release_all_textures().

void RIBGraphicsStateGuardian::release_texture TextureContext tc  )  [virtual]
 

Frees the resources previously allocated via a call to prepare_texture(), including deleting the TextureContext itself, if necessary.

Reimplemented from GraphicsStateGuardian.

Definition at line 652 of file ribGraphicsStateGuardian.cxx.

References reset_transform().

virtual void RIBGraphicsStateGuardian::render_frame const AllAttributesWrapper &  initial_state  )  [virtual]
 

virtual void RIBGraphicsStateGuardian::render_scene Node *  root,
ProjectionNode *  projnode,
const AllAttributesWrapper &  initial_state
[virtual]
 

virtual void RIBGraphicsStateGuardian::render_subgraph RenderTraverser *  traverser,
Node *  subgraph,
const AllAttributesWrapper &  initial_state,
const AllTransitionsWrapper &  net_trans
[virtual]
 

virtual void RIBGraphicsStateGuardian::render_subgraph RenderTraverser *  traverser,
Node *  subgraph,
ProjectionNode *  projnode,
const AllAttributesWrapper &  initial_state,
const AllTransitionsWrapper &  net_trans
[virtual]
 

void RIBGraphicsStateGuardian::reset  )  [virtual]
 

Resets all internal state and prepares a new RIB file.

Reimplemented from GraphicsStateGuardian.

Definition at line 128 of file ribGraphicsStateGuardian.cxx.

References _texture_names.

void RIBGraphicsStateGuardian::reset_file ostream &  out  ) 
 

Resets all internal state and prepares a new RIB file to the indicated output stream.

Definition at line 155 of file ribGraphicsStateGuardian.cxx.

References _current_color, _enabled_lights, _light_ids, and GraphicsStateGuardian::_state.

void RIBGraphicsStateGuardian::reset_frame  ) 
 

Resets whatever state is appropriate at the end of a frame.

Definition at line 171 of file ribGraphicsStateGuardian.cxx.

void GraphicsStateGuardian::reset_if_new  )  [inline, inherited]
 

Calls reset() to initialize the GSG, but only if it hasn't been called yet.

Definition at line 164 of file graphicsStateGuardian.I.

References RenderState::write().

Referenced by glxGraphicsWindow::~glxGraphicsWindow(), and wglGraphicsWindow::~wglGraphicsWindow().

void RIBGraphicsStateGuardian::reset_transform const LMatrix4f &  mat  )  const [protected]
 

Outputs an RiTransform command with the given transformation matrix, which resets the current transformation to that specified.

Definition at line 1223 of file ribGraphicsStateGuardian.cxx.

References NULL.

Referenced by release_texture().

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

Restores the frame buffer that was previously saved.

Implements GraphicsStateGuardian.

Definition at line 989 of file ribGraphicsStateGuardian.cxx.

virtual PointerTo< SavedFrameBuffer > GraphicsStateGuardian::save_frame_buffer const RenderBuffer buffer,
ConstPointerTo< DisplayRegion dr
[protected, pure virtual, inherited]
 

Implemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Referenced by GraphicsStateGuardian::get_current_display_region().

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

Intended to be overridden by a derived class to indicate the color of the ambient light that should be in effect.

This is called by issue_light() after all other lights have been enabled or disabled.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1385 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::_active_texusage_pcollector, PStatCollector::clear_level(), and PStatClient::is_connected().

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

Called after any of these three blending states have changed; this function is responsible for setting the appropriate color blending mode based on the given properties.

Reimplemented in CRGraphicsStateGuardian, DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1596 of file graphicsStateGuardian.cxx.

void RIBGraphicsStateGuardian::set_color const RGBColorf color  )  [protected]
 

Issues the sequence to change the node color to that indicated.

Definition at line 1003 of file ribGraphicsStateGuardian.cxx.

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

Sets the color that the next do_clear() command will set the color buffer to.

Reimplemented in DXGraphicsStateGuardian7, and DXGraphicsStateGuardian8.

Definition at line 413 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::_light_info, and GraphicsStateGuardian::enable_light().

void GraphicsStateGuardian::set_coordinate_system CoordinateSystem  cs  )  [inline, inherited]
 

Changes the coordinate system in effect on this particular gsg.

Normally, this will be the default coordinate system, but it might be set differently at runtime.

Definition at line 502 of file graphicsStateGuardian.I.

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

Sets the depth that the next do_clear() command will set the depth buffer to.

Definition at line 428 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::_clip_plane_info, GraphicsStateGuardian::_clip_planes_enabled_this_frame, GraphicsStateGuardian::enable_clip_plane(), GraphicsStateGuardian::get_unclipped_state(), GraphicsStateGuardian::modify_state(), and NULL.

bool GraphicsStateGuardian::set_lens const Lens lens  )  [inline, inherited]
 

Sets a new lens for rendering without bothering to push or pop.

This replaces the lens most recently pushed, if any. There is no need to call prepare_lens() following this call.

The return value is true if the lens is acceptable, false if it is not.

Definition at line 482 of file graphicsStateGuardian.I.

void GraphicsStateGuardian::set_scene SceneSetup scene_setup  )  [inline, inherited]
 

Sets the SceneSetup object that indicates the initial camera position, etc.

This must be called before traversal begins.

Definition at line 110 of file graphicsStateGuardian.I.

References GraphicsStateGuardian::clear(), GraphicsStateGuardian::pop_display_region(), GraphicsStateGuardian::prepare_display_region(), and GraphicsStateGuardian::push_display_region().

void GraphicsStateGuardian::set_state const RenderState state  )  [inline, inherited]
 

Applies the attributes indicated in the state set to the current state, and issues the changes to the graphics hardware.

The state is taken to be a complete description of what the graphics state should be; any transitions not mentioned are implicitly reset to their initial values.

Definition at line 220 of file graphicsStateGuardian.I.

References GraphicsStateGuardian::_current_display_region, DisplayRegionStack::_display_region, GraphicsStateGuardian::_display_region_stack_level, DisplayRegionStack::_stack_level, and INLINE.

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

Simultaneously resets the render state and the transform state.

Implements GraphicsStateGuardianBase.

Definition at line 396 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::_light_info.

void RIBGraphicsStateGuardian::set_texture_directory const string &  directory  ) 
 

Sets the name of the directory into which texture maps are copied to be available to the RIB file.

Definition at line 898 of file ribGraphicsStateGuardian.cxx.

References tex, and Texture::WM_clamp.

void RIBGraphicsStateGuardian::set_texture_extension const string &  extension  ) 
 

Specifies the filename extension that texture map files are given when they are copied into the directory for RIB files.

This might also imply an image type. The default is "tiff", which implies TIFF files.

Definition at line 934 of file ribGraphicsStateGuardian.cxx.

References _enabled_lights, and _light_ids.

void GraphicsStateGuardian::set_transform const TransformState transform  )  [inline, inherited]
 

Sets the world transform that will be applied to subsequent geometry.

This is normally called only during the draw process, immediately before issuing geometry commands.

Definition at line 245 of file graphicsStateGuardian.I.

References GraphicsStateGuardian::_current_display_region, DisplayRegionStack::_display_region, GraphicsStateGuardian::_display_region_stack_level, DisplayRegionStack::_stack_level, INLINE, and nassertv.

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

This will be called by the base class before a particular clip plane id will be used for the first time.

It is intended to allow the derived class to reserve any additional resources, if required, for the new clip plane; and also to indicate whether the hardware supports this many simultaneous clipping planes.

The return value should be true if the additional plane is supported, or false if it is not.

Reimplemented in DXGraphicsStateGuardian7, DXGraphicsStateGuardian8, and GLGraphicsStateGuardian.

Definition at line 1477 of file graphicsStateGuardian.cxx.

References GraphicsStateGuardian::_active_geom_node_pcollector, and PStatCollector::add_level().

Referenced by GraphicsStateGuardian::issue_color().

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

This will be called by the base class before a particular light id will be used for the first time.

It is intended to allow the derived class to reserve any additional resources, if required, for the new light; and also to indicate whether the hardware supports this many simultaneous lights.

The return value should be true if the additional light is supported, or false if it is not.

Reimplemented in GLGraphicsStateGuardian.

Definition at line 1348 of file graphicsStateGuardian.cxx.

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

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 RIBGraphicsStateGuardian::texture_to_pixel_buffer TextureContext ,
PixelBuffer ,
const DisplayRegion
[inline, virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 104 of file ribGraphicsStateGuardian.h.

virtual void RIBGraphicsStateGuardian::texture_to_pixel_buffer TextureContext ,
PixelBuffer
[inline, virtual]
 

Implements GraphicsStateGuardianBase.

Definition at line 103 of file ribGraphicsStateGuardian.h.

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

Definition at line 1995 of file graphicsStateGuardian.cxx.

Referenced by DXGraphicsStateGuardian8::slot_new_clip_plane().

bool GraphicsStateGuardian::unmark_prepared_geom GeomContext gc  )  [protected, inherited]
 

This is intended to be called from within release_geom().

It removes the indicated GeomContext pointer from the _prepared_geoms set, and returns true if it was successfully removed (i.e. it had been in the set).

Definition at line 1698 of file graphicsStateGuardian.cxx.

bool GraphicsStateGuardian::unmark_prepared_geom_node GeomNodeContext gnc  )  [protected, inherited]
 

This is intended to be called from within release_geom_node().

It removes the indicated GeomNodeContext pointer from the _prepared_geom_nodes set, and returns true if it was successfully removed (i.e. it had been in the set).

Definition at line 1752 of file graphicsStateGuardian.cxx.

bool GraphicsStateGuardian::unmark_prepared_texture TextureContext tc  )  [protected, inherited]
 

This is intended to be called from within release_texture().

It removes the indicated TextureContext pointer from the _prepared_textures set, and returns true if it was successfully removed (i.e. it had been in the set).

Definition at line 1644 of file graphicsStateGuardian.cxx.

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().

bool RIBGraphicsStateGuardian::wants_colors void   )  const [virtual]
 

Returns true if the GSG should issue geometry color commands, false otherwise.

Reimplemented from GraphicsStateGuardian.

Definition at line 465 of file ribGraphicsStateGuardian.cxx.

References draw_simple_poly().

bool RIBGraphicsStateGuardian::wants_normals void   )  const [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 441 of file ribGraphicsStateGuardian.cxx.

bool RIBGraphicsStateGuardian::wants_texcoords void   )  const [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 453 of file ribGraphicsStateGuardian.cxx.

void RIBGraphicsStateGuardian::write_light_color const Colorf color  )  const [protected]
 

Called by define_light() to write out a single light's color and intensity values.

Definition at line 1148 of file ribGraphicsStateGuardian.cxx.

References _indent_level, _output, rib_normals, rib_vertices, and write_long_list().

void RIBGraphicsStateGuardian::write_light_from const Node *  light  )  const [protected]
 

Called by define_light() to write out a single light's position.

Definition at line 1168 of file ribGraphicsStateGuardian.cxx.

void RIBGraphicsStateGuardian::write_light_to const Node *  light  )  const [protected]
 

Called by define_light() to write out a single light's direction.

Definition at line 1185 of file ribGraphicsStateGuardian.cxx.

void RIBGraphicsStateGuardian::write_polygon int  num_verts  )  [protected]
 

Writes out the RIB command to draw the polygon described by the global rib_* arrays.

Definition at line 1333 of file ribGraphicsStateGuardian.cxx.


Friends And Related Function Documentation

friend class RibStuffTraverser [friend]
 

Definition at line 186 of file ribGraphicsStateGuardian.h.


Member Data Documentation

Colorf GraphicsStateGuardian::_accum_clear_value [protected, inherited]
 

Definition at line 246 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::reset().

PStatCollector GraphicsStateGuardian::_active_geom_node_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::enable_light(), and GraphicsStateGuardian::slot_new_clip_plane().

PStatCollector GraphicsStateGuardian::_active_geom_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::enable_light(), and GraphicsStateGuardian::end_bind_lights().

PStatCollector GraphicsStateGuardian::_active_texusage_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::set_ambient_light().

int GraphicsStateGuardian::_buffer_mask [protected, inherited]
 

Definition at line 242 of file graphicsStateGuardian.h.

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

int GraphicsStateGuardian::_clear_buffer_type [protected, inherited]
 

Definition at line 247 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::reset().

bool GraphicsStateGuardian::_clip_planes_enabled [protected, inherited]
 

Definition at line 266 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::issue_color(), and GraphicsStateGuardian::reset().

bool GraphicsStateGuardian::_closing_gsg [protected, inherited]
 

Definition at line 281 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::GraphicsStateGuardian(), and GLGraphicsStateGuardian::prepare_texture().

ColorBlendAttrib::Mode GraphicsStateGuardian::_color_blend_mode [protected, inherited]
 

Definition at line 277 of file graphicsStateGuardian.h.

Referenced by DXGraphicsStateGuardian8::enable_blend(), and GraphicsStateGuardian::reset().

Colorf GraphicsStateGuardian::_color_clear_value [protected, inherited]
 

Definition at line 243 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::reset().

int GraphicsStateGuardian::_color_transform_enabled [protected, inherited]
 

Definition at line 272 of file graphicsStateGuardian.h.

Referenced by GLGraphicsStateGuardian::draw_point(), DXGraphicsStateGuardian7::draw_prim_setup(), GLGraphicsStateGuardian::draw_quad(), CRGraphicsStateGuardian::prepare_lens(), GraphicsStateGuardian::reset(), DXGraphicsStateGuardian8::transform_color(), and GraphicsStateGuardian::wants_colors().

ColorWriteAttrib::Mode GraphicsStateGuardian::_color_write_mode [protected, inherited]
 

Definition at line 276 of file graphicsStateGuardian.h.

Referenced by DXGraphicsStateGuardian8::enable_blend(), and GraphicsStateGuardian::reset().

CoordinateSystem GraphicsStateGuardian::_coordinate_system [protected, inherited]
 

Definition at line 259 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::push_frame_buffer().

RGBColorf RIBGraphicsStateGuardian::_current_color [protected]
 

Definition at line 160 of file ribGraphicsStateGuardian.h.

Referenced by apply_light(), and reset_file().

LVecBase4f GraphicsStateGuardian::_current_color_offset [protected, inherited]
 

Definition at line 273 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::reset().

LVecBase4f GraphicsStateGuardian::_current_color_scale [protected, inherited]
 

Definition at line 274 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::reset(), and GraphicsStateGuardian::wants_colors().

ConstPointerTo< DisplayRegion > GraphicsStateGuardian::_current_display_region [protected, inherited]
 

Definition at line 253 of file graphicsStateGuardian.h.

Referenced by DXGraphicsStateGuardian8::do_clear(), GraphicsStateGuardian::set_state(), and GraphicsStateGuardian::set_transform().

ConstPointerTo< Lens > GraphicsStateGuardian::_current_lens [protected, inherited]
 

Definition at line 254 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::pop_display_region(), GLGraphicsStateGuardian::prepare_display_region(), CRGraphicsStateGuardian::prepare_display_region(), and GraphicsStateGuardian::push_display_region().

float GraphicsStateGuardian::_depth_clear_value [protected, inherited]
 

Definition at line 244 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::release_geom_node(), GraphicsStateGuardian::reset(), and DXGraphicsStateGuardian8::support_overlay_window().

int GraphicsStateGuardian::_display_region_stack_level [protected, inherited]
 

Definition at line 249 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::set_state(), GraphicsStateGuardian::set_transform(), and GraphicsStateGuardian::~GraphicsStateGuardian().

PStatCollector GraphicsStateGuardian::_draw_primitive_pcollector [static, inherited]
 

Referenced by GLGraphicsStateGuardian::draw_point(), DXGraphicsStateGuardian8::draw_point(), DXGraphicsStateGuardian7::draw_prim_inner_loop_coordtexonly(), GLGraphicsStateGuardian::draw_quad(), GLGraphicsStateGuardian::draw_sphere(), GLGraphicsStateGuardian::prepare_geom_node(), and CRGraphicsStateGuardian::prepare_lens().

EnabledLights RIBGraphicsStateGuardian::_enabled_lights [protected]
 

Definition at line 171 of file ribGraphicsStateGuardian.h.

Referenced by copy_pixel_buffer(), reset_file(), and set_texture_extension().

int GraphicsStateGuardian::_frame_buffer_stack_level [protected, inherited]
 

Definition at line 250 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::get_current_display_region(), and GraphicsStateGuardian::~GraphicsStateGuardian().

PStatCollector GraphicsStateGuardian::_frustum_cull_transforms_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::enable_light().

PStatCollector GraphicsStateGuardian::_frustum_cull_volumes_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::enable_light().

PStatCollector GraphicsStateGuardian::_geom_nodes_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::enable_light().

bool GraphicsStateGuardian::_has_scene_graph_color [protected, inherited]
 

Definition at line 262 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::begin_decal_base_first(), GraphicsStateGuardian::depth_offset_decals(), DXGraphicsStateGuardian8::dx_init(), and GraphicsStateGuardian::reset().

int RIBGraphicsStateGuardian::_indent_level [protected]
 

Definition at line 165 of file ribGraphicsStateGuardian.h.

Referenced by apply_light(), clear(), and write_light_color().

int GraphicsStateGuardian::_lens_stack_level [protected, inherited]
 

Definition at line 251 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::push_display_region(), and GraphicsStateGuardian::~GraphicsStateGuardian().

LightIDs RIBGraphicsStateGuardian::_light_ids [protected]
 

Definition at line 169 of file ribGraphicsStateGuardian.h.

Referenced by reset_file(), and set_texture_extension().

bool GraphicsStateGuardian::_lighting_enabled [protected, inherited]
 

Definition at line 265 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::begin_decal_nested(), and GraphicsStateGuardian::reset().

bool GraphicsStateGuardian::_needs_reset [protected, inherited]
 

Definition at line 280 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::GraphicsStateGuardian(), and GraphicsStateGuardian::~GraphicsStateGuardian().

PStatCollector GraphicsStateGuardian::_nodes_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::enable_light().

bool GraphicsStateGuardian::_normals_enabled [protected, inherited]
 

Definition at line 257 of file graphicsStateGuardian.h.

Referenced by DXGraphicsStateGuardian8::dx_init(), and GraphicsStateGuardian::reset().

ostream* RIBGraphicsStateGuardian::_output [protected]
 

Definition at line 164 of file ribGraphicsStateGuardian.h.

Referenced by apply_light(), and write_light_color().

PStatCollector GraphicsStateGuardian::_render_states_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::enable_light().

PStatCollector GraphicsStateGuardian::_render_states_unused_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::enable_light().

Colorf GraphicsStateGuardian::_scene_graph_color [protected, inherited]
 

Definition at line 261 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::depth_offset_decals(), DXGraphicsStateGuardian7::draw_prim_setup(), CRGraphicsStateGuardian::enable_polygon_offset(), and DXGraphicsStateGuardian8::transform_color().

bool GraphicsStateGuardian::_scene_graph_color_stale [protected, inherited]
 

Definition at line 263 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::begin_decal_base_first(), GraphicsStateGuardian::depth_offset_decals(), DXGraphicsStateGuardian7::draw_prim_setup(), CRGraphicsStateGuardian::enable_polygon_offset(), GraphicsStateGuardian::reset(), and DXGraphicsStateGuardian8::transform_color().

PointerTo< SceneSetup > GraphicsStateGuardian::_scene_setup [protected, inherited]
 

Definition at line 237 of file graphicsStateGuardian.h.

Referenced by CRGraphicsStateGuardian::get_internal_image_format(), GraphicsStateGuardian::get_pipe(), GraphicsStateGuardian::get_threading_model(), GLGraphicsStateGuardian::issue_alpha_test(), CRGraphicsStateGuardian::issue_color_write(), GLGraphicsStateGuardian::issue_cull_face(), DXGraphicsStateGuardian8::issue_depth_test(), DXGraphicsStateGuardian8::issue_depth_write(), CRGraphicsStateGuardian::issue_depth_write(), CRGraphicsStateGuardian::issue_fog(), and DXGraphicsStateGuardian8::issue_render_mode().

PStatCollector GraphicsStateGuardian::_set_state_pcollector [static, inherited]
 

ConstPointerTo< RenderState > GraphicsStateGuardian::_state [protected, inherited]
 

Definition at line 239 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::clear(), GLGraphicsStateGuardian::draw_sprite(), DXGraphicsStateGuardian8::draw_sprite(), DXGraphicsStateGuardian7::draw_sprite(), reset_file(), and GraphicsStateGuardian::~GraphicsStateGuardian().

PStatCollector GraphicsStateGuardian::_state_changes_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::enable_light().

bool GraphicsStateGuardian::_stencil_clear_value [protected, inherited]
 

Definition at line 245 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::reset(), and DXGraphicsStateGuardian8::support_overlay_window().

PStatCollector GraphicsStateGuardian::_texmgrmem_resident_pcollector [static, inherited]
 

PStatCollector GraphicsStateGuardian::_texmgrmem_total_pcollector [static, inherited]
 

string RIBGraphicsStateGuardian::_texture_directory [protected]
 

Definition at line 162 of file ribGraphicsStateGuardian.h.

Referenced by apply_light().

string RIBGraphicsStateGuardian::_texture_extension [protected]
 

Definition at line 163 of file ribGraphicsStateGuardian.h.

Referenced by apply_light().

TextureNames RIBGraphicsStateGuardian::_texture_names [protected]
 

Definition at line 167 of file ribGraphicsStateGuardian.h.

Referenced by apply_light(), and reset().

PStatCollector GraphicsStateGuardian::_texture_state_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::enable_light().

PStatCollector GraphicsStateGuardian::_total_geom_node_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::bind_light(), and GraphicsStateGuardian::slot_new_light().

PStatCollector GraphicsStateGuardian::_total_geom_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::bind_light().

PStatCollector GraphicsStateGuardian::_total_texmem_pcollector [static, inherited]
 

PStatCollector GraphicsStateGuardian::_total_texusage_pcollector [static, inherited]
 

ConstPointerTo< TransformState > GraphicsStateGuardian::_transform [protected, inherited]
 

Definition at line 240 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::~GraphicsStateGuardian().

PStatCollector GraphicsStateGuardian::_transform_state_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::enable_clip_planes(), and GraphicsStateGuardian::enable_light().

PStatCollector GraphicsStateGuardian::_transform_states_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::enable_light().

PStatCollector GraphicsStateGuardian::_transform_states_unused_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::enable_light().

TransparencyAttrib::Mode GraphicsStateGuardian::_transparency_mode [protected, inherited]
 

Definition at line 278 of file graphicsStateGuardian.h.

Referenced by DXGraphicsStateGuardian8::enable_blend(), and GraphicsStateGuardian::reset().

TypeHandle RIBGraphicsStateGuardian::_type_handle [static, private]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 60 of file ribGraphicsStateGuardian.cxx.

PStatCollector GraphicsStateGuardian::_used_texmem_pcollector [static, inherited]
 

bool GraphicsStateGuardian::_vertex_colors_enabled [protected, inherited]
 

Definition at line 264 of file graphicsStateGuardian.h.

Referenced by GraphicsStateGuardian::begin_decal_base_first(), GraphicsStateGuardian::depth_offset_decals(), and GraphicsStateGuardian::reset().

PStatCollector GraphicsStateGuardian::_vertices_other_pcollector [static, inherited]
 

Referenced by GLGraphicsStateGuardian::draw_point(), DXGraphicsStateGuardian8::draw_point(), DXGraphicsStateGuardian7::draw_prim_inner_loop_coordtexonly(), GraphicsStateGuardian::enable_light(), CRGraphicsStateGuardian::prepare_lens(), and CRGraphicsStateGuardian::release_texture().

PStatCollector GraphicsStateGuardian::_vertices_pcollector [static, inherited]
 

PStatCollector GraphicsStateGuardian::_vertices_tri_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::enable_light(), and CRGraphicsStateGuardian::release_texture().

PStatCollector GraphicsStateGuardian::_vertices_trifan_pcollector [static, inherited]
 

Referenced by GraphicsStateGuardian::enable_light(), and CRGraphicsStateGuardian::release_texture().

PStatCollector GraphicsStateGuardian::_vertices_tristrip_pcollector [static, inherited]
 

Referenced by GLGraphicsStateGuardian::draw_quad(), GraphicsStateGuardian::enable_light(), and CRGraphicsStateGuardian::release_texture().


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