16#ifndef OSG_TEXTUREBUFFEROBJECT
17#define OSG_TEXTUREBUFFEROBJECT 1
#define GL_TEXTURE_BUFFER
Definition GLDefines:402
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Definition BufferObject:495
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Image class for encapsulating the storage texture image data.
Definition Image:179
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
Base class for state attributes.
Definition StateAttribute:77
@ TEXTURE
Definition StateAttribute:125
virtual void computeInternalFormat() const
virtual void apply(State &state) const
Bind the texture buffer.
virtual Image * getImage(unsigned int)
Gets the texture image, ignoring face.
Definition TextureBuffer:67
buffered_value< unsigned int > BufferDataModifiedCount
Definition TextureBuffer:105
ref_ptr< BufferData > _bufferData
Definition TextureBuffer:101
TextureBuffer(const TextureBuffer &text, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual void setImage(unsigned int, Image *image)
Sets the texture image, ignoring face.
Definition TextureBuffer:64
virtual unsigned int getNumImages() const
Gets the number of images that can be assigned to the Texture.
Definition TextureBuffer:73
virtual int getTextureHeight() const
Definition TextureBuffer:82
TextureBuffer(BufferData *image)
void setImage(Image *image)
Sets the texture image.
void setTextureWidth(int width)
Sets the texture width.
Definition TextureBuffer:78
unsigned int & getModifiedCount(unsigned int contextID) const
Definition TextureBuffer:57
GLsizei _textureWidth
Definition TextureBuffer:103
virtual int getTextureWidth() const
Gets the texture width.
Definition TextureBuffer:81
virtual int compare(const StateAttribute &rhs) const
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
virtual const Image * getImage(unsigned int) const
Gets the const texture image, ignoring face.
Definition TextureBuffer:70
const Image * getImage() const
Gets the const texture image.
Definition TextureBuffer:52
Image * getImage()
Gets the texture image.
Definition TextureBuffer:49
META_StateAttribute(osg, TextureBuffer, TEXTURE)
virtual void allocateMipmap(State &) const
Allocate mipmap levels of the texture by subsequent calling of glTexImage* function.
Definition TextureBuffer:85
BufferDataModifiedCount _modifiedCount
Definition TextureBuffer:106
virtual int getTextureDepth() const
Definition TextureBuffer:83
virtual GLenum getTextureTarget() const
Definition TextureBuffer:43
virtual bool isDirty(unsigned int contextID) const
return true if the texture image data has been modified and the associated GL texture object needs to...
Definition TextureBuffer:55
const BufferData * getBufferData() const
Set setBufferData attached.
Definition TextureBuffer:94
void setBufferData(BufferData *bo)
Set setBufferData attached.
#define OSG_EXPORT
Definition Export:39