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

glGraphicsStateGuardian.cxx File Reference

#include "glGraphicsStateGuardian.h"
#include "glSavedFrameBuffer.h"
#include "glTextureContext.h"
#include "glGeomNodeContext.h"
#include "config_glgsg.h"
#include "config_util.h"
#include "displayRegion.h"
#include "renderBuffer.h"
#include "geom.h"
#include "geomIssuer.h"
#include "graphicsWindow.h"
#include "graphicsChannel.h"
#include "lens.h"
#include "perspectiveLens.h"
#include "directionalLight.h"
#include "pointLight.h"
#include "spotlight.h"
#include "planeNode.h"
#include "GL/glu.h"
#include "textureAttrib.h"
#include "lightAttrib.h"
#include "cullFaceAttrib.h"
#include "transparencyAttrib.h"
#include "alphaTestAttrib.h"
#include "depthTestAttrib.h"
#include "depthWriteAttrib.h"
#include "colorWriteAttrib.h"
#include "texMatrixAttrib.h"
#include "materialAttrib.h"
#include "renderModeAttrib.h"
#include "fogAttrib.h"
#include "depthOffsetAttrib.h"
#include "fog.h"
#include "clockObject.h"
#include "string_utils.h"
#include "nodePath.h"
#include "dcast.h"
#include "pvector.h"
#include <algorithm>

Go to the source code of this file.

Compounds

struct  draw_sprite_vertex_less
class  WrappedSprite

Defines

#define PANDA_TO_GL_COMPAREFUNC(PANDACMPFUNC)   (PANDACMPFUNC-1 +0x200)

Functions

void issue_vertex_gl (const Geom *geom, Geom::VertexIterator &viterator, GraphicsStateGuardianBase *)
void issue_normal_gl (const Geom *geom, Geom::NormalIterator &niterator, GraphicsStateGuardianBase *)
void issue_texcoord_gl (const Geom *geom, Geom::TexCoordIterator &tciterator, GraphicsStateGuardianBase *)
void issue_color_gl (const Geom *geom, Geom::ColorIterator &citerator, GraphicsStateGuardianBase *)
void issue_transformed_color_gl (const Geom *geom, Geom::ColorIterator &citerator, GraphicsStateGuardianBase *gsg)
void uchar_bgr_to_rgb (unsigned char *dest, const unsigned char *source, int num_pixels)
void uchar_bgra_to_rgba (unsigned char *dest, const unsigned char *source, int num_pixels)
int compute_gl_image_size (int xsize, int ysize, int external_format, int type)
 PT (SavedFrameBuffer) GLGraphicsStateGuardian
 CPT (RenderState) GLGraphicsStateGuardian


Define Documentation

#define PANDA_TO_GL_COMPAREFUNC PANDACMPFUNC   )     (PANDACMPFUNC-1 +0x200)
 

Definition at line 2255 of file glGraphicsStateGuardian.cxx.

Referenced by GLGraphicsStateGuardian::issue_alpha_test(), and GLGraphicsStateGuardian::issue_depth_test().


Function Documentation

int compute_gl_image_size int  xsize,
int  ysize,
int  external_format,
int  type
[static]
 

Definition at line 2751 of file glGraphicsStateGuardian.cxx.

References GL_UNSIGNED_BYTE_3_3_2_EXT.

Referenced by GLGraphicsStateGuardian::apply_texture_immediate().

CPT RenderState   ) 
 

Definition at line 3830 of file glGraphicsStateGuardian.cxx.

References CPT, and NULL.

void issue_color_gl const Geom geom,
Geom::ColorIterator citerator,
GraphicsStateGuardianBase
[static]
 

Definition at line 110 of file glGraphicsStateGuardian.cxx.

References Colorf, and Geom::get_next_color().

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

void issue_normal_gl const Geom geom,
Geom::NormalIterator niterator,
GraphicsStateGuardianBase
[static]
 

Definition at line 94 of file glGraphicsStateGuardian.cxx.

References Geom::get_next_normal(), and Normalf.

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

void issue_texcoord_gl const Geom geom,
Geom::TexCoordIterator tciterator,
GraphicsStateGuardianBase
[static]
 

Definition at line 102 of file glGraphicsStateGuardian.cxx.

References Geom::get_next_texcoord(), and TexCoordf.

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

void issue_transformed_color_gl const Geom geom,
Geom::ColorIterator citerator,
GraphicsStateGuardianBase gsg
[static]
 

Definition at line 118 of file glGraphicsStateGuardian.cxx.

References Colorf, DCAST, Geom::get_next_color(), and GLGraphicsStateGuardian::issue_transformed_color().

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

void issue_vertex_gl const Geom geom,
Geom::VertexIterator viterator,
GraphicsStateGuardianBase
[static]
 

Definition at line 86 of file glGraphicsStateGuardian.cxx.

References Geom::get_next_vertex(), and Vertexf.

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

PT SavedFrameBuffer   ) 
 

Definition at line 3779 of file glGraphicsStateGuardian.cxx.

References buffer, PixelBuffer::depth_buffer(), DisplayRegion::get_pixel_height(), DisplayRegion::get_pixel_width(), RenderBuffer::T_back, and RenderBuffer::T_depth.

void uchar_bgr_to_rgb unsigned char *  dest,
const unsigned char *  source,
int  num_pixels
[static]
 

Definition at line 131 of file glGraphicsStateGuardian.cxx.

Referenced by GLGraphicsStateGuardian::apply_texture_immediate(), CRGraphicsStateGuardian::apply_texture_immediate(), and GLGraphicsStateGuardian::copy_pixel_buffer().

void uchar_bgra_to_rgba unsigned char *  dest,
const unsigned char *  source,
int  num_pixels
[static]
 

Definition at line 148 of file glGraphicsStateGuardian.cxx.

Referenced by GLGraphicsStateGuardian::apply_texture_immediate(), CRGraphicsStateGuardian::apply_texture_immediate(), and GLGraphicsStateGuardian::copy_pixel_buffer().


Generated on Fri Apr 18 00:10:49 2003 for Panda by doxygen1.3