Inheritance diagram for osg::TextureRectangle:
Public Member Functions | |
TextureRectangle () | |
TextureRectangle (Image *image) | |
TextureRectangle (const TextureRectangle &text, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
META_StateAttribute (osg, TextureRectangle, TEXTURE) | |
virtual int | compare (const StateAttribute &rhs) const |
virtual bool | getModeUsage (ModeUsage &usage) const |
void | setImage (Image *image) |
Image * | getImage () |
const Image * | getImage () const |
unsigned int & | getModifiedCount (unsigned int contextID) const |
virtual void | setImage (unsigned int, Image *image) |
virtual Image * | getImage (unsigned int) |
virtual const Image * | getImage (unsigned int) const |
virtual unsigned int | getNumImages () const |
void | setTextureSize (int width, int height) const |
void | getTextureSize (int &width, int &height) const |
void | setSubloadCallback (SubloadCallback *cb) |
SubloadCallback * | getSubloadCallback () |
const SubloadCallback * | getSubloadCallback () const |
void | copyTexImage2D (State &state, int x, int y, int width, int height) |
void | copyTexSubImage2D (State &state, int xoffset, int yoffset, int x, int y, int width, int height) |
virtual void | apply (State &state) const |
Protected Types | |
typedef buffered_value< unsigned int > | ImageModifiedCount |
Protected Member Functions | |
virtual | ~TextureRectangle () |
virtual void | computeInternalFormat () const |
void | applyTexParameters (GLenum target, State &state) const |
void | applyTexImage_load (GLenum target, Image *image, State &state, GLsizei &inwidth, GLsizei &inheight) const |
void | applyTexImage_subload (GLenum target, Image *image, State &state, GLsizei &inwidth, GLsizei &inheight, GLint &inInternalFormat) const |
Protected Attributes | |
ref_ptr< Image > | _image |
GLsizei | _textureWidth |
GLsizei | _textureHeight |
ref_ptr< SubloadCallback > | _subloadCallback |
ImageModifiedCount | _modifiedCount |
|
|
|
|
|
|
|
Copy constructor using CopyOp to manage deep vs shallow copy. |
|
|
|
On first apply (unless already compiled), create and bind the texture, subsequent apply will simply bind to texture. Implements osg::Texture. |
|
|
|
|
|
Helper method. Sets texture paramters. Reimplemented from osg::Texture. |
|
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. Implements osg::StateAttribute. |
|
Implements osg::Texture. |
|
Copies pixels into a 2D texture image, as per glCopyTexImage2D. Creates an OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. width and height must be a power of two. |
|
Copies a two-dimensional texture subimage, as per glCopyTexSubImage2D. Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. Loads framebuffer data into the texture using offsets xoffset and yoffset. width and height must be powers of two. |
|
Get the const texture image, ignoring face value as there is only one image. Implements osg::Texture. |
|
Get the texture image, ignoring face value as there is only one image. Implements osg::Texture. |
|
Get the const texture image. |
|
Get the texture image. |
|
Return the modes associated with this StateAttribute. Reimplemented from osg::StateAttribute. |
|
|
|
Get the number of images that can be assigned to the Texture. Implements osg::Texture. |
|
|
|
|
|
Get the texture subload width. |
|
|
|
Set the texture image, ignoring face value as there is only one image. Implements osg::Texture. |
|
Set the texture image. |
|
|
|
Set the texture width and height. If width or height are zero then the repsective size value is calculated from the source image sizes. |
|
|
|
|
|
|
|
|
|
|