OpenSceneGraph
3.0.1
|
Texture2DMultisample state class which encapsulates OpenGL 2D multisampled texture functionality. More...
Public Member Functions | |
Texture2DMultisample () | |
Texture2DMultisample (GLsizei numSamples, GLboolean fixedsamplelocations) | |
Texture2DMultisample (const Texture2DMultisample &text, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
META_StateAttribute (osg, Texture2DMultisample, TEXTURE) | |
virtual int | compare (const StateAttribute &rhs) const |
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. | |
virtual GLenum | getTextureTarget () const |
void | setTextureSize (int width, int height) const |
Sets the texture width and height. | |
void | setNumSamples (int samples) |
virtual void | setImage (unsigned int, Image *) |
Sets the texture image for the specified face. | |
virtual Image * | getImage (unsigned int) |
Gets the texture image for the specified face. | |
virtual const Image * | getImage (unsigned int) const |
Gets the const texture image for specified face. | |
virtual unsigned int | getNumImages () const |
Gets the number of images that can be assigned to this Texture. | |
virtual void | allocateMipmap (State &) const |
Allocate mipmap levels of the texture by subsequent calling of glTexImage* function. | |
void | setTextureWidth (int width) |
void | setTextureHeight (int height) |
virtual int | getTextureWidth () const |
virtual int | getTextureHeight () const |
virtual int | getTextureDepth () const |
virtual void | apply (State &state) const |
Bind the texture object. | |
Protected Member Functions | |
virtual | ~Texture2DMultisample () |
virtual void | computeInternalFormat () const |
Protected Attributes | |
GLsizei | _textureWidth |
Subloaded images can have different texture and image sizes. | |
GLsizei | _textureHeight |
GLsizei | _numSamples |
GLboolean | _fixedsamplelocations |
Texture2DMultisample state class which encapsulates OpenGL 2D multisampled texture functionality.
Multisampled texture were introduced with OpenGL 3.1 and extension GL_ARB_texture_multisample. See http://www.opengl.org/registry/specs/ARB/texture_multisample.txt for more info.
osg::Texture2DMultisample::Texture2DMultisample | ( | GLsizei | numSamples, |
GLboolean | fixedsamplelocations | ||
) |
osg::Texture2DMultisample::Texture2DMultisample | ( | const Texture2DMultisample & | text, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::Texture2DMultisample::~Texture2DMultisample | ( | ) | [protected, virtual] |
virtual void osg::Texture2DMultisample::allocateMipmap | ( | State & | state | ) | const [inline, virtual] |
Allocate mipmap levels of the texture by subsequent calling of glTexImage* function.
Implements osg::Texture.
virtual void osg::Texture2DMultisample::apply | ( | State & | state | ) | const [virtual] |
Bind the texture object.
If the texture object hasn't already been compiled, create the texture mipmap levels.
Implements osg::Texture.
virtual int osg::Texture2DMultisample::compare | ( | const StateAttribute & | rhs | ) | const [virtual] |
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Implements osg::StateAttribute.
virtual void osg::Texture2DMultisample::computeInternalFormat | ( | ) | const [protected, virtual] |
Implements osg::Texture.
virtual Image* osg::Texture2DMultisample::getImage | ( | unsigned | face | ) | [inline, virtual] |
virtual const Image* osg::Texture2DMultisample::getImage | ( | unsigned | face | ) | const [inline, virtual] |
virtual unsigned int osg::Texture2DMultisample::getNumImages | ( | ) | const [inline, virtual] |
Gets the number of images that can be assigned to this Texture.
Implements osg::Texture.
virtual int osg::Texture2DMultisample::getTextureDepth | ( | ) | const [inline, virtual] |
Reimplemented from osg::Texture.
virtual int osg::Texture2DMultisample::getTextureHeight | ( | ) | const [inline, virtual] |
Reimplemented from osg::Texture.
virtual GLenum osg::Texture2DMultisample::getTextureTarget | ( | ) | const [inline, virtual] |
Implements osg::Texture.
References GL_TEXTURE_2D_MULTISAMPLE.
virtual int osg::Texture2DMultisample::getTextureWidth | ( | ) | const [inline, virtual] |
Reimplemented from osg::Texture.
virtual void osg::Texture2DMultisample::setImage | ( | unsigned | face, |
Image * | image | ||
) | [inline, virtual] |
Sets the texture image for the specified face.
Implements osg::Texture.
void osg::Texture2DMultisample::setNumSamples | ( | int | samples | ) | [inline] |
void osg::Texture2DMultisample::setTextureHeight | ( | int | height | ) | [inline] |
void osg::Texture2DMultisample::setTextureSize | ( | int | width, |
int | height | ||
) | const [inline] |
Sets the texture width and height.
If width or height are zero, calculate the respective value from the source image size.
void osg::Texture2DMultisample::setTextureWidth | ( | int | width | ) | [inline] |
GLboolean osg::Texture2DMultisample::_fixedsamplelocations [mutable, protected] |
GLsizei osg::Texture2DMultisample::_numSamples [mutable, protected] |
GLsizei osg::Texture2DMultisample::_textureHeight [mutable, protected] |
GLsizei osg::Texture2DMultisample::_textureWidth [mutable, protected] |
Subloaded images can have different texture and image sizes.
![]() | Generated at Sat Apr 28 2012 08:53:15 for the OpenSceneGraph by doxygen 1.8.0. |