GLStateExtension Class Reference

#include <GLStateExtension.h>

List of all members.

Static Public Member Functions

static void setup ()
static bool hasVBO ()
static int getMaxElementVertices ()
static int getMaxElementIndices ()
static bool hasMultiTex ()
static bool hasFBO ()
static bool hasDrawRangeElements ()
static bool getNoTexSubImage ()
static bool hasCubeMap ()
static bool hasSphereMap ()
static bool hasHardwareMipmaps ()
static bool hasEnvCombine ()
static int getTextureUnits ()
static bool hasHardwareShadows ()
static bool hasBlendColor ()
static bool hasShaders ()

Static Protected Attributes

static bool envCombine_ = false
static bool multiTexDisabled_
static bool hasVBO_ = false
static bool hasFBO_ = false
static bool hasShaders_ = false
static int textureUnits_ = 0
static int maxElementVertices_ = 0
static int maxElementIndices_ = 0
static bool hasCubeMap_ = false
static bool hasSphereMap_ = false
static bool hasHardwareMipmaps_ = false
static bool noTexSubImage_ = false
static bool hasHardwareShadows_ = false
static bool hasBlendColor_ = false
static bool hasMultiTex_ = false
static bool hasDrawRangeElements_ = false

Private Member Functions

 GLStateExtension ()
 ~GLStateExtension ()


Detailed Description

Definition at line 26 of file GLStateExtension.h.


Constructor & Destructor Documentation

GLStateExtension::GLStateExtension (  )  [private]

GLStateExtension::~GLStateExtension (  )  [private]


Member Function Documentation

void GLStateExtension::setup (  )  [static]

Definition at line 43 of file GLStateExtension.cpp.

References S3D::dialogExit(), envCombine_, S3D::formatStringBuffer(), getMaxElementIndices(), getMaxElementVertices(), OptionsDisplay::getNoGLCubeMap(), OptionsDisplay::getNoGLHardwareMipmaps(), OptionsDisplay::getNoGLShaders(), OptionsDisplay::getNoGLShadows(), OptionsDisplay::getNoGLSphereMap(), OptionsDisplay::getNoGLTexSubImage(), GL_EXTENSIONS, GL_MAX_ELEMENTS_INDICES, GL_MAX_ELEMENTS_VERTICES, GL_MAX_TEXTURE_UNITS_ARB, GL_RENDERER, GL_TRUE, GL_VENDOR, GL_VERSION, GLEW_ARB_depth_texture, GLEW_ARB_fragment_shader, GLEW_ARB_multitexture, GLEW_ARB_shader_objects, GLEW_ARB_shadow, GLEW_ARB_texture_cube_map, GLEW_ARB_texture_env_combine, GLEW_ARB_vertex_buffer_object, GLEW_ARB_vertex_shader, GLEW_EXT_blend_color, GLEW_EXT_draw_range_elements, GLEW_EXT_framebuffer_object, GLEW_EXT_texture_cube_map, GLEW_OK, GLEW_SGIS_generate_mipmap, GLEW_VERSION, glewGetErrorString(), glewGetString(), glewInit(), glGetIntegerv(), glGetString(), hasBlendColor_, hasCubeMap_, hasDrawRangeElements(), hasDrawRangeElements_, hasFBO(), hasFBO_, hasHardwareMipmaps_, hasHardwareShadows_, hasMultiTex(), hasMultiTex_, hasShaders_, hasSphereMap_, hasVBO(), hasVBO_, OptionsDisplay::instance(), Logger::log(), maxElementIndices_, maxElementVertices_, noTexSubImage_, and textureUnits_.

Referenced by GLSetup::setup().

static bool GLStateExtension::hasVBO (  )  [inline, static]

Definition at line 32 of file GLStateExtension.h.

References hasVBO_.

Referenced by GraphicalLandscapeMap::create(), Water2Patches::generate(), MipMapPatchIndexs::generate(), GLVertexBufferObject::GLVertexBufferObject(), setup(), and GraphicalLandscapeMap::updateWholeBuffer().

static int GLStateExtension::getMaxElementVertices (  )  [inline, static]

Definition at line 33 of file GLStateExtension.h.

References maxElementVertices_.

Referenced by Water2Patch::draw(), LandVisibilityPatch::draw(), and setup().

static int GLStateExtension::getMaxElementIndices (  )  [inline, static]

Definition at line 34 of file GLStateExtension.h.

References maxElementIndices_.

Referenced by Water2Patch::draw(), LandVisibilityPatch::draw(), and setup().

static bool GLStateExtension::hasMultiTex (  )  [inline, static]

Definition at line 36 of file GLStateExtension.h.

References hasMultiTex_.

Referenced by Landscape::actualDrawLandTextured(), LandVisibilityPatch::draw(), VisibilityPatchGrid::drawLand(), Water2Renderer::drawWaterNoShaders(), LandSurround::generateList(), setup(), and ShadowMap::shouldAddShadow().

static bool GLStateExtension::hasFBO (  )  [inline, static]

Definition at line 38 of file GLStateExtension.h.

References hasFBO_.

Referenced by GLFrameBufferObject::create(), Landscape::drawWater(), Water2Renderer::generate(), and setup().

static bool GLStateExtension::hasDrawRangeElements (  )  [inline, static]

Definition at line 40 of file GLStateExtension.h.

References hasDrawRangeElements_.

Referenced by Water2Patch::draw(), LandVisibilityPatch::draw(), VisibilityPatchGrid::drawLand(), VisibilityPatchGrid::drawWater(), and setup().

static bool GLStateExtension::getNoTexSubImage (  )  [inline, static]

Definition at line 42 of file GLStateExtension.h.

References noTexSubImage_.

Referenced by DeformTextures::deformLandscape(), GLTexture::replace(), ShadowMap::setTexture(), ShadowMap::shouldAddShadow(), and Napalm::simulateAddEdge().

static bool GLStateExtension::hasCubeMap (  )  [inline, static]

Definition at line 44 of file GLStateExtension.h.

References hasCubeMap_.

Referenced by Water2Renderer::drawWaterNoShaders(), and Water2Renderer::generate().

static bool GLStateExtension::hasSphereMap (  )  [inline, static]

Definition at line 46 of file GLStateExtension.h.

References hasSphereMap_.

Referenced by Water2Renderer::drawWaterNoShaders().

static bool GLStateExtension::hasHardwareMipmaps (  )  [inline, static]

Definition at line 48 of file GLStateExtension.h.

References hasHardwareMipmaps_.

Referenced by GLTexture::createTexture(), Water2Renderer::draw(), and Water2Renderer::generate().

static bool GLStateExtension::hasEnvCombine (  )  [inline, static]

Definition at line 50 of file GLStateExtension.h.

References envCombine_.

Referenced by Landscape::actualDrawLandTextured().

static int GLStateExtension::getTextureUnits (  )  [inline, static]

Definition at line 52 of file GLStateExtension.h.

References textureUnits_.

Referenced by Landscape::actualDrawLandTextured(), LandVisibilityPatch::draw(), VisibilityPatchGrid::drawLand(), and LandSurround::generateList().

static bool GLStateExtension::hasHardwareShadows (  )  [inline, static]

Definition at line 54 of file GLStateExtension.h.

References hasHardwareShadows_.

Referenced by Landscape::createShadowMatrix(), Landscape::drawLand(), Landscape::drawShadows(), Landscape::generate(), and ShadowMap::shouldAddShadow().

static bool GLStateExtension::hasBlendColor (  )  [inline, static]

Definition at line 56 of file GLStateExtension.h.

References hasBlendColor_.

Referenced by ModelRendererMesh::draw().

static bool GLStateExtension::hasShaders (  )  [inline, static]

Definition at line 58 of file GLStateExtension.h.

References hasShaders_.

Referenced by Water2Renderer::draw(), Landscape::drawWater(), Water2Renderer::generate(), Water2::generate(), GLSLProgram::GLSLProgram(), and GLSLShader::GLSLShader().


Member Data Documentation

bool GLStateExtension::envCombine_ = false [static, protected]

Definition at line 61 of file GLStateExtension.h.

Referenced by hasEnvCombine(), and setup().

bool GLStateExtension::multiTexDisabled_ [static, protected]

Definition at line 62 of file GLStateExtension.h.

bool GLStateExtension::hasVBO_ = false [static, protected]

Definition at line 63 of file GLStateExtension.h.

Referenced by hasVBO(), and setup().

bool GLStateExtension::hasFBO_ = false [static, protected]

Definition at line 64 of file GLStateExtension.h.

Referenced by hasFBO(), and setup().

bool GLStateExtension::hasShaders_ = false [static, protected]

Definition at line 65 of file GLStateExtension.h.

Referenced by hasShaders(), and setup().

int GLStateExtension::textureUnits_ = 0 [static, protected]

Definition at line 66 of file GLStateExtension.h.

Referenced by getTextureUnits(), and setup().

int GLStateExtension::maxElementVertices_ = 0 [static, protected]

Definition at line 67 of file GLStateExtension.h.

Referenced by getMaxElementVertices(), and setup().

int GLStateExtension::maxElementIndices_ = 0 [static, protected]

Definition at line 68 of file GLStateExtension.h.

Referenced by getMaxElementIndices(), and setup().

bool GLStateExtension::hasCubeMap_ = false [static, protected]

Definition at line 69 of file GLStateExtension.h.

Referenced by hasCubeMap(), and setup().

bool GLStateExtension::hasSphereMap_ = false [static, protected]

Definition at line 70 of file GLStateExtension.h.

Referenced by hasSphereMap(), and setup().

bool GLStateExtension::hasHardwareMipmaps_ = false [static, protected]

Definition at line 71 of file GLStateExtension.h.

Referenced by hasHardwareMipmaps(), and setup().

bool GLStateExtension::noTexSubImage_ = false [static, protected]

Definition at line 72 of file GLStateExtension.h.

Referenced by getNoTexSubImage(), and setup().

bool GLStateExtension::hasHardwareShadows_ = false [static, protected]

Definition at line 73 of file GLStateExtension.h.

Referenced by hasHardwareShadows(), and setup().

bool GLStateExtension::hasBlendColor_ = false [static, protected]

Definition at line 74 of file GLStateExtension.h.

Referenced by hasBlendColor(), and setup().

bool GLStateExtension::hasMultiTex_ = false [static, protected]

Definition at line 75 of file GLStateExtension.h.

Referenced by hasMultiTex(), and setup().

bool GLStateExtension::hasDrawRangeElements_ = false [static, protected]

Definition at line 76 of file GLStateExtension.h.

Referenced by hasDrawRangeElements(), and setup().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:02 2009 for Scorched3D by  doxygen 1.5.3