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

GLGraphicsStateGuardian Class Reference

#include <glGraphicsStateGuardian.h>

Inheritance diagram for GLGraphicsStateGuardian:

GraphicsStateGuardian GraphicsStateGuardianBase TypedReferenceCount TypedObject ReferenceCount glxGraphicsStateGuardian wglGraphicsStateGuardian List of all members.

Public Member Functions

 GLGraphicsStateGuardian (const FrameBufferProperties &properties)
virtual ~GLGraphicsStateGuardian ()
virtual void reset ()
virtual void do_clear (const RenderBuffer &buffer)
virtual void prepare_display_region ()
virtual bool prepare_lens ()
virtual bool begin_frame ()
virtual void end_frame ()
virtual void draw_point (GeomPoint *geom, GeomContext *gc)
virtual void draw_line (GeomLine *geom, GeomContext *gc)
virtual void draw_linestrip (GeomLinestrip *geom, GeomContext *gc)
virtual void draw_sprite (GeomSprite *geom, GeomContext *gc)
virtual void draw_polygon (GeomPolygon *geom, GeomContext *gc)
virtual void draw_quad (GeomQuad *geom, GeomContext *gc)
virtual void draw_tri (GeomTri *geom, GeomContext *gc)
virtual void draw_tristrip (GeomTristrip *geom, GeomContext *gc)
virtual void draw_trifan (GeomTrifan *geom, GeomContext *gc)
virtual void draw_sphere (GeomSphere *geom, GeomContext *gc)
virtual TextureContextprepare_texture (Texture *tex)
virtual void apply_texture (TextureContext *tc)
virtual void release_texture (TextureContext *tc)
virtual GeomNodeContextprepare_geom_node (GeomNode *node)
virtual void draw_geom_node (GeomNode *node, const RenderState *state, GeomNodeContext *gnc)
virtual void release_geom_node (GeomNodeContext *gnc)
virtual void copy_texture (TextureContext *tc, const DisplayRegion *dr)
virtual void copy_texture (TextureContext *tc, const DisplayRegion *dr, const RenderBuffer &rb)
virtual void texture_to_pixel_buffer (TextureContext *tc, PixelBuffer *pb)
virtual void texture_to_pixel_buffer (TextureContext *tc, PixelBuffer *pb, const DisplayRegion *dr)
virtual void copy_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr)
virtual void copy_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr, const RenderBuffer &rb)
virtual void apply_material (const Material *material)
void apply_fog (Fog *fog)
virtual void issue_transform (const TransformState *transform)
virtual void issue_tex_matrix (const TexMatrixAttrib *attrib)
virtual void issue_texture (const TextureAttrib *attrib)
virtual void issue_material (const MaterialAttrib *attrib)
virtual void issue_render_mode (const RenderModeAttrib *attrib)
virtual void issue_texture_apply (const TextureApplyAttrib *attrib)
virtual void issue_color_write (const ColorWriteAttrib *attrib)
virtual void issue_depth_test (const DepthTestAttrib *attrib)
virtual void issue_alpha_test (const AlphaTestAttrib *attrib)
virtual void issue_depth_write (const DepthWriteAttrib *attrib)
virtual void issue_cull_face (const CullFaceAttrib *attrib)
virtual void issue_fog (const FogAttrib *attrib)
virtual void issue_depth_offset (const DepthOffsetAttrib *attrib)
virtual void bind_light (PointLight *light, int light_id)
virtual void bind_light (DirectionalLight *light, int light_id)
virtual void bind_light (Spotlight *light, int light_id)
virtual bool wants_normals (void) const
virtual bool wants_texcoords (void) const
virtual bool depth_offset_decals ()
virtual CoordinateSystem get_internal_coordinate_system () const
virtual float compute_distance_to (const LPoint3f &point) const
void print_gfx_visual ()
void dump_state (void)
void issue_transformed_color (const Colorf &color) const
virtual TypeHandle get_type (void) const
virtual TypeHandle force_init_type ()

Static Public Member Functions

INLINE void report_errors (int line, const char *source_file)
GraphicsStateGuardianmake_GlGraphicsStateGuardian (const FactoryParams &params)
TypeHandle get_class_type (void)
void init_type (void)

Static Public Attributes

PStatCollector _vertices_display_list_pcollector

Protected Member Functions

virtual bool slot_new_light (int light_id)
virtual void enable_lighting (bool enable)
virtual void set_ambient_light (const Colorf &color)
virtual void enable_light (int light_id, bool enable)
virtual void begin_bind_lights ()
virtual void end_bind_lights ()
virtual bool slot_new_clip_plane (int plane_id)
virtual void enable_clip_plane (int plane_id, bool enable)
virtual void begin_bind_clip_planes ()
virtual void bind_clip_plane (PlaneNode *plane, int plane_id)
virtual void end_bind_clip_planes ()
virtual void set_blend_mode (ColorWriteAttrib::Mode color_write_mode, ColorBlendAttrib::Mode color_blend_mode, TransparencyAttrib::Mode transparency_mode)
virtual void free_pointers ()
virtual PT (SavedFrameBuffer) save_frame_buffer(const RenderBuffer &buffer
virtual CPT (DisplayRegion) dr)
virtual void restore_frame_buffer (SavedFrameBuffer *frame_buffer)
INLINE void call_glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
INLINE void call_glClearDepth (GLclampd depth)
INLINE void call_glClearStencil (GLint s)
INLINE void call_glClearAccum (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
INLINE void call_glDrawBuffer (GLenum mode)
INLINE void call_glReadBuffer (GLenum mode)
INLINE void call_glShadeModel (GLenum mode)
INLINE void call_glBlendFunc (GLenum sfunc, GLenum dfunc)
INLINE void call_glCullFace (GLenum mode)
INLINE void call_glScissor (GLint x, GLint y, GLsizei width, GLsizei height)
INLINE void call_glViewport (GLint x, GLint y, GLsizei width, GLsizei height)
INLINE void call_glLightModelLocal (GLboolean local)
INLINE void call_glLightModelTwoSide (GLboolean twoside)
INLINE void call_glStencilFunc (GLenum func, GLint refval, GLuint mask)
INLINE void call_glStencilOp (GLenum fail, GLenum zfail, GLenum pass)
INLINE void call_glClipPlane (GLenum plane, const double equation[4])
INLINE void call_glLineWidth (GLfloat width)
INLINE void call_glPointSize (GLfloat size)
INLINE void call_glFogMode (GLint mode)
INLINE void call_glFogStart (GLfloat start)
INLINE void call_glFogEnd (GLfloat end)
INLINE void call_glFogDensity (GLfloat density)
INLINE void call_glFogColor (const Colorf &color)
INLINE void call_glAlphaFunc (GLenum func, GLclampf ref)
INLINE void call_glPolygonMode (GLenum mode)
INLINE void set_pack_alignment (GLint alignment)
INLINE void set_unpack_alignment (GLint alignment)
INLINE void enable_multisample (bool val)
INLINE void enable_line_smooth (bool val)
INLINE void enable_point_smooth (bool val)
INLINE void enable_texturing (bool val)
INLINE void enable_scissor (bool val)
INLINE void enable_stencil_test (bool val)
INLINE void enable_multisample_alpha_one (bool val)
INLINE void enable_multisample_alpha_mask (bool val)
INLINE void enable_blend (bool val)
INLINE void enable_depth_test (bool val)
INLINE void enable_fog (bool val)
INLINE void enable_alpha_test (bool val)
INLINE void enable_polygon_offset (bool val)
INLINE GLenum get_light_id (int index) const
INLINE GLenum get_clip_plane_id (int index) const
INLINE void issue_scene_graph_color ()
void set_draw_buffer (const RenderBuffer &rb)
void set_read_buffer (const RenderBuffer &rb)
void bind_texture (TextureContext *tc)
void specify_texture (Texture *tex)
bool apply_texture_immediate (Texture *tex)
void draw_texture (TextureContext *tc, const DisplayRegion *dr)
void draw_texture (TextureContext *tc, const DisplayRegion *dr, const RenderBuffer &rb)
void draw_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr)
void draw_pixel_buffer (PixelBuffer *pb, const DisplayRegion *dr, const RenderBuffer &rb)
GLenum get_texture_wrap_mode (Texture::WrapMode wm)
GLenum get_texture_filter_type (Texture::FilterType ft)
GLenum get_image_type (PixelBuffer::Type type)
GLenum get_external_image_format (PixelBuffer::Format format)
GLenum get_internal_image_format (PixelBuffer::Format format)
GLint get_texture_apply_mode_type (TextureApplyAttrib::Mode am) const
GLenum get_fog_mode_type (Fog::Mode m) const
void build_phony_mipmaps (Texture *tex)
void build_phony_mipmap_level (int level, int xsize, int ysize)
void save_mipmap_images (Texture *tex)
 CPT (DisplayRegion) _actual_display_region

Static Protected Member Functions

void report_errors_loop (int line, const char *source_file, GLenum error_code)
 CPT (RenderState) get_untextured_state()

Protected Attributes

GLclampf _clear_color_red
GLclampf _clear_color_green
GLclampf _clear_color_blue
GLclampf _clear_color_alpha
GLclampd _clear_depth
GLint _clear_stencil
GLclampf _clear_accum_red
GLclampf _clear_accum_green
GLclampf _clear_accum_blue
GLclampf _clear_accum_alpha
GLenum _draw_buffer_mode
GLenum _read_buffer_mode
GLenum _shade_model_mode
GLint _scissor_x
GLint _scissor_y
GLsizei _scissor_width
GLsizei _scissor_height
GLint _viewport_x
GLint _viewport_y
GLsizei _viewport_width
GLsizei _viewport_height
GLboolean _lmodel_local
GLboolean _lmodel_twoside
GLfloat _line_width
GLfloat _point_size
GLenum _blend_source_func
GLenum _blend_dest_func
GLboolean _depth_mask
GLint _fog_mode
GLfloat _fog_start
GLfloat _fog_end
GLfloat _fog_density
Colorf _fog_color
GLenum _alpha_func
GLclampf _alpha_func_ref
GLenum _polygon_mode
GLint _pack_alignment
GLint _unpack_alignment
bool _multisample_enabled
bool _line_smooth_enabled
bool _point_smooth_enabled
bool _scissor_enabled
bool _texturing_enabled
bool _stencil_test_enabled
bool _multisample_alpha_one_enabled
bool _multisample_alpha_mask_enabled
bool _blend_enabled
bool _depth_test_enabled
bool _fog_enabled
bool _alpha_test_enabled
bool _polygon_offset_enabled
int _decal_level
bool _dithering_enabled
int _max_lights
int _max_clip_planes
LMatrix4f _current_projection_mat
int _projection_mat_stack_count
int _pass_number

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

GLGraphicsStateGuardian::GLGraphicsStateGuardian const FrameBufferProperties properties  ) 
 

Definition at line 166 of file glGraphicsStateGuardian.cxx.

GLGraphicsStateGuardian::~GLGraphicsStateGuardian  )  [virtual]
 

Definition at line 177 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::close_gsg().


Member Function Documentation

void GLGraphicsStateGuardian::apply_fog Fog fog  ) 
 

Definition at line 2103 of file glGraphicsStateGuardian.cxx.

References call_glFogColor(), call_glFogDensity(), call_glFogEnd(), call_glFogMode(), call_glFogStart(), Fog::get_color(), Fog::get_exp_density(), get_fog_mode_type(), Fog::get_linear_range(), Fog::get_mode(), and report_gl_errors.

Referenced by issue_fog().

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

Implements GraphicsStateGuardianBase.

Definition at line 2057 of file glGraphicsStateGuardian.cxx.

References call_glLightModelLocal(), call_glLightModelTwoSide(), Material::get_ambient(), Material::get_diffuse(), Material::get_emission(), Material::get_local(), Material::get_shininess(), Material::get_specular(), Material::get_twoside(), Material::has_ambient(), Material::has_diffuse(), and report_gl_errors.

Referenced by issue_material(), and reset().

void GLGraphicsStateGuardian::apply_texture TextureContext tc  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 1609 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::add_to_texture_record(), apply_texture_immediate(), bind_texture(), Texture::DF_filter, Texture::DF_image, Texture::DF_mipmap, Texture::DF_wrap, report_gl_errors, specify_texture(), and tc.

bool GLGraphicsStateGuardian::apply_texture_immediate Texture tex  )  [protected]
 

Definition at line 2821 of file glGraphicsStateGuardian.cxx.

References PixelBuffer::_image, build_phony_mipmaps(), compute_gl_image_size(), PointerToArray< unsigned char >::empty(), PixelBuffer::get_border(), get_external_image_format(), PixelBuffer::get_format(), PixelBuffer::get_image_type(), get_image_type(), get_internal_image_format(), Texture::get_ram_image(), PixelBuffer::get_xsize(), PixelBuffer::get_ysize(), gl_force_mipmaps, gl_ignore_mipmaps, gl_supports_bgr, image, NULL, pb, report_gl_errors, save_mipmap_images(), set_unpack_alignment(), PixelBuffer::T_unsigned_byte, tex, type, uchar, uchar_bgr_to_rgb(), uchar_bgra_to_rgba(), and Texture::uses_mipmaps().

Referenced by apply_texture(), and prepare_texture().

void GLGraphicsStateGuardian::begin_bind_clip_planes  )  [protected, virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 3606 of file glGraphicsStateGuardian.cxx.

void GLGraphicsStateGuardian::begin_bind_lights  )  [protected, virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 3529 of file glGraphicsStateGuardian.cxx.

bool GLGraphicsStateGuardian::begin_frame  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 510 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::begin_frame(), and report_gl_errors.

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

Reimplemented from GraphicsStateGuardian.

Definition at line 3628 of file glGraphicsStateGuardian.cxx.

References get_clip_plane_id(), NodePath::get_mat(), PlaneNode::get_plane(), id, and report_gl_errors.

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

Reimplemented from GraphicsStateGuardian.

Definition at line 2468 of file glGraphicsStateGuardian.cxx.

References Colorf, Spotlight::get_attenuation(), Lens::get_hfov(), LensNode::get_lens(), get_light_id(), NodePath::get_mat(), Lens::get_nodal_point(), Spotlight::get_specular_color(), Lens::get_view_vector(), id, NULL, and report_gl_errors.

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

Reimplemented from GraphicsStateGuardian.

Definition at line 2426 of file glGraphicsStateGuardian.cxx.

References Colorf, DirectionalLight::get_direction(), get_light_id(), NodePath::get_mat(), id, and report_gl_errors.

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

Reimplemented from GraphicsStateGuardian.

Definition at line 2385 of file glGraphicsStateGuardian.cxx.

References Colorf, PointLight::get_attenuation(), get_light_id(), NodePath::get_mat(), PointLight::get_point(), id, and report_gl_errors.

void GLGraphicsStateGuardian::bind_texture TextureContext tc  )  [protected]
 

Definition at line 2703 of file glGraphicsStateGuardian.cxx.

References GLTextureContext::_index, DCAST, report_gl_errors, tc, and tex.

Referenced by apply_texture(), copy_texture(), and prepare_texture().

void GLGraphicsStateGuardian::build_phony_mipmap_level int  level,
int  xsize,
int  ysize
[protected]
 

Definition at line 3891 of file glGraphicsStateGuardian.cxx.

References PixelBuffer::_image, PNMImage::fill(), PixelBuffer::get_border(), get_external_image_format(), PixelBuffer::get_format(), PixelBuffer::get_image_type(), get_image_type(), get_internal_image_format(), get_model_path(), get_texture_path(), PixelBuffer::get_xsize(), PixelBuffer::get_ysize(), PNMImage::is_valid(), level, PixelBuffer::load(), pb, PNMImage::quick_filter_from(), PNMImage::read(), RGBColorf, and type.

Referenced by build_phony_mipmaps().

void GLGraphicsStateGuardian::build_phony_mipmaps Texture tex  )  [protected]
 

Definition at line 3848 of file glGraphicsStateGuardian.cxx.

References build_phony_mipmap_level(), PixelBuffer::get_xsize(), PixelBuffer::get_ysize(), level, pb, and tex.

Referenced by apply_texture_immediate().

INLINE void GLGraphicsStateGuardian::call_glAlphaFunc GLenum  func,
GLclampf  ref
[protected]
 

Referenced by issue_alpha_test().

INLINE void GLGraphicsStateGuardian::call_glBlendFunc GLenum  sfunc,
GLenum  dfunc
[protected]
 

Referenced by set_blend_mode().

INLINE void GLGraphicsStateGuardian::call_glClearAccum GLclampf  red,
GLclampf  green,
GLclampf  blue,
GLclampf  alpha
[protected]
 

Referenced by do_clear().

INLINE void GLGraphicsStateGuardian::call_glClearColor GLclampf  red,
GLclampf  green,
GLclampf  blue,
GLclampf  alpha
[protected]
 

Referenced by do_clear().

INLINE void GLGraphicsStateGuardian::call_glClearDepth GLclampd  depth  )  [protected]
 

Referenced by do_clear().

INLINE void GLGraphicsStateGuardian::call_glClearStencil GLint  s  )  [protected]
 

Referenced by do_clear().

INLINE void GLGraphicsStateGuardian::call_glClipPlane GLenum  plane,
const double  equation[4]
[protected]
 

INLINE void GLGraphicsStateGuardian::call_glCullFace GLenum  mode  )  [protected]
 

INLINE void GLGraphicsStateGuardian::call_glDrawBuffer GLenum  mode  )  [protected]
 

Referenced by set_draw_buffer().

INLINE void GLGraphicsStateGuardian::call_glFogColor const Colorf color  )  [protected]
 

Referenced by apply_fog().

INLINE void GLGraphicsStateGuardian::call_glFogDensity GLfloat  density  )  [protected]
 

Referenced by apply_fog().

INLINE void GLGraphicsStateGuardian::call_glFogEnd GLfloat  end  )  [protected]
 

Referenced by apply_fog().

INLINE void GLGraphicsStateGuardian::call_glFogMode GLint  mode  )  [protected]
 

Referenced by apply_fog().

INLINE void GLGraphicsStateGuardian::call_glFogStart GLfloat  start  )  [protected]
 

Referenced by apply_fog().

INLINE void GLGraphicsStateGuardian::call_glLightModelLocal GLboolean  local  )  [protected]
 

Referenced by apply_material().

INLINE void GLGraphicsStateGuardian::call_glLightModelTwoSide GLboolean  twoside  )  [protected]
 

Referenced by apply_material().

INLINE void GLGraphicsStateGuardian::call_glLineWidth GLfloat  width  )  [protected]
 

Referenced by draw_line(), draw_linestrip(), and issue_render_mode().

INLINE void GLGraphicsStateGuardian::call_glPointSize GLfloat  size  )  [protected]
 

Referenced by draw_point().

INLINE void GLGraphicsStateGuardian::call_glPolygonMode GLenum  mode  )  [protected]
 

Referenced by issue_render_mode().

INLINE void GLGraphicsStateGuardian::call_glReadBuffer GLenum  mode  )  [protected]
 

Referenced by set_read_buffer().

INLINE void GLGraphicsStateGuardian::call_glScissor GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height
[protected]
 

Referenced by prepare_display_region().

INLINE void GLGraphicsStateGuardian::call_glShadeModel GLenum  mode  )  [protected]
 

Referenced by draw_line(), draw_linestrip(), draw_polygon(), draw_quad(), draw_sphere(), draw_tri(), draw_trifan(), and draw_tristrip().

INLINE void GLGraphicsStateGuardian::call_glStencilFunc GLenum  func,
GLint  refval,
GLuint  mask
[protected]
 

INLINE void GLGraphicsStateGuardian::call_glStencilOp GLenum  fail,
GLenum  zfail,
GLenum  pass
[protected]
 

INLINE void GLGraphicsStateGuardian::call_glViewport GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height
[protected]
 

Referenced by prepare_display_region().

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

Implements GraphicsStateGuardianBase.

Definition at line 2560 of file glGraphicsStateGuardian.cxx.

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

Implements GraphicsStateGuardianBase.

Definition at line 2046 of file glGraphicsStateGuardian.cxx.

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

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

Implements GraphicsStateGuardianBase.

Definition at line 1958 of file glGraphicsStateGuardian.cxx.

References PixelBuffer::_image, PointerToArray< unsigned char >::empty(), PointerToArray< unsigned char >::empty_array(), get_external_image_format(), PixelBuffer::get_format(), PixelBuffer::get_image_type(), get_image_type(), DisplayRegion::get_region_pixels(), PixelBuffer::get_xorg(), PixelBuffer::get_xsize(), PixelBuffer::get_yorg(), PixelBuffer::get_ysize(), GraphicsStateGuardian::modify_state(), NULL, PointerToArray< unsigned char >::p(), pb, report_gl_errors, set_pack_alignment(), PixelBuffer::T_unsigned_byte, uchar_bgr_to_rgb(), uchar_bgra_to_rgba(), and w.

Referenced by copy_pixel_buffer(), and texture_to_pixel_buffer().

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

Implements GraphicsStateGuardianBase.

Definition at line 1892 of file glGraphicsStateGuardian.cxx.

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

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

Implements GraphicsStateGuardianBase.

Definition at line 1846 of file glGraphicsStateGuardian.cxx.

References binary_log_cap(), bind_texture(), PixelBuffer::get_border(), PixelBuffer::get_format(), get_internal_image_format(), DisplayRegion::get_region_pixels(), GraphicsStateGuardian::modify_state(), NULL, pb, PixelBuffer::set_size(), tc, tex, and w.

Referenced by copy_texture().

GLGraphicsStateGuardian::CPT DisplayRegion   )  [protected, virtual]
 

Implements GraphicsStateGuardian.

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

Reimplemented from GraphicsStateGuardian.

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

Implements GraphicsStateGuardian.

Referenced by do_clear(), draw_pixel_buffer(), draw_texture(), and reset().

bool GLGraphicsStateGuardian::depth_offset_decals  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 2529 of file glGraphicsStateGuardian.cxx.

References gl_depth_offset_decals.

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

Implements GraphicsStateGuardian.

Definition at line 354 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::_accum_clear_value, GraphicsStateGuardian::_color_clear_value, GraphicsStateGuardian::_depth_clear_value, _depth_mask, GraphicsStateGuardian::_stencil_clear_value, buffer, call_glClearAccum(), call_glClearColor(), call_glClearDepth(), call_glClearStencil(), CPT(), DepthWriteAttrib::M_on, ColorWriteAttrib::M_on, GraphicsStateGuardian::modify_state(), report_gl_errors, set_draw_buffer(), RenderBuffer::T_accum, RenderBuffer::T_color, RenderBuffer::T_depth, and RenderBuffer::T_stencil.

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

Reimplemented from GraphicsStateGuardian.

Definition at line 1767 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::_draw_primitive_pcollector, GLGeomNodeContext::_dynamic_geoms, GLGeomNodeContext::_index, _vertices_display_list_pcollector, PStatCollector::add_level(), GraphicsStateGuardian::add_to_geom_node_record(), DCAST, Geom::draw(), GeomNode::get_geom(), and NULL.

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

Implements GraphicsStateGuardianBase.

Definition at line 598 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::_color_transform_enabled, GraphicsStateGuardian::_draw_primitive_pcollector, GraphicsStateGuardian::_vertices_other_pcollector, PStatCollector::add_level(), call_glLineWidth(), call_glShadeModel(), G_COLOR, G_NORMAL, G_OVERALL, G_PER_PRIM, G_PER_VERTEX, Geom::get_num_prims(), Geom::get_num_vertices(), GeomLine::get_width(), GeomIssuer::issue_color(), GraphicsStateGuardian::issue_color(), issue_color_gl(), GeomIssuer::issue_normal(), issue_normal_gl(), issue_scene_graph_color(), GeomIssuer::issue_texcoord(), issue_texcoord_gl(), issue_transformed_color_gl(), GeomIssuer::issue_vertex(), issue_vertex_gl(), GeomIssuer::IssueColor, Geom::make_color_iterator(), Geom::make_normal_iterator(), Geom::make_texcoord_iterator(), Geom::make_vertex_iterator(), report_gl_errors, GraphicsStateGuardian::wants_colors(), and wants_normals().

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

Implements GraphicsStateGuardianBase.

Definition at line 669 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::_color_transform_enabled, GraphicsStateGuardian::_draw_primitive_pcollector, GraphicsStateGuardian::_vertices_other_pcollector, PStatCollector::add_level(), call_glLineWidth(), call_glShadeModel(), DO_PSTATS_STUFF, G_COLOR, G_NORMAL, G_OVERALL, G_PER_COMPONENT, G_PER_PRIM, G_PER_VERTEX, Geom::get_lengths(), Geom::get_num_prims(), Geom::get_num_vertices(), GeomLinestrip::get_width(), GeomIssuer::issue_color(), GraphicsStateGuardian::issue_color(), issue_color_gl(), GeomIssuer::issue_normal(), issue_normal_gl(), issue_scene_graph_color(), GeomIssuer::issue_texcoord(), issue_texcoord_gl(), issue_transformed_color_gl(), GeomIssuer::issue_vertex(), issue_vertex_gl(), GeomIssuer::IssueColor, Geom::make_color_iterator(), Geom::make_normal_iterator(), Geom::make_texcoord_iterator(), Geom::make_vertex_iterator(), report_gl_errors, PStatCollector::start(), PStatCollector::stop(), v, GraphicsStateGuardian::wants_colors(), and wants_normals().

void GLGraphicsStateGuardian::draw_pixel_buffer PixelBuffer pb,
const DisplayRegion dr,
const RenderBuffer rb
[protected]
 

Definition at line 3131 of file glGraphicsStateGuardian.cxx.

References draw_pixel_buffer(), pb, and set_draw_buffer().

void GLGraphicsStateGuardian::draw_pixel_buffer PixelBuffer pb,
const DisplayRegion dr
[protected]
 

Definition at line 3009 of file glGraphicsStateGuardian.cxx.

References PixelBuffer::_image, CPT(), PointerToArray< unsigned char >::empty(), PixelBuffer::F_depth_component, PixelBuffer::F_rgb, PixelBuffer::F_rgb12, PixelBuffer::F_rgb5, PixelBuffer::F_rgb8, PixelBuffer::F_rgba, PixelBuffer::F_rgba12, PixelBuffer::F_rgba4, PixelBuffer::F_rgba5, PixelBuffer::F_rgba8, PixelBuffer::F_rgbm, get_external_image_format(), PixelBuffer::get_format(), PixelBuffer::get_image_type(), get_image_type(), WindowProperties::get_x_size(), PixelBuffer::get_xorg(), PixelBuffer::get_xsize(), WindowProperties::get_y_size(), PixelBuffer::get_yorg(), PixelBuffer::get_ysize(), RenderAttrib::M_always, RenderAttrib::M_none, ColorWriteAttrib::M_on, DepthWriteAttrib::M_on, GraphicsStateGuardian::modify_state(), NULL, PointerToArray< unsigned char >::p(), pb, GraphicsStateGuardian::pop_display_region(), prepare_display_region(), GraphicsStateGuardian::push_display_region(), report_gl_errors, GraphicsStateGuardian::set_transform(), and set_unpack_alignment().

Referenced by draw_pixel_buffer(), and restore_frame_buffer().

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

Implements GraphicsStateGuardianBase.

Definition at line 538 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::_color_transform_enabled, GraphicsStateGuardian::_draw_primitive_pcollector, GraphicsStateGuardian::_vertices_other_pcollector, PStatCollector::add_level(), call_glPointSize(), G_OVERALL, G_PER_PRIM, G_PER_VERTEX, Geom::get_num_prims(), Geom::get_num_vertices(), GeomPoint::get_size(), GeomIssuer::issue_color(), GraphicsStateGuardian::issue_color(), issue_color_gl(), GeomIssuer::issue_normal(), issue_normal_gl(), issue_scene_graph_color(), GeomIssuer::issue_texcoord(), issue_texcoord_gl(), issue_transformed_color_gl(), GeomIssuer::issue_vertex(), issue_vertex_gl(), GeomIssuer::IssueColor, Geom::make_color_iterator(), Geom::make_normal_iterator(), Geom::make_texcoord_iterator(), Geom::make_vertex_iterator(), and report_gl_errors.

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

Implements GraphicsStateGuardianBase.

Definition at line 1040 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::_color_transform_enabled, GraphicsStateGuardian::_draw_primitive_pcollector, GraphicsStateGuardian::_vertices_other_pcollector, PStatCollector::add_level(), call_glShadeModel(), DO_PSTATS_STUFF, G_COLOR, G_NORMAL, G_OVERALL, G_PER_PRIM, G_PER_VERTEX, Geom::get_lengths(), Geom::get_num_prims(), Geom::get_num_vertices(), GeomIssuer::issue_color(), GraphicsStateGuardian::issue_color(), issue_color_gl(), GeomIssuer::issue_normal(), issue_normal_gl(), issue_scene_graph_color(), GeomIssuer::issue_texcoord(), issue_texcoord_gl(), issue_transformed_color_gl(), GeomIssuer::issue_vertex(), issue_vertex_gl(), GeomIssuer::IssueColor, Geom::make_color_iterator(), Geom::make_normal_iterator(), Geom::make_texcoord_iterator(), Geom::make_vertex_iterator(), report_gl_errors, PStatCollector::start(), PStatCollector::stop(), v, GraphicsStateGuardian::wants_colors(), and wants_normals().

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

Implements GraphicsStateGuardianBase.

Definition at line 1195 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::_color_transform_enabled, GraphicsStateGuardian::_draw_primitive_pcollector, GraphicsStateGuardian::_vertices_other_pcollector, PStatCollector::add_level(), call_glShadeModel(), DO_PSTATS_STUFF, G_COLOR, G_NORMAL, G_OVERALL, G_PER_PRIM, G_PER_VERTEX, Geom::get_num_prims(), Geom::get_num_vertices(), GeomIssuer::issue_color(), GraphicsStateGuardian::issue_color(), issue_color_gl(), GeomIssuer::issue_normal(), issue_normal_gl(), issue_scene_graph_color(), GeomIssuer::issue_texcoord(), issue_texcoord_gl(), issue_transformed_color_gl(), GeomIssuer::issue_vertex(), issue_vertex_gl(), GeomIssuer::IssueColor, Geom::make_color_iterator(), Geom::make_normal_iterator(), Geom::make_texcoord_iterator(), Geom::make_vertex_iterator(), report_gl_errors, PStatCollector::start(), PStatCollector::stop(), GraphicsStateGuardian::wants_colors(), and wants_normals().

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

Implements GraphicsStateGuardianBase.

Definition at line 1462 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::_color_transform_enabled, GraphicsStateGuardian::_draw_primitive_pcollector, GraphicsStateGuardian::_vertices_other_pcollector, PStatCollector::add_level(), call_glShadeModel(), DO_PSTATS_STUFF, dot(), G_OVERALL, G_PER_PRIM, G_PER_VERTEX, Geom::get_next_vertex(), Geom::get_num_prims(), Geom::get_num_vertices(), GeomIssuer::issue_color(), GraphicsStateGuardian::issue_color(), issue_color_gl(), issue_normal_gl(), issue_scene_graph_color(), issue_texcoord_gl(), issue_transformed_color_gl(), issue_vertex_gl(), GeomIssuer::IssueColor, Geom::make_color_iterator(), Geom::make_vertex_iterator(), r, report_gl_errors, PStatCollector::start(), PStatCollector::stop(), v, Vertexf, wants_normals(), and wants_texcoords().

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

Implements GraphicsStateGuardianBase.

Definition at line 787 of file glGraphicsStateGuardian.cxx.

References WrappedSprite::_c, _dithering_enabled, GraphicsStateGuardian::_draw_primitive_pcollector, WrappedSprite::_theta, GeomSprite::_theta, WrappedSprite::_v, GraphicsStateGuardian::_vertices_other_pcollector, WrappedSprite::_x_ratio, GeomSprite::_x_texel_ratio, WrappedSprite::_y_ratio, GeomSprite::_y_texel_ratio, PStatCollector::add_level(), alpha, DO_PSTATS_STUFF, G_COLOR, G_OFF, G_OVERALL, G_PER_VERTEX, GeomSprite::get_alpha_disable(), GeomSprite::get_ll_uv(), TransparencyAttrib::get_mode(), Geom::get_next_color(), Geom::get_next_vertex(), Geom::get_num_prims(), Geom::get_num_vertices(), GeomSprite::get_texture(), GeomSprite::get_theta_bind_type(), GeomSprite::get_ur_uv(), GeomSprite::get_x_bind_type(), GeomSprite::get_y_bind_type(), RenderAttrib::M_none, Geom::make_color_iterator(), Geom::make_vertex_iterator(), GraphicsStateGuardian::modify_state(), NULL, report_gl_errors, PointerToArray< float >::reserve(), PStatCollector::start(), PStatCollector::stop(), tex, and Vertexf.

void GLGraphicsStateGuardian::draw_texture TextureContext tc,
const DisplayRegion dr,
const RenderBuffer rb
[protected]
 

Definition at line 2996 of file glGraphicsStateGuardian.cxx.

References draw_texture(), set_draw_buffer(), and tc.

void GLGraphicsStateGuardian::draw_texture TextureContext tc,
const DisplayRegion dr
[protected]
 

Definition at line 2922 of file glGraphicsStateGuardian.cxx.

References CPT(), TextureApplyAttrib::M_decal, RenderAttrib::M_none, ColorWriteAttrib::M_on, GraphicsStateGuardian::modify_state(), NULL, GraphicsStateGuardian::pop_display_region(), prepare_display_region(), GraphicsStateGuardian::push_display_region(), GraphicsStateGuardian::set_transform(), tc, and tex.

Referenced by draw_texture(), restore_frame_buffer(), and texture_to_pixel_buffer().

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

Implements GraphicsStateGuardianBase.

Definition at line 1119 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::_color_transform_enabled, GraphicsStateGuardian::_draw_primitive_pcollector, GraphicsStateGuardian::_vertices_tri_pcollector, PStatCollector::add_level(), call_glShadeModel(), G_COLOR, G_NORMAL, G_OVERALL, G_PER_PRIM, G_PER_VERTEX, Geom::get_num_prims(), Geom::get_num_vertices(), GeomIssuer::issue_color(), GraphicsStateGuardian::issue_color(), issue_color_gl(), GeomIssuer::issue_normal(), issue_normal_gl(), issue_scene_graph_color(), GeomIssuer::issue_texcoord(), issue_texcoord_gl(), issue_transformed_color_gl(), GeomIssuer::issue_vertex(), issue_vertex_gl(), GeomIssuer::IssueColor, Geom::make_color_iterator(), Geom::make_normal_iterator(), Geom::make_texcoord_iterator(), Geom::make_vertex_iterator(), report_gl_errors, PStatCollector::start(), PStatCollector::stop(), GraphicsStateGuardian::wants_colors(), and wants_normals().

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

Implements GraphicsStateGuardianBase.

Definition at line 1365 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::_color_transform_enabled, GraphicsStateGuardian::_draw_primitive_pcollector, GraphicsStateGuardian::_vertices_trifan_pcollector, PStatCollector::add_level(), call_glShadeModel(), DO_PSTATS_STUFF, G_COLOR, G_NORMAL, G_OVERALL, G_PER_COMPONENT, G_PER_PRIM, G_PER_VERTEX, Geom::get_lengths(), Geom::get_num_prims(), Geom::get_num_vertices(), GeomIssuer::issue_color(), GraphicsStateGuardian::issue_color(), issue_color_gl(), GeomIssuer::issue_normal(), issue_normal_gl(), issue_scene_graph_color(), GeomIssuer::issue_texcoord(), issue_texcoord_gl(), issue_transformed_color_gl(), GeomIssuer::issue_vertex(), issue_vertex_gl(), GeomIssuer::IssueColor, Geom::make_color_iterator(), Geom::make_normal_iterator(), Geom::make_texcoord_iterator(), Geom::make_vertex_iterator(), report_gl_errors, PStatCollector::start(), PStatCollector::stop(), v, GraphicsStateGuardian::wants_colors(), and wants_normals().

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

Implements GraphicsStateGuardianBase.

Definition at line 1269 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::_color_transform_enabled, GraphicsStateGuardian::_draw_primitive_pcollector, GraphicsStateGuardian::_vertices_tristrip_pcollector, PStatCollector::add_level(), call_glShadeModel(), DO_PSTATS_STUFF, G_COLOR, G_NORMAL, G_OVERALL, G_PER_COMPONENT, G_PER_PRIM, G_PER_VERTEX, Geom::get_lengths(), Geom::get_num_prims(), Geom::get_num_vertices(), GeomIssuer::issue_color(), GraphicsStateGuardian::issue_color(), issue_color_gl(), GeomIssuer::issue_normal(), issue_normal_gl(), issue_scene_graph_color(), GeomIssuer::issue_texcoord(), issue_texcoord_gl(), issue_transformed_color_gl(), GeomIssuer::issue_vertex(), issue_vertex_gl(), GeomIssuer::IssueColor, Geom::make_color_iterator(), Geom::make_normal_iterator(), Geom::make_texcoord_iterator(), Geom::make_vertex_iterator(), report_gl_errors, PStatCollector::start(), PStatCollector::stop(), v, GraphicsStateGuardian::wants_colors(), and wants_normals().

void GLGraphicsStateGuardian::dump_state void   ) 
 

Definition at line 4053 of file glGraphicsStateGuardian.cxx.

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

Referenced by issue_alpha_test().

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

Referenced by set_blend_mode().

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

Reimplemented from GraphicsStateGuardian.

Definition at line 3585 of file glGraphicsStateGuardian.cxx.

References get_clip_plane_id().

INLINE void GLGraphicsStateGuardian::enable_depth_test bool  val  )  [protected]
 

Referenced by issue_depth_test().

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

Referenced by issue_fog().

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

Reimplemented from GraphicsStateGuardian.

Definition at line 3508 of file glGraphicsStateGuardian.cxx.

References get_light_id().

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

Reimplemented from GraphicsStateGuardian.

Definition at line 3479 of file glGraphicsStateGuardian.cxx.

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

Referenced by reset().

INLINE void GLGraphicsStateGuardian::enable_multisample bool  val  )  [protected]
 

Referenced by reset().

INLINE void GLGraphicsStateGuardian::enable_multisample_alpha_mask bool  val  )  [protected]
 

Referenced by set_blend_mode().

INLINE void GLGraphicsStateGuardian::enable_multisample_alpha_one bool  val  )  [protected]
 

Referenced by set_blend_mode().

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

INLINE void GLGraphicsStateGuardian::enable_polygon_offset bool  val  )  [protected]
 

Referenced by issue_depth_offset().

INLINE void GLGraphicsStateGuardian::enable_scissor bool  val  )  [protected]
 

Referenced by prepare_display_region().

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

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

Referenced by issue_texture().

void GLGraphicsStateGuardian::end_bind_clip_planes  )  [protected, virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 3652 of file glGraphicsStateGuardian.cxx.

void GLGraphicsStateGuardian::end_bind_lights  )  [protected, virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 3552 of file glGraphicsStateGuardian.cxx.

void GLGraphicsStateGuardian::end_frame  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 527 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::end_frame(), and report_gl_errors.

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

Reimplemented from GraphicsStateGuardian.

Reimplemented in glxGraphicsStateGuardian, and wglGraphicsStateGuardian.

Definition at line 327 of file glGraphicsStateGuardian.h.

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

void GLGraphicsStateGuardian::free_pointers  )  [protected, virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 3766 of file glGraphicsStateGuardian.cxx.

Referenced by reset().

TypeHandle GLGraphicsStateGuardian::get_class_type void   )  [static]
 

Reimplemented from GraphicsStateGuardian.

Reimplemented in glxGraphicsStateGuardian, and wglGraphicsStateGuardian.

Definition at line 4012 of file glGraphicsStateGuardian.cxx.

References _type_handle.

Referenced by get_type(), wglGraphicsStateGuardian::init_type(), and glxGraphicsStateGuardian::init_type().

INLINE GLenum GLGraphicsStateGuardian::get_clip_plane_id int  index  )  const [protected]
 

Referenced by bind_clip_plane(), and enable_clip_plane().

GLenum GLGraphicsStateGuardian::get_external_image_format PixelBuffer::Format  format  )  [protected]
 

Definition at line 3240 of file glGraphicsStateGuardian.cxx.

References PixelBuffer::F_alpha, PixelBuffer::F_blue, PixelBuffer::F_color_index, PixelBuffer::F_depth_component, PixelBuffer::F_green, PixelBuffer::F_luminance, PixelBuffer::F_luminance_alpha, PixelBuffer::F_luminance_alphamask, PixelBuffer::F_red, PixelBuffer::F_rgb, PixelBuffer::F_rgb12, PixelBuffer::F_rgb332, PixelBuffer::F_rgb5, PixelBuffer::F_rgb8, PixelBuffer::F_rgba, PixelBuffer::F_rgba12, PixelBuffer::F_rgba4, PixelBuffer::F_rgba5, PixelBuffer::F_rgba8, PixelBuffer::F_rgbm, PixelBuffer::F_stencil_index, format, and gl_supports_bgr.

Referenced by apply_texture_immediate(), build_phony_mipmap_level(), copy_pixel_buffer(), draw_pixel_buffer(), and save_mipmap_images().

GLenum GLGraphicsStateGuardian::get_fog_mode_type Fog::Mode  m  )  const [protected]
 

Definition at line 3367 of file glGraphicsStateGuardian.cxx.

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

Referenced by apply_fog().

GLenum GLGraphicsStateGuardian::get_image_type PixelBuffer::Type  type  )  [protected]
 

Definition at line 3214 of file glGraphicsStateGuardian.cxx.

References GL_UNSIGNED_BYTE_3_3_2_EXT, PixelBuffer::T_float, PixelBuffer::T_unsigned_byte, PixelBuffer::T_unsigned_byte_332, and PixelBuffer::T_unsigned_short.

Referenced by apply_texture_immediate(), build_phony_mipmap_level(), copy_pixel_buffer(), draw_pixel_buffer(), and save_mipmap_images().

CoordinateSystem GLGraphicsStateGuardian::get_internal_coordinate_system  )  const [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 2547 of file glGraphicsStateGuardian.cxx.

References CS_yup_right.

GLenum GLGraphicsStateGuardian::get_internal_image_format PixelBuffer::Format  format  )  [protected]
 

Definition at line 3296 of file glGraphicsStateGuardian.cxx.

References PixelBuffer::F_alpha, PixelBuffer::F_blue, PixelBuffer::F_green, PixelBuffer::F_luminance, PixelBuffer::F_luminance_alpha, PixelBuffer::F_luminance_alphamask, PixelBuffer::F_red, PixelBuffer::F_rgb, PixelBuffer::F_rgb12, PixelBuffer::F_rgb332, PixelBuffer::F_rgb5, PixelBuffer::F_rgb8, PixelBuffer::F_rgba, PixelBuffer::F_rgba12, PixelBuffer::F_rgba4, PixelBuffer::F_rgba5, PixelBuffer::F_rgba8, PixelBuffer::F_rgbm, and format.

Referenced by apply_texture_immediate(), build_phony_mipmap_level(), and copy_texture().

INLINE GLenum GLGraphicsStateGuardian::get_light_id int  index  )  const [protected]
 

Referenced by bind_light(), and enable_light().

GLint GLGraphicsStateGuardian::get_texture_apply_mode_type TextureApplyAttrib::Mode  am  )  const [protected]
 

Definition at line 3348 of file glGraphicsStateGuardian.cxx.

References TextureApplyAttrib::M_add, TextureApplyAttrib::M_blend, TextureApplyAttrib::M_decal, and TextureApplyAttrib::M_replace.

Referenced by issue_texture_apply().

GLenum GLGraphicsStateGuardian::get_texture_filter_type Texture::FilterType  ft  )  [protected]
 

Definition at line 3171 of file glGraphicsStateGuardian.cxx.

References Texture::FT_invalid, Texture::FT_linear, Texture::FT_linear_mipmap_linear, Texture::FT_linear_mipmap_nearest, Texture::FT_nearest_mipmap_linear, and Texture::FT_nearest_mipmap_nearest.

Referenced by specify_texture().

GLenum GLGraphicsStateGuardian::get_texture_wrap_mode Texture::WrapMode  wm  )  [protected]
 

Definition at line 3144 of file glGraphicsStateGuardian.cxx.

References Texture::WM_border_color, Texture::WM_clamp, Texture::WM_invalid, Texture::WM_mirror, Texture::WM_mirror_once, and Texture::WM_repeat.

Referenced by specify_texture().

TypeHandle GLGraphicsStateGuardian::get_type void   )  const [virtual]
 

Reimplemented from GraphicsStateGuardian.

Reimplemented in glxGraphicsStateGuardian, and wglGraphicsStateGuardian.

Definition at line 4008 of file glGraphicsStateGuardian.cxx.

References get_class_type().

void GLGraphicsStateGuardian::init_type void   )  [static]
 

Reimplemented from GraphicsStateGuardian.

Reimplemented in glxGraphicsStateGuardian, and wglGraphicsStateGuardian.

Definition at line 4016 of file glGraphicsStateGuardian.cxx.

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

Referenced by init_libglgsg(), wglGraphicsStateGuardian::init_type(), and glxGraphicsStateGuardian::init_type().

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

Reimplemented from GraphicsStateGuardianBase.

Definition at line 2280 of file glGraphicsStateGuardian.cxx.

References call_glAlphaFunc(), enable_alpha_test(), AlphaTestAttrib::get_mode(), AlphaTestAttrib::get_reference_alpha(), RenderAttrib::M_never, RenderAttrib::M_none, mode, PANDA_TO_GL_COMPAREFUNC, and RenderAttrib::PandaCompareFunc.

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

Reimplemented from GraphicsStateGuardian.

Definition at line 2232 of file glGraphicsStateGuardian.cxx.

References ColorWriteAttrib::get_mode(), GraphicsStateGuardian::issue_color_write(), mode, and report_gl_errors.

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

Reimplemented from GraphicsStateGuardianBase.

Definition at line 2313 of file glGraphicsStateGuardian.cxx.

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

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

Reimplemented from GraphicsStateGuardianBase.

Definition at line 2360 of file glGraphicsStateGuardian.cxx.

References enable_polygon_offset(), DepthOffsetAttrib::get_offset(), and report_gl_errors.

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

Reimplemented from GraphicsStateGuardianBase.

Definition at line 2263 of file glGraphicsStateGuardian.cxx.

References enable_depth_test(), DepthTestAttrib::get_mode(), RenderAttrib::M_none, mode, PANDA_TO_GL_COMPAREFUNC, RenderAttrib::PandaCompareFunc, and report_gl_errors.

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

Reimplemented from GraphicsStateGuardianBase.

Definition at line 2297 of file glGraphicsStateGuardian.cxx.

References DepthWriteAttrib::get_mode(), mode, and report_gl_errors.

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

Reimplemented from GraphicsStateGuardianBase.

Definition at line 2342 of file glGraphicsStateGuardian.cxx.

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

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

Reimplemented from GraphicsStateGuardianBase.

Definition at line 2176 of file glGraphicsStateGuardian.cxx.

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

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

Reimplemented from GraphicsStateGuardianBase.

Definition at line 2194 of file glGraphicsStateGuardian.cxx.

References call_glLineWidth(), call_glPolygonMode(), RenderModeAttrib::get_line_width(), RenderModeAttrib::get_mode(), RenderModeAttrib::M_wireframe, mode, and report_gl_errors.

INLINE void GLGraphicsStateGuardian::issue_scene_graph_color  )  [protected]
 

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

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

Reimplemented from GraphicsStateGuardianBase.

Definition at line 2146 of file glGraphicsStateGuardian.cxx.

References TexMatrixAttrib::get_mat(), and report_gl_errors.

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

Reimplemented from GraphicsStateGuardianBase.

Definition at line 2158 of file glGraphicsStateGuardian.cxx.

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

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

Reimplemented from GraphicsStateGuardianBase.

Definition at line 2220 of file glGraphicsStateGuardian.cxx.

References TextureApplyAttrib::get_mode(), get_texture_apply_mode_type(), GLint(), and report_gl_errors.

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

Reimplemented from GraphicsStateGuardian.

Definition at line 2129 of file glGraphicsStateGuardian.cxx.

References report_gl_errors, and transform.

void GLGraphicsStateGuardian::issue_transformed_color const Colorf color  )  const
 

Definition at line 3442 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::_current_color_offset, GraphicsStateGuardian::_current_color_scale, and Colorf.

Referenced by issue_transformed_color_gl().

GraphicsStateGuardian* GLGraphicsStateGuardian::make_GlGraphicsStateGuardian const FactoryParams params  )  [static]
 

void GLGraphicsStateGuardian::prepare_display_region  )  [virtual]
 

Implements GraphicsStateGuardian.

Definition at line 426 of file glGraphicsStateGuardian.cxx.

References b, call_glScissor(), call_glViewport(), enable_scissor(), GLint(), height, report_gl_errors, w, width, x, and y.

Referenced by draw_pixel_buffer(), and draw_texture().

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

Reimplemented from GraphicsStateGuardian.

Definition at line 1670 of file glGraphicsStateGuardian.cxx.

References GLGeomNodeContext::_dynamic_geoms, GLGeomNodeContext::_index, GraphicsStateGuardian::_normals_enabled, _texturing_enabled, GraphicsStateGuardian::_vertex_colors_enabled, GraphicsStateGuardian::_vertices_other_pcollector, GraphicsStateGuardian::_vertices_tri_pcollector, GraphicsStateGuardian::_vertices_trifan_pcollector, GraphicsStateGuardian::_vertices_tristrip_pcollector, dDrawable::draw(), GeomNode::get_geom(), PStatCollector::get_level(), dDrawable::is_dynamic(), GraphicsStateGuardian::mark_prepared_geom_node(), and NULL.

bool GLGraphicsStateGuardian::prepare_lens  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 463 of file glGraphicsStateGuardian.cxx.

References CS_yup_right, NULL, and report_gl_errors.

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

Reimplemented from GraphicsStateGuardian.

Definition at line 1553 of file glGraphicsStateGuardian.cxx.

References GLTextureContext::_index, GLTextureContext::_priority, apply_texture_immediate(), bind_texture(), GLint(), ISPOW2, GraphicsStateGuardian::mark_prepared_texture(), report_gl_errors, specify_texture(), and tex.

void GLGraphicsStateGuardian::print_gfx_visual  ) 
 

Definition at line 3390 of file glGraphicsStateGuardian.cxx.

References GL_MULTISAMPLE_SGIS, GL_SAMPLES_SGIS, GLboolean(), and GLint().

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

Reimplemented from GraphicsStateGuardian.

Referenced by save_mipmap_images(), and texture_to_pixel_buffer().

void GLGraphicsStateGuardian::release_geom_node GeomNodeContext gnc  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 1806 of file glGraphicsStateGuardian.cxx.

References GLGeomNodeContext::_index, GeomNodeContext::_node, DCAST, NULL, and GraphicsStateGuardian::unmark_prepared_geom_node().

void GLGraphicsStateGuardian::release_texture TextureContext tc  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 1635 of file glGraphicsStateGuardian.cxx.

References GraphicsStateGuardian::_closing_gsg, GLTextureContext::_index, Texture::clear_gsg(), DCAST, report_gl_errors, tc, tex, and GraphicsStateGuardian::unmark_prepared_texture().

INLINE void GLGraphicsStateGuardian::report_errors int  line,
const char *  source_file
[static]
 

void GLGraphicsStateGuardian::report_errors_loop int  line,
const char *  source_file,
GLenum  error_code
[static, protected]
 

Definition at line 2577 of file glGraphicsStateGuardian.cxx.

References count, and NULL.

void GLGraphicsStateGuardian::reset  )  [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 188 of file glGraphicsStateGuardian.cxx.

References _alpha_func, _alpha_func_ref, _alpha_test_enabled, _blend_dest_func, _blend_enabled, _blend_source_func, GraphicsStateGuardian::_buffer_mask, _clear_accum_alpha, _clear_accum_blue, _clear_accum_green, _clear_accum_red, _clear_color_alpha, _clear_color_blue, _clear_color_green, _clear_color_red, _clear_depth, _clear_stencil, _current_projection_mat, _decal_level, _depth_mask, _depth_test_enabled, _dithering_enabled, _draw_buffer_mode, _fog_color, _fog_density, _fog_enabled, _fog_mode, _line_smooth_enabled, _line_width, _lmodel_local, _lmodel_twoside, _max_clip_planes, _max_lights, _multisample_alpha_mask_enabled, _multisample_alpha_one_enabled, _multisample_enabled, _pack_alignment, _point_size, _point_smooth_enabled, _polygon_mode, _polygon_offset_enabled, _projection_mat_stack_count, _read_buffer_mode, _scissor_enabled, _scissor_height, _scissor_width, _scissor_x, _scissor_y, _shade_model_mode, _stencil_test_enabled, _texturing_enabled, _unpack_alignment, _viewport_height, _viewport_width, _viewport_x, _viewport_y, apply_material(), CPT(), enable_line_smooth(), enable_multisample(), free_pointers(), GLboolean(), GLint(), CullFaceAttrib::M_cull_clockwise, RenderAttrib::M_less, DepthWriteAttrib::M_on, report_gl_errors, GraphicsStateGuardian::reset(), RenderBuffer::T_accum, RenderBuffer::T_color, RenderBuffer::T_depth, and RenderBuffer::T_stencil.

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

Implements GraphicsStateGuardian.

Definition at line 3807 of file glGraphicsStateGuardian.cxx.

References SavedFrameBuffer::_buffer, RenderBuffer::_buffer_type, DCAST, draw_pixel_buffer(), draw_texture(), NULL, RenderBuffer::T_back, and RenderBuffer::T_depth.

void GLGraphicsStateGuardian::save_mipmap_images Texture tex  )  [protected]
 

Definition at line 3961 of file glGraphicsStateGuardian.cxx.

References format_string(), PixelBuffer::get_component_width(), get_external_image_format(), PixelBuffer::get_format(), PixelBuffer::get_image_type(), get_image_type(), PixelBuffer::get_num_components(), Texture::get_ram_image(), PixelBuffer::get_xsize(), PixelBuffer::get_ysize(), index, NULL, pb, PT(), set_pack_alignment(), tex, and type.

Referenced by apply_texture_immediate().

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

Reimplemented from GraphicsStateGuardian.

Definition at line 3496 of file glGraphicsStateGuardian.cxx.

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

Reimplemented from GraphicsStateGuardian.

Definition at line 3666 of file glGraphicsStateGuardian.cxx.

References call_glBlendFunc(), enable_blend(), enable_multisample_alpha_mask(), enable_multisample_alpha_one(), ColorBlendAttrib::M_add, TransparencyAttrib::M_alpha, TransparencyAttrib::M_alpha_sorted, TransparencyAttrib::M_binary, TransparencyAttrib::M_dual, ColorBlendAttrib::M_multiply, ColorBlendAttrib::M_multiply_add, TransparencyAttrib::M_multisample, TransparencyAttrib::M_multisample_mask, and RenderAttrib::M_none.

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

Definition at line 2607 of file glGraphicsStateGuardian.cxx.

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

Referenced by do_clear(), draw_pixel_buffer(), and draw_texture().

INLINE void GLGraphicsStateGuardian::set_pack_alignment GLint  alignment  )  [protected]
 

Referenced by copy_pixel_buffer(), and save_mipmap_images().

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

Definition at line 2656 of file glGraphicsStateGuardian.cxx.

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

Referenced by copy_pixel_buffer(), and copy_texture().

INLINE void GLGraphicsStateGuardian::set_unpack_alignment GLint  alignment  )  [protected]
 

Referenced by apply_texture_immediate(), and draw_pixel_buffer().

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

Reimplemented from GraphicsStateGuardian.

Definition at line 3572 of file glGraphicsStateGuardian.cxx.

References _max_clip_planes.

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

Reimplemented from GraphicsStateGuardian.

Definition at line 3466 of file glGraphicsStateGuardian.cxx.

References _max_lights.

void GLGraphicsStateGuardian::specify_texture Texture tex  )  [protected]
 

Definition at line 2722 of file glGraphicsStateGuardian.cxx.

References Texture::get_magfilter(), Texture::get_minfilter(), get_texture_filter_type(), get_texture_wrap_mode(), Texture::get_wrapu(), Texture::get_wrapv(), report_gl_errors, and tex.

Referenced by apply_texture(), and prepare_texture().

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

Implements GraphicsStateGuardianBase.

Definition at line 1932 of file glGraphicsStateGuardian.cxx.

References PixelBuffer::_image, PixelBuffer::copy(), copy_pixel_buffer(), draw_texture(), PointerToArray< unsigned char >::empty(), PointerToArray< unsigned char >::empty_array(), PixelBuffer::get_num_components(), PixelBuffer::get_xsize(), PixelBuffer::get_ysize(), NULL, pb, report_gl_errors, tc, tex, and w.

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

Implements GraphicsStateGuardianBase.

Definition at line 1903 of file glGraphicsStateGuardian.cxx.

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

bool GLGraphicsStateGuardian::wants_normals void   )  const [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 2506 of file glGraphicsStateGuardian.cxx.

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

Referenced by draw_line(), draw_linestrip(), draw_polygon(), draw_quad(), draw_sphere(), draw_tri(), draw_trifan(), and draw_tristrip().

bool GLGraphicsStateGuardian::wants_texcoords void   )  const [virtual]
 

Reimplemented from GraphicsStateGuardian.

Definition at line 2516 of file glGraphicsStateGuardian.cxx.

References _texturing_enabled.

Referenced by draw_sphere().


Member Data Documentation

GLenum GLGraphicsStateGuardian::_alpha_func [protected]
 

Definition at line 286 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLclampf GLGraphicsStateGuardian::_alpha_func_ref [protected]
 

Definition at line 287 of file glGraphicsStateGuardian.h.

Referenced by reset().

bool GLGraphicsStateGuardian::_alpha_test_enabled [protected]
 

Definition at line 304 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLenum GLGraphicsStateGuardian::_blend_dest_func [protected]
 

Definition at line 279 of file glGraphicsStateGuardian.h.

Referenced by reset().

bool GLGraphicsStateGuardian::_blend_enabled [protected]
 

Definition at line 301 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLenum GLGraphicsStateGuardian::_blend_source_func [protected]
 

Definition at line 278 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLclampf GLGraphicsStateGuardian::_clear_accum_alpha [protected]
 

Definition at line 261 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLclampf GLGraphicsStateGuardian::_clear_accum_blue [protected]
 

Definition at line 261 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLclampf GLGraphicsStateGuardian::_clear_accum_green [protected]
 

Definition at line 261 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLclampf GLGraphicsStateGuardian::_clear_accum_red [protected]
 

Definition at line 261 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLclampf GLGraphicsStateGuardian::_clear_color_alpha [protected]
 

Definition at line 257 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLclampf GLGraphicsStateGuardian::_clear_color_blue [protected]
 

Definition at line 257 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLclampf GLGraphicsStateGuardian::_clear_color_green [protected]
 

Definition at line 257 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLclampf GLGraphicsStateGuardian::_clear_color_red [protected]
 

Definition at line 257 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLclampd GLGraphicsStateGuardian::_clear_depth [protected]
 

Definition at line 259 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLint GLGraphicsStateGuardian::_clear_stencil [protected]
 

Definition at line 260 of file glGraphicsStateGuardian.h.

Referenced by reset().

LMatrix4f GLGraphicsStateGuardian::_current_projection_mat [protected]
 

Definition at line 313 of file glGraphicsStateGuardian.h.

Referenced by reset().

int GLGraphicsStateGuardian::_decal_level [protected]
 

Definition at line 306 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLboolean GLGraphicsStateGuardian::_depth_mask [protected]
 

Definition at line 280 of file glGraphicsStateGuardian.h.

Referenced by do_clear(), and reset().

bool GLGraphicsStateGuardian::_depth_test_enabled [protected]
 

Definition at line 302 of file glGraphicsStateGuardian.h.

Referenced by reset().

bool GLGraphicsStateGuardian::_dithering_enabled [protected]
 

Definition at line 308 of file glGraphicsStateGuardian.h.

Referenced by draw_sprite(), and reset().

GLenum GLGraphicsStateGuardian::_draw_buffer_mode [protected]
 

Definition at line 263 of file glGraphicsStateGuardian.h.

Referenced by reset().

Colorf GLGraphicsStateGuardian::_fog_color [protected]
 

Definition at line 285 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLfloat GLGraphicsStateGuardian::_fog_density [protected]
 

Definition at line 284 of file glGraphicsStateGuardian.h.

Referenced by reset().

bool GLGraphicsStateGuardian::_fog_enabled [protected]
 

Definition at line 303 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLfloat GLGraphicsStateGuardian::_fog_end [protected]
 

Definition at line 283 of file glGraphicsStateGuardian.h.

GLint GLGraphicsStateGuardian::_fog_mode [protected]
 

Definition at line 281 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLfloat GLGraphicsStateGuardian::_fog_start [protected]
 

Definition at line 282 of file glGraphicsStateGuardian.h.

bool GLGraphicsStateGuardian::_line_smooth_enabled [protected]
 

Definition at line 294 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLfloat GLGraphicsStateGuardian::_line_width [protected]
 

Definition at line 276 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLboolean GLGraphicsStateGuardian::_lmodel_local [protected]
 

Definition at line 274 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLboolean GLGraphicsStateGuardian::_lmodel_twoside [protected]
 

Definition at line 275 of file glGraphicsStateGuardian.h.

Referenced by reset().

int GLGraphicsStateGuardian::_max_clip_planes [protected]
 

Definition at line 311 of file glGraphicsStateGuardian.h.

Referenced by reset(), and slot_new_clip_plane().

int GLGraphicsStateGuardian::_max_lights [protected]
 

Definition at line 310 of file glGraphicsStateGuardian.h.

Referenced by reset(), and slot_new_light().

bool GLGraphicsStateGuardian::_multisample_alpha_mask_enabled [protected]
 

Definition at line 300 of file glGraphicsStateGuardian.h.

Referenced by reset().

bool GLGraphicsStateGuardian::_multisample_alpha_one_enabled [protected]
 

Definition at line 299 of file glGraphicsStateGuardian.h.

Referenced by reset().

bool GLGraphicsStateGuardian::_multisample_enabled [protected]
 

Definition at line 293 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLint GLGraphicsStateGuardian::_pack_alignment [protected]
 

Definition at line 290 of file glGraphicsStateGuardian.h.

Referenced by reset().

int GLGraphicsStateGuardian::_pass_number [protected]
 

Definition at line 318 of file glGraphicsStateGuardian.h.

GLfloat GLGraphicsStateGuardian::_point_size [protected]
 

Definition at line 277 of file glGraphicsStateGuardian.h.

Referenced by reset().

bool GLGraphicsStateGuardian::_point_smooth_enabled [protected]
 

Definition at line 295 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLenum GLGraphicsStateGuardian::_polygon_mode [protected]
 

Definition at line 288 of file glGraphicsStateGuardian.h.

Referenced by reset().

bool GLGraphicsStateGuardian::_polygon_offset_enabled [protected]
 

Definition at line 305 of file glGraphicsStateGuardian.h.

Referenced by reset().

int GLGraphicsStateGuardian::_projection_mat_stack_count [protected]
 

Definition at line 314 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLenum GLGraphicsStateGuardian::_read_buffer_mode [protected]
 

Definition at line 264 of file glGraphicsStateGuardian.h.

Referenced by reset().

bool GLGraphicsStateGuardian::_scissor_enabled [protected]
 

Definition at line 296 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLsizei GLGraphicsStateGuardian::_scissor_height [protected]
 

Definition at line 269 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLsizei GLGraphicsStateGuardian::_scissor_width [protected]
 

Definition at line 268 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLint GLGraphicsStateGuardian::_scissor_x [protected]
 

Definition at line 266 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLint GLGraphicsStateGuardian::_scissor_y [protected]
 

Definition at line 267 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLenum GLGraphicsStateGuardian::_shade_model_mode [protected]
 

Definition at line 265 of file glGraphicsStateGuardian.h.

Referenced by reset().

bool GLGraphicsStateGuardian::_stencil_test_enabled [protected]
 

Definition at line 298 of file glGraphicsStateGuardian.h.

Referenced by reset().

bool GLGraphicsStateGuardian::_texturing_enabled [protected]
 

Definition at line 297 of file glGraphicsStateGuardian.h.

Referenced by prepare_geom_node(), reset(), and wants_texcoords().

TypeHandle GLGraphicsStateGuardian::_type_handle [static, private]
 

Reimplemented from GraphicsStateGuardian.

Reimplemented in glxGraphicsStateGuardian, and wglGraphicsStateGuardian.

Definition at line 79 of file glGraphicsStateGuardian.cxx.

Referenced by get_class_type(), and init_type().

GLint GLGraphicsStateGuardian::_unpack_alignment [protected]
 

Definition at line 291 of file glGraphicsStateGuardian.h.

Referenced by reset().

PStatCollector GLGraphicsStateGuardian::_vertices_display_list_pcollector [static]
 

Definition at line 329 of file glGraphicsStateGuardian.h.

Referenced by draw_geom_node().

GLsizei GLGraphicsStateGuardian::_viewport_height [protected]
 

Definition at line 273 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLsizei GLGraphicsStateGuardian::_viewport_width [protected]
 

Definition at line 272 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLint GLGraphicsStateGuardian::_viewport_x [protected]
 

Definition at line 270 of file glGraphicsStateGuardian.h.

Referenced by reset().

GLint GLGraphicsStateGuardian::_viewport_y [protected]
 

Definition at line 271 of file glGraphicsStateGuardian.h.

Referenced by reset().


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