Classes |
struct | BindingHandleFromBinding |
struct | BindingHandleFromObject |
struct | ObjectBoundFromObject |
struct | ObjectFromBinding |
struct | ObjectSafeFromObject |
struct | PtrFromObject |
struct | RefCountedBindingHandleFromBinding |
struct | RefCountedBindingHandleFromObject |
struct | RefCountedPtrFromObject |
struct | RefCountedSafeHandleFromObject |
struct | SafeHandleFromBinding |
struct | SafeHandleFromObject |
Public Types |
typedef detail::NonCopyable | BaseType |
typedef Context | ThisType |
Public Member Functions |
bool | acquire (void) |
BoundDrawFramebufferHandle | bindDrawFramebuffer (FramebufferHandle &handle) |
BoundFeedbackBufferHandle | bindFeedbackBuffer (BufferHandle &handle, GLuint index, GLintptr offset, GLsizeiptr size) |
BoundFragmentShaderHandle | bindFragmentShader (FragmentShaderHandle &handle) |
BoundGeometryShaderHandle | bindGeometryShader (GeometryShaderHandle &handle) |
BoundIndexBufferHandle | bindIndexBuffer (BufferHandle &handle) |
BoundPixelPackBufferHandle | bindPixelPackBuffer (BufferHandle &handle) |
BoundPixelUnpackBufferHandle | bindPixelUnpackBuffer (BufferHandle &handle) |
BoundProgramHandle | bindProgram (ProgramHandle &handle) |
BoundReadDrawFramebufferHandle | bindReadDrawFramebuffer (FramebufferHandle &handle) |
BoundReadFramebufferHandle | bindReadFramebuffer (FramebufferHandle &handle) |
BoundRenderbufferHandle | bindRenderbuffer (RenderbufferHandle &handle) |
BoundTexture2DHandle | bindTexture2D (Texture2DHandle &handle, GLint unit) |
BoundTextureCubeHandle | bindTextureCube (TextureCubeHandle &handle, GLint unit) |
BoundUniformBufferHandle | bindUniformBuffer (BufferHandle &handle, GLuint index, GLintptr offset, GLsizeiptr size) |
BoundVertexBufferHandle | bindVertexBuffer (BufferHandle &handle) |
BoundVertexShaderHandle | bindVertexShader (VertexShaderHandle &handle) |
| Context (void) |
BufferHandle | createBuffer (const BufferArguments &args) |
FragmentShaderHandle | createFragmentShader (const FragmentShaderArguments &args) |
FramebufferHandle | createFramebuffer (const FramebufferArguments &args) |
GeometryShaderHandle | createGeometryShader (const GeometryShaderArguments &args) |
ProgramHandle | createProgram (const ProgramArguments &args) |
RenderbufferHandle | createRenderbuffer (const RenderbufferArguments &args) |
Texture2DHandle | createTexture2D (const Texture2DArguments &args) |
TextureCubeHandle | createTextureCube (const TextureCubeArguments &args) |
VertexShaderHandle | createVertexShader (const VertexShaderArguments &args) |
bool | isAcquired (void) const |
bool | isValid (void) const |
void | release (void) |
void | unbindDrawFramebuffer (void) |
void | unbindFeedbackBuffer (GLuint index) |
void | unbindFragmentShader (void) |
void | unbindGeometryShader (void) |
void | unbindIndexBuffer (void) |
void | unbindPixelPackBuffer (void) |
void | unbindPixelUnpackBuffer (void) |
void | unbindProgram (void) |
void | unbindReadDrawFramebuffer (void) |
void | unbindReadFramebuffer (void) |
void | unbindRenderbuffer (void) |
void | unbindTexture2D (GLint unit) |
void | unbindTextureCube (GLint unit) |
void | unbindUniformBuffer (GLuint index) |
void | unbindVertexBuffer (void) |
void | unbindVertexShader (void) |
virtual | ~Context (void) |
Private Types |
typedef std::pair< GLenum, GLint > | BindingTarget |
typedef Object | ObjectType |
typedef std::map
< BindingTarget,
RefCountedBindingType * > | RefCountedBindingPtrMap |
typedef
RefCountedBindingPtrMap::const_iterator | RefCountedBindingPtrMapConstIterator |
typedef
RefCountedBindingPtrMap::iterator | RefCountedBindingPtrMapIterator |
typedef
RefCountedBindingPtrMap::value_type | RefCountedBindingPtrMapValue |
typedef
BoundObjectHandle::RefCountedObjectType | RefCountedBindingType |
typedef std::map< Object
*, RefCountedPtrType * > | RefCountedPtrPtrMap |
typedef
RefCountedPtrPtrMap::const_iterator | RefCountedPtrPtrMapConstIterator |
typedef
RefCountedPtrPtrMap::iterator | RefCountedPtrPtrMapIterator |
typedef
RefCountedPtrPtrMap::value_type | RefCountedPtrPtrMapValue |
typedef
RefCountedPtrFromObject
< ObjectType >::Type | RefCountedPtrType |
Private Member Functions |
template<typename TBinding > |
BindingHandleFromBinding
< TBinding >::Type | bind (typename SafeHandleFromBinding< TBinding >::Type &h, const typename detail::ParamsOf< TBinding >::Type ¶ms=typename detail::ParamsOf< TBinding >::Type()) |
template<typename TObject > |
SafeHandleFromObject< TObject >
::Type | createHandle (void) |
template<typename TObject > |
TObject * | createObject (void) |
void | destroyObject (Object *object) |
template<typename TBinding , typename TBindingParams > |
void | initializeTarget (const TBindingParams ¶ms) |
void | initializeTargets (void) |
void | invalidateReferencesToAllObjects (void) |
void | noMoreReferencesTo (Object *object) |
template<typename TBinding , typename TBindingParams > |
void | terminateTarget (const TBindingParams ¶ms) |
void | terminateTargets (void) |
Private Attributes |
bool | m_acquired |
RefCountedBindingPtrMap | m_bindings |
int | m_maxFeedbackBuffers |
int | m_maxTextureUnits |
int | m_maxUniformBuffers |
RefCountedPtrPtrMap | m_objects |
Friends |
class | detail::ObjectDeleter |
Definition at line 23 of file context.h.