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

panda/src/glgsg/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
 CSN, 7/11/00. More...


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)
 Recopies the given array of pixels, converting from BGR to RGB arrangement.

void uchar_bgra_to_rgba (unsigned char *dest, const unsigned char *source, int num_pixels)
 Recopies the given array of pixels, converting from BGRA to RGBA arrangement.

int compute_gl_image_size (int xsize, int ysize, int external_format, int type)
 Calculates how many bytes GL will expect to read for a texture image, based on the number of pixels and the GL format and type.


Detailed Description

Definition in file glGraphicsStateGuardian.cxx.


Define Documentation

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

Definition at line 2396 of file glGraphicsStateGuardian.cxx.

Referenced by GLGraphicsStateGuardian::issue_tex_matrix(), and GLGraphicsStateGuardian::issue_transform().


Function Documentation

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

Calculates how many bytes GL will expect to read for a texture image, based on the number of pixels and the GL format and type.

This is only used for debugging.

Definition at line 2976 of file glGraphicsStateGuardian.cxx.

Referenced by GLGraphicsStateGuardian::set_draw_buffer().

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

Definition at line 113 of file glGraphicsStateGuardian.cxx.

Referenced by GLGraphicsStateGuardian::begin_frame(), GLGraphicsStateGuardian::draw_point(), and GLGraphicsStateGuardian::draw_quad().

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

Definition at line 97 of file glGraphicsStateGuardian.cxx.

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

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

Definition at line 105 of file glGraphicsStateGuardian.cxx.

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

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

Definition at line 121 of file glGraphicsStateGuardian.cxx.

References Colorf.

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

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

Definition at line 89 of file glGraphicsStateGuardian.cxx.

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

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

Recopies the given array of pixels, converting from BGR to RGB arrangement.

Definition at line 138 of file glGraphicsStateGuardian.cxx.

Referenced by GLGraphicsStateGuardian::set_draw_buffer(), CRGraphicsStateGuardian::set_read_buffer(), and GLGraphicsStateGuardian::texture_to_pixel_buffer().

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

Recopies the given array of pixels, converting from BGRA to RGBA arrangement.

Definition at line 159 of file glGraphicsStateGuardian.cxx.

Referenced by GLGraphicsStateGuardian::set_draw_buffer(), and CRGraphicsStateGuardian::set_read_buffer().


Generated on Fri May 2 00:45:45 2003 for Panda by doxygen1.3