30 #ifndef EQPLY_VERTEXBUFFERSTATE_H
31 #define EQPLY_VERTEXBUFFERSTATE_H
35 #include <triply/vertexBufferState.h>
45 : triply::VertexBufferState( objectManager.glewGetContext( ))
46 , _objectManager( objectManager )
52 virtual GLuint getDisplayList(
const void* key )
53 {
return _objectManager.getList( key ); }
55 virtual GLuint newDisplayList(
const void* key )
56 {
return _objectManager.newList( key ); }
58 virtual GLuint getTexture(
const void* key )
59 {
return _objectManager.getTexture( key ); }
61 virtual GLuint newTexture(
const void* key )
62 {
return _objectManager.newTexture( key ); }
64 virtual GLuint getBufferObject(
const void* key )
65 {
return _objectManager.getBuffer( key ); }
67 virtual GLuint newBufferObject(
const void* key )
68 {
return _objectManager.newBuffer( key ); }
70 virtual GLuint getProgram(
const void* key )
71 {
return _objectManager.getProgram( key ); }
73 virtual GLuint newProgram(
const void* key )
74 {
return _objectManager.newProgram( key ); }
76 virtual GLuint getShader(
const void* key )
77 {
return _objectManager.getShader( key ); }
79 virtual GLuint newShader(
const void* key, GLenum type )
80 {
return _objectManager.newShader( key, type ); }
82 virtual void deleteAll() { _objectManager.
deleteAll(); }
83 bool isShared()
const {
return _objectManager.
isShared(); }
85 void setChannel(
Channel* channel ) { _channel = channel; }
87 virtual bool stopRendering( )
const
88 {
return _channel ? _channel->stopRendering() :
false; }
90 virtual void declareRegion(
const triply::Vector4f& region )
91 {
if( _channel ) _channel->
declareRegion( eq::Viewport( region )); }
99 #endif // EQ_MESH_VERTEXBUFFERSTATE_H
The rendering entity, updating a part of a Window.
A facility class to manage OpenGL objects across shared contexts.
EQ_API bool isShared() const
EQ_API void deleteAll()
Delete all managed objects and associated GL objects.
virtual EQ_API void declareRegion(const eq::PixelViewport ®ion)
Declare a region covered by the current draw or assemble operation.