|
Public Member Functions |
| TextureRectangle () |
| TextureRectangle (Image *image) |
| TextureRectangle (const TextureRectangle &text, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
| Copy constructor using CopyOp to manage deep vs shallow copy.
|
| META_StateAttribute (osg, TextureRectangle, TEXTURE) |
virtual int | compare (const StateAttribute &rhs) const |
| Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
|
virtual bool | getModeUsage (ModeUsage &usage) const |
void | setImage (Image *image) |
| Set the texture image.
|
Image * | getImage () |
| Get the texture image.
|
const Image * | getImage () const |
| Get the const texture image.
|
unsigned int & | getModifiedTag (unsigned int contextID) const |
virtual void | setImage (unsigned int, Image *image) |
| Set the texture image, ignoring face value as there is only one image.
|
virtual Image * | getImage (unsigned int) |
| Get the texture image, ignoring face value as there is only one image.
|
virtual const Image * | getImage (unsigned int) const |
| Get the const texture image, ignoring face value as there is only one image.
|
virtual unsigned int | getNumImages () const |
| Get the number of images that can be assigned to the Texture.
|
void | setTextureSize (int width, int height) const |
| Set the texture width and height.
|
void | getTextureSize (int &width, int &height) const |
| Get the texture subload width.
|
void | setSubloadCallback (SubloadCallback *cb) |
SubloadCallback * | getSubloadCallback () |
const SubloadCallback * | getSubloadCallback () const |
virtual void | apply (State &state) const |
| On first apply (unless already compiled), create and bind the texture, subsequent apply will simply bind to texture.
|
Protected Types |
typedef buffered_value< unsigned
int > | ImageModifiedTag |
Protected Member Functions |
virtual | ~TextureRectangle () |
virtual void | computeInternalFormat () const |
void | applyTexParameters (GLenum target, State &state) const |
| Helper method.
|
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 |
ImageModifiedTag | _modifiedTag |
Classes |
class | SubloadCallback |