#include "crGraphicsStateGuardian.h"#include "crSavedFrameBuffer.h"#include "crTextureContext.h"#include "crGeomNodeContext.h"#include "config_crgsg.h"#include "config_util.h"#include "directRenderTraverser.h"#include "cullTraverser.h"#include "displayRegion.h"#include "lensNode.h"#include "camera.h"#include "renderBuffer.h"#include "geom.h"#include "geomIssuer.h"#include "graphicsWindow.h"#include "graphicsChannel.h"#include "lens.h"#include "get_rel_pos.h"#include "perspectiveLens.h"#include "directionalLight.h"#include "pointLight.h"#include "spotlight.h"#include "GL/glu.h"#include "textureAttrib.h"#include "lightAttrib.h"#include "cullFaceAttrib.h"#include "transparencyAttrib.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 | MAXGLERRORSREPORTED 20 |
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) |
| int | binary_log_cap (const int x) |
| void | report_errors_loop (GLenum error_code) |
| The internal implementation of report_errors(). | |
| int | compute_cr_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. | |
| 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. | |
Variables | |
| SPUDispatchTable | chromium |
| int | logs [] |
Definition in file crGraphicsStateGuardian.cxx.
|
|
|
|
|
Definition at line 1845 of file crGraphicsStateGuardian.cxx. |
|
||||||||||||||||||||
|
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 2835 of file crGraphicsStateGuardian.cxx. References Texture::WM_border_color, Texture::WM_invalid, Texture::WM_mirror, and Texture::WM_mirror_once. Referenced by CRGraphicsStateGuardian::set_read_buffer(). |
|
||||||||||||||||
|
Definition at line 118 of file crGraphicsStateGuardian.cxx. References chromium. Referenced by CRGraphicsStateGuardian::prepare_lens(). |
|
||||||||||||||||
|
Definition at line 102 of file crGraphicsStateGuardian.cxx. References chromium. Referenced by CRGraphicsStateGuardian::prepare_lens(). |
|
||||||||||||||||
|
Definition at line 110 of file crGraphicsStateGuardian.cxx. References chromium. Referenced by CRGraphicsStateGuardian::prepare_lens(). |
|
||||||||||||||||
|
Definition at line 126 of file crGraphicsStateGuardian.cxx. References Colorf. Referenced by CRGraphicsStateGuardian::prepare_lens(). |
|
||||||||||||||||
|
Definition at line 94 of file crGraphicsStateGuardian.cxx. References chromium. Referenced by CRGraphicsStateGuardian::prepare_lens(). |
|
|
The internal implementation of report_errors(). Don't call this function; use report_errors() instead. Definition at line 2641 of file crGraphicsStateGuardian.cxx. |
|
||||||||||||||||
|
Recopies the given array of pixels, converting from BGR to RGB arrangement.
Definition at line 2904 of file crGraphicsStateGuardian.cxx. References GL_UNSIGNED_BYTE_3_3_2_EXT, PixelBuffer::T_float, PixelBuffer::T_unsigned_byte_332, and PixelBuffer::T_unsigned_short. |
|
||||||||||||||||
|
Recopies the given array of pixels, converting from BGRA to RGBA arrangement.
Definition at line 2925 of file crGraphicsStateGuardian.cxx. References cr_supports_bgr, PixelBuffer::F_alpha, PixelBuffer::F_blue, PixelBuffer::F_color_index, PixelBuffer::F_depth_component, PixelBuffer::F_green, PixelBuffer::F_red, PixelBuffer::F_rgb, PixelBuffer::F_rgb12, PixelBuffer::F_rgb332, PixelBuffer::F_rgb5, PixelBuffer::F_rgb8, PixelBuffer::F_rgba, PixelBuffer::F_rgba4, PixelBuffer::F_rgba5, PixelBuffer::F_rgbm, and PixelBuffer::F_stencil_index. |
|
|
Definition at line 87 of file crGraphicsStateGuardian.cxx. |
|
|
Initial value: { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048,
4096, 0 }
Definition at line 1840 of file crGraphicsStateGuardian.cxx. |
1.3