Texture2DMultisample state class which encapsulates OpenGL 2D multisampled texture functionality.
More...
List of all members.
Detailed Description
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.
Constructor & Destructor Documentation
osg::Texture2DMultisample::Texture2DMultisample |
( |
| ) |
|
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] |
Member Function Documentation
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] |
virtual void osg::Texture2DMultisample::computeInternalFormat |
( |
| ) |
const [protected, virtual] |
virtual Image* osg::Texture2DMultisample::getImage |
( |
unsigned |
face | ) |
[inline, virtual] |
Gets the texture image for the specified face.
Implements osg::Texture.
References NULL.
virtual const Image* osg::Texture2DMultisample::getImage |
( |
unsigned |
face | ) |
const [inline, virtual] |
Gets the const texture image for specified face.
Implements osg::Texture.
References NULL.
virtual unsigned int osg::Texture2DMultisample::getNumImages |
( |
| ) |
const [inline, virtual] |
virtual int osg::Texture2DMultisample::getTextureDepth |
( |
| ) |
const [inline, virtual] |
virtual int osg::Texture2DMultisample::getTextureHeight |
( |
| ) |
const [inline, virtual] |
virtual GLenum osg::Texture2DMultisample::getTextureTarget |
( |
| ) |
const [inline, virtual] |
virtual int osg::Texture2DMultisample::getTextureWidth |
( |
| ) |
const [inline, virtual] |
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] |
Member Data Documentation
Subloaded images can have different texture and image sizes.
The documentation for this class was generated from the following file: