CFx SDK Documentation  2022 SP0
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
OdTrGL2ExtensionsRegistry Class Reference

#include <TrGL2Extensions.h>

Inheritance diagram for OdTrGL2ExtensionsRegistry:
OdRxObject

Public Types

enum  ExtensionName {
  kExtensionNonPow2 = 0 , kExtensionNonPow2ES , kExtensionBGRA , kExtensionBGR ,
  kExtensionTextureMirroredRepeat , kExtensionTextureEdgeClamp , kExtensionTextureBorderClamp , kExtensionDepthTexture ,
  kExtensionDepth24 , kExtensionPackedDepthStencil , kExtensionStencil8 , kExtensionTextureHalfFloat ,
  kExtensionTextureFloat , kExtensionDrawBuffers , kExtensionElementIndexUInt , kNumExtensions
}
 
enum  FunctionName { kPfnDrawBuffers = 0 , kNumFunctions }
 

Public Member Functions

 OdTrGL2ExtensionsRegistry ()
 
bool isExtensionSupported (ExtensionName nExt)
 
bool isFunctionAvailable (FunctionName nFunc)
 
void glDrawBuffers (GLsizei n, const GLenum *bufs)
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Protected Attributes

OdUInt32 m_extensionChecked [kNumExtensions/32+1]
 
OdUInt32 m_extensionAvailable [kNumExtensions/32+1]
 
OdTrGL2LocalContextm_pLocalContext
 
voidm_pFunctionPtr [kNumFunctions]
 

Friends

class OdTrGL2LocalContext
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

Definition at line 146 of file TrGL2Extensions.h.

Member Enumeration Documentation

◆ ExtensionName

Enumerator
kExtensionNonPow2 
kExtensionNonPow2ES 
kExtensionBGRA 
kExtensionBGR 
kExtensionTextureMirroredRepeat 
kExtensionTextureEdgeClamp 
kExtensionTextureBorderClamp 
kExtensionDepthTexture 
kExtensionDepth24 
kExtensionPackedDepthStencil 
kExtensionStencil8 
kExtensionTextureHalfFloat 
kExtensionTextureFloat 
kExtensionDrawBuffers 
kExtensionElementIndexUInt 
kNumExtensions 

Definition at line 149 of file TrGL2Extensions.h.

◆ FunctionName

Enumerator
kPfnDrawBuffers 
kNumFunctions 

Definition at line 169 of file TrGL2Extensions.h.

Constructor & Destructor Documentation

◆ OdTrGL2ExtensionsRegistry()

OdTrGL2ExtensionsRegistry::OdTrGL2ExtensionsRegistry ( )

Member Function Documentation

◆ glDrawBuffers()

void OdTrGL2ExtensionsRegistry::glDrawBuffers ( GLsizei  n,
const GLenum bufs 
)

◆ isExtensionSupported()

bool OdTrGL2ExtensionsRegistry::isExtensionSupported ( ExtensionName  nExt)

◆ isFunctionAvailable()

bool OdTrGL2ExtensionsRegistry::isFunctionAvailable ( FunctionName  nFunc)

Friends And Related Function Documentation

◆ OdTrGL2LocalContext

friend class OdTrGL2LocalContext
friend

Definition at line 180 of file TrGL2Extensions.h.

Member Data Documentation

◆ m_extensionAvailable

OdUInt32 OdTrGL2ExtensionsRegistry::m_extensionAvailable[kNumExtensions/32+1]
protected

Definition at line 177 of file TrGL2Extensions.h.

◆ m_extensionChecked

OdUInt32 OdTrGL2ExtensionsRegistry::m_extensionChecked[kNumExtensions/32+1]
protected

Definition at line 176 of file TrGL2Extensions.h.

◆ m_pFunctionPtr

void* OdTrGL2ExtensionsRegistry::m_pFunctionPtr[kNumFunctions]
protected

Definition at line 179 of file TrGL2Extensions.h.

◆ m_pLocalContext

OdTrGL2LocalContext* OdTrGL2ExtensionsRegistry::m_pLocalContext
protected

Definition at line 178 of file TrGL2Extensions.h.


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