GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
GLC_State Class Reference

GLC_State store GLC_lib state. More...

#include <glc_state.h>

Public Member Functions

 ~GLC_State ()
 

Static Public Member Functions

Get Functions
static bool vboSupported ()
 Return true if VBO is supported.
 
static bool vboUsed ()
 Return true if VBO is used.
 
static bool glslSupported ()
 Return true if GLSL is supported.
 
static bool frameBufferSupported ()
 Return true if frameBuffer is supported.
 
static bool frameBufferBlitSupported ()
 Return true if frameBuffer blit is supported.
 
static bool glslUsed ()
 Return true if GLSL is used.
 
static bool pointSpriteSupported ()
 Return true if Point Sprite is supported.
 
static bool selectionShaderUsed ()
 Return true if selection shader is used.
 
static bool isInSelectionMode ()
 Return true if is in selection mode.
 
static QString version ()
 Return the Opengl version.
 
static QString vendor ()
 Return the Opengl vendor.
 
static QString renderer ()
 Return the Opengl renderer.
 
static bool vendorIsNvidia ()
 Return true if OpenGL Vendor is NVIDIA.
 
static bool isPixelCullingActivated ()
 Return true if pixel culling is activate.
 
static bool cacheIsUsed ()
 Return true if the cache is used.
 
static GLC_CacheManagercurrentCacheManager ()
 Return the current cache manager.
 
static bool isSpacePartitionningActivated ()
 Return true if space partitionning is used.
 
static int defaultOctreeDepth ()
 Return the default octree depth.
 
static bool isFrustumCullingActivated ()
 Return true if frustum culling is activated.
 
static bool isValid ()
 Return true valid.
 
Set Functions
static void init ()
 Intialize the state.
 
static void setVboSupport ()
 Set VBO support.
 
static void setVboUsage (const bool)
 Set VBO usage.
 
static void setGlslSupport ()
 Set GLSL support.
 
static void setPointSpriteSupport ()
 Set Point Sprite support.
 
static void setFrameBufferSupport ()
 Set the frame buffer support.
 
static void setFrameBufferBlitSupport ()
 Set the frame buffer blit support.
 
static void setGlslUsage (const bool)
 Set GLSL usage.
 
static void setSelectionShaderUsage (const bool)
 Set selection shader usage.
 
static void setSelectionMode (const bool)
 Set selection mode.
 
static void setPixelCullingUsage (const bool)
 Set pixel culling state.
 
static void setCacheUsage (const bool)
 Set the cache usage.
 
static void setCurrentCacheManager (const GLC_CacheManager &)
 Set the current cache manager.
 
static void setSpacePartionningUsage (const bool)
 Set space partionning usage.
 
static void setDefaultOctreeDepth (int)
 Set the default octree depth.
 
static void setFrustumCullingUsage (bool)
 Set the frustum culling usage.
 

Private Member Functions

 GLC_State ()
 

Static Private Attributes

static bool m_VboSupported = false
 VBO supported flag.
 
static bool m_UseVbo = true
 VBO used.
 
static bool m_GlslSupported = false
 GLSL supported flag.
 
static bool m_PointSpriteSupported = false
 Point Sprite supported flag.
 
static bool m_UseShader = true
 Use shader.
 
static bool m_UseSelectionShader = false
 Use selectionShader flag.
 
static bool m_IsInSelectionMode = false
 In selection mode.
 
static bool m_IsPixelCullingActivated = true
 Pixel culling activation.
 
static QString m_Version
 The Opengl card version.
 
static QString m_Vendor
 The Opengl card vendor.
 
static QString m_Renderer
 The Opengl card renderer.
 
static bool m_UseCache = false
 Cache usage.
 
static GLC_CacheManager m_CacheManager
 The current cache manager.
 
static bool m_IsSpacePartitionningActivated = false
 Space partitionning activation.
 
static bool m_IsFrustumCullingActivated = false
 Frustum culling activated.
 
static bool m_IsFrameBufferSupported = false
 Frame buffer supported.
 
static bool m_IsFrameBufferBlitSupported = false
 Frame buffer supported.
 
static bool m_IsValid = false
 State valid flag.
 

Detailed Description

GLC_State store GLC_lib state.

GLC_State is used to set and get glabal GLC_lib state

Definition at line 41 of file glc_state.h.

Constructor & Destructor Documentation

GLC_State::GLC_State ( )
private
GLC_State::~GLC_State ( )

Definition at line 54 of file glc_state.cpp.

Member Function Documentation

bool GLC_State::cacheIsUsed ( )
static
GLC_CacheManager & GLC_State::currentCacheManager ( )
static
int GLC_State::defaultOctreeDepth ( )
static

Return the default octree depth.

Definition at line 143 of file glc_state.cpp.

References GLC_Octree::defaultDepth().

bool GLC_State::frameBufferBlitSupported ( )
static

Return true if frameBuffer blit is supported.

Definition at line 78 of file glc_state.cpp.

References m_IsFrameBufferBlitSupported.

bool GLC_State::frameBufferSupported ( )
static

Return true if frameBuffer is supported.

Definition at line 73 of file glc_state.cpp.

References m_IsFrameBufferSupported.

bool GLC_State::glslSupported ( )
static

Return true if GLSL is supported.

Definition at line 68 of file glc_state.cpp.

References m_GlslSupported.

bool GLC_State::glslUsed ( )
static

Return true if GLSL is used.

Definition at line 83 of file glc_state.cpp.

References m_GlslSupported, and m_UseShader.

Referenced by GLC_Material::glExecute(), and GLC_3DWidgetManagerHandle::render().

void GLC_State::init ( )
static
bool GLC_State::isFrustumCullingActivated ( )
static

Return true if frustum culling is activated.

Definition at line 148 of file glc_state.cpp.

References m_IsFrustumCullingActivated.

bool GLC_State::isInSelectionMode ( )
static
bool GLC_State::isPixelCullingActivated ( )
static

Return true if pixel culling is activate.

Definition at line 123 of file glc_state.cpp.

References m_IsPixelCullingActivated.

Referenced by GLC_3DViewInstance::choseLod(), and GLC_3DViewInstance::render().

bool GLC_State::isSpacePartitionningActivated ( )
static

Return true if space partitionning is used.

Definition at line 138 of file glc_state.cpp.

References m_IsSpacePartitionningActivated.

bool GLC_State::isValid ( )
static

Return true valid.

Definition at line 170 of file glc_state.cpp.

References m_IsValid.

Referenced by init(), and GLC_Context::makeCurrent().

bool GLC_State::pointSpriteSupported ( )
static

Return true if Point Sprite is supported.

Definition at line 88 of file glc_state.cpp.

References m_PointSpriteSupported.

Referenced by GLC_PointSprite::render().

QString GLC_State::renderer ( )
static

Return the Opengl renderer.

Definition at line 113 of file glc_state.cpp.

References m_Renderer.

bool GLC_State::selectionShaderUsed ( )
static

Return true if selection shader is used.

Definition at line 93 of file glc_state.cpp.

References m_UseSelectionShader.

Referenced by GLC_3DViewCollection::glDraw().

void GLC_State::setCacheUsage ( const bool  cacheUsage)
static

Set the cache usage.

Definition at line 227 of file glc_state.cpp.

References m_UseCache.

void GLC_State::setCurrentCacheManager ( const GLC_CacheManager cacheManager)
static

Set the current cache manager.

Definition at line 232 of file glc_state.cpp.

References m_CacheManager.

void GLC_State::setDefaultOctreeDepth ( int  depth)
static

Set the default octree depth.

Definition at line 242 of file glc_state.cpp.

References GLC_Octree::setDefaultDepth().

void GLC_State::setFrameBufferBlitSupport ( )
static

Set the frame buffer blit support.

Definition at line 202 of file glc_state.cpp.

References m_IsFrameBufferBlitSupported.

void GLC_State::setFrameBufferSupport ( )
static

Set the frame buffer support.

Definition at line 197 of file glc_state.cpp.

References m_IsFrameBufferSupported.

Referenced by init().

void GLC_State::setFrustumCullingUsage ( bool  usage)
static

Set the frustum culling usage.

Definition at line 247 of file glc_state.cpp.

References m_IsFrustumCullingActivated.

void GLC_State::setGlslSupport ( )
static

Set GLSL support.

Definition at line 186 of file glc_state.cpp.

References glc::extensionIsSupported(), glc::loadGlSlExtension(), m_GlslSupported, m_UseShader, and setGlslUsage().

Referenced by init().

void GLC_State::setGlslUsage ( const bool  glslUsage)
static

Set GLSL usage.

Definition at line 207 of file glc_state.cpp.

References m_GlslSupported, and m_UseShader.

Referenced by setGlslSupport().

void GLC_State::setPixelCullingUsage ( const bool  activation)
static

Set pixel culling state.

Definition at line 222 of file glc_state.cpp.

References m_IsPixelCullingActivated.

void GLC_State::setPointSpriteSupport ( )
static

Set Point Sprite support.

Definition at line 192 of file glc_state.cpp.

References glc::extensionIsSupported(), glc::loadPointSpriteExtension(), and m_PointSpriteSupported.

Referenced by init().

void GLC_State::setSelectionMode ( const bool  mode)
static
void GLC_State::setSelectionShaderUsage ( const bool  shaderUsed)
static

Set selection shader usage.

Definition at line 212 of file glc_state.cpp.

References m_GlslSupported, and m_UseSelectionShader.

void GLC_State::setSpacePartionningUsage ( const bool  usage)
static

Set space partionning usage.

Definition at line 237 of file glc_state.cpp.

References m_IsSpacePartitionningActivated.

void GLC_State::setVboSupport ( )
static

Set VBO support.

Definition at line 175 of file glc_state.cpp.

References glc::extensionIsSupported(), glc::loadVboExtension(), m_UseVbo, m_VboSupported, and setVboUsage().

Referenced by init().

void GLC_State::setVboUsage ( const bool  vboUsed)
static

Set VBO usage.

Definition at line 181 of file glc_state.cpp.

References m_UseVbo, m_VboSupported, and vboUsed().

Referenced by setVboSupport().

bool GLC_State::vboSupported ( )
static

Return true if VBO is supported.

Definition at line 58 of file glc_state.cpp.

References m_VboSupported.

Referenced by GLC_WireData::glDraw(), GLC_Mesh::glDraw(), and GLC_Geometry::setVboUsage().

bool GLC_State::vboUsed ( )
static

Return true if VBO is used.

Definition at line 63 of file glc_state.cpp.

References m_UseVbo.

Referenced by setVboUsage().

QString GLC_State::vendor ( )
static

Return the Opengl vendor.

Definition at line 108 of file glc_state.cpp.

References m_Vendor.

bool GLC_State::vendorIsNvidia ( )
static

Return true if OpenGL Vendor is NVIDIA.

Definition at line 118 of file glc_state.cpp.

References m_Vendor.

QString GLC_State::version ( )
static

Return the Opengl version.

Definition at line 103 of file glc_state.cpp.

References m_Version.

Member Data Documentation

GLC_CacheManager GLC_State::m_CacheManager
staticprivate

The current cache manager.

Definition at line 210 of file glc_state.h.

Referenced by currentCacheManager(), and setCurrentCacheManager().

bool GLC_State::m_GlslSupported = false
staticprivate

GLSL supported flag.

Definition at line 180 of file glc_state.h.

Referenced by glslSupported(), glslUsed(), setGlslSupport(), setGlslUsage(), and setSelectionShaderUsage().

bool GLC_State::m_IsFrameBufferBlitSupported = false
staticprivate

Frame buffer supported.

Definition at line 222 of file glc_state.h.

Referenced by frameBufferBlitSupported(), and setFrameBufferBlitSupport().

bool GLC_State::m_IsFrameBufferSupported = false
staticprivate

Frame buffer supported.

Definition at line 219 of file glc_state.h.

Referenced by frameBufferSupported(), and setFrameBufferSupport().

bool GLC_State::m_IsFrustumCullingActivated = false
staticprivate

Frustum culling activated.

Definition at line 216 of file glc_state.h.

Referenced by isFrustumCullingActivated(), and setFrustumCullingUsage().

bool GLC_State::m_IsInSelectionMode = false
staticprivate

In selection mode.

Definition at line 192 of file glc_state.h.

Referenced by isInSelectionMode(), and setSelectionMode().

bool GLC_State::m_IsPixelCullingActivated = true
staticprivate

Pixel culling activation.

Definition at line 195 of file glc_state.h.

Referenced by isPixelCullingActivated(), and setPixelCullingUsage().

bool GLC_State::m_IsSpacePartitionningActivated = false
staticprivate

Space partitionning activation.

Definition at line 213 of file glc_state.h.

Referenced by isSpacePartitionningActivated(), and setSpacePartionningUsage().

bool GLC_State::m_IsValid = false
staticprivate

State valid flag.

Definition at line 225 of file glc_state.h.

Referenced by init(), and isValid().

bool GLC_State::m_PointSpriteSupported = false
staticprivate

Point Sprite supported flag.

Definition at line 183 of file glc_state.h.

Referenced by pointSpriteSupported(), and setPointSpriteSupport().

QString GLC_State::m_Renderer
staticprivate

The Opengl card renderer.

Definition at line 204 of file glc_state.h.

Referenced by init(), and renderer().

bool GLC_State::m_UseCache = false
staticprivate

Cache usage.

Definition at line 207 of file glc_state.h.

Referenced by cacheIsUsed(), and setCacheUsage().

bool GLC_State::m_UseSelectionShader = false
staticprivate

Use selectionShader flag.

Definition at line 189 of file glc_state.h.

Referenced by selectionShaderUsed(), and setSelectionShaderUsage().

bool GLC_State::m_UseShader = true
staticprivate

Use shader.

Definition at line 186 of file glc_state.h.

Referenced by glslUsed(), setGlslSupport(), and setGlslUsage().

bool GLC_State::m_UseVbo = true
staticprivate

VBO used.

Definition at line 177 of file glc_state.h.

Referenced by setVboSupport(), setVboUsage(), and vboUsed().

bool GLC_State::m_VboSupported = false
staticprivate

VBO supported flag.

Definition at line 174 of file glc_state.h.

Referenced by setVboSupport(), setVboUsage(), and vboSupported().

QString GLC_State::m_Vendor
staticprivate

The Opengl card vendor.

Definition at line 201 of file glc_state.h.

Referenced by init(), vendor(), and vendorIsNvidia().

QString GLC_State::m_Version
staticprivate

The Opengl card version.

Definition at line 198 of file glc_state.h.

Referenced by init(), and version().


The documentation for this class was generated from the following files:

©2005-2013 Laurent Ribon