|
OSG
3.4.0
|
#include <Texture2D.h>


Classes | |
| class | SubloadCallback |
Protected Types | |
| typedef buffered_value < unsigned int > | ImageModifiedCount |
Protected Types inherited from osg::Texture | |
| typedef buffered_value < unsigned int > | TexParameterDirtyList |
| typedef buffered_object < ref_ptr< TextureObject > > | TextureObjectBuffer |
Protected Member Functions | |
| virtual | ~Texture2D () |
| virtual void | computeInternalFormat () const |
| void | allocateMipmap (State &state) const |
| bool | textureObjectValid (State &state) const |
Protected Member Functions inherited from osg::Texture | |
| virtual | ~Texture () |
| void | computeInternalFormatWithImage (const osg::Image &image) const |
| void | computeRequiredTextureDimensions (State &state, const osg::Image &image, GLsizei &width, GLsizei &height, GLsizei &numMipmapLevels) const |
| void | computeInternalFormatType () const |
| void | applyTexParameters (GLenum target, State &state) const |
| bool | isHardwareMipmapGenerationEnabled (const State &state) const |
| bool | isSafeToUnrefImageData (const State &state) const |
| GenerateMipmapMode | mipmapBeforeTexImage (const State &state, bool hardwareMipmapOn) const |
| void | mipmapAfterTexImage (State &state, GenerateMipmapMode beforeResult) const |
| void | generateMipmap (State &state) const |
| int | compareTexture (const Texture &rhs) const |
| int | compareTextureObjects (const Texture &rhs) const |
Protected Member Functions inherited from osg::StateAttribute | |
| virtual | ~StateAttribute () |
| void | addParent (osg::StateSet *object) |
| void | removeParent (osg::StateSet *object) |
Protected Member Functions inherited from osg::Object | |
| virtual | ~Object () |
Protected Member Functions inherited from osg::Referenced | |
| virtual | ~Referenced () |
| void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
| void | deleteUsingDeleteHandler () const |
Friends | |
| class | SubloadCallback |
Encapsulates OpenGL 2D texture functionality. Doesn't support cube maps, so ignore face parameters.
Definition at line 24 of file Texture2D.h.
|
protected |
Definition at line 165 of file Texture2D.h.
| osg::Texture2D::Texture2D | ( | ) |
| osg::Texture2D::Texture2D | ( | Image * | image | ) |
| osg::Texture2D::Texture2D | ( | const Texture2D & | text, |
| const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
| ) |
Copy constructor using CopyOp to manage deep vs shallow copy.
|
protectedvirtual |
Allocate mipmap levels of the texture by subsequent calling of glTexImage* function.
Implements osg::Texture.
Bind the texture object. If the texture object hasn't already been compiled, create the texture mipmap levels.
Implements osg::Texture.
Reimplemented in osgText::GlyphTexture.
|
virtual |
Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.
Implements osg::StateAttribute.
Reimplemented in osgText::GlyphTexture.
|
protectedvirtual |
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.
| void osg::Texture2D::copyTexSubImage2D | ( | State & | state, |
| int | xoffset, | ||
| int | yoffset, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
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.
|
inline |
Gets the texture image.
Definition at line 47 of file Texture2D.h.

|
inline |
Gets the const texture image.
Definition at line 50 of file Texture2D.h.
|
inlinevirtual |
Gets the texture image, ignoring face.
Implements osg::Texture.
Definition at line 63 of file Texture2D.h.
|
inlinevirtual |
Gets the const texture image, ignoring face.
Implements osg::Texture.
Definition at line 66 of file Texture2D.h.
|
inline |
Definition at line 52 of file Texture2D.h.
|
inlinevirtual |
Gets the number of images that can be assigned to the Texture.
Implements osg::Texture.
Definition at line 69 of file Texture2D.h.
|
inline |
Gets the number of mipmap levels created.
Definition at line 118 of file Texture2D.h.
|
inline |
Definition at line 107 of file Texture2D.h.
|
inline |
Definition at line 109 of file Texture2D.h.
|
inlinevirtual |
Reimplemented from osg::Texture.
Definition at line 85 of file Texture2D.h.
|
inlinevirtual |
Reimplemented from osg::Texture.
Definition at line 84 of file Texture2D.h.
|
inlinevirtual |
Implements osg::Texture.
Definition at line 41 of file Texture2D.h.
|
inlinevirtual |
Reimplemented from osg::Texture.
Definition at line 83 of file Texture2D.h.
Sets the texture image.

Sets the texture image, ignoring face.
Implements osg::Texture.
Definition at line 60 of file Texture2D.h.


|
inline |
Helper function. Sets the number of mipmap levels created for this texture. Should only be called within an osg::Texture::apply(), or during a custom OpenGL texture load.
Definition at line 115 of file Texture2D.h.
|
inline |
Definition at line 105 of file Texture2D.h.
|
inline |
Definition at line 81 of file Texture2D.h.
|
inline |
Sets the texture width and height. If width or height are zero, calculate the respective value from the source image size.
Definition at line 74 of file Texture2D.h.
|
inline |
Definition at line 80 of file Texture2D.h.
|
protected |
Return true of the TextureObject assigned to the context associate with osg::State object is valid.

|
friend |
Definition at line 153 of file Texture2D.h.
Definition at line 155 of file Texture2D.h.
|
mutableprotected |
Definition at line 166 of file Texture2D.h.
|
mutableprotected |
Number of mipmap levels created.
Definition at line 161 of file Texture2D.h.
|
protected |
Definition at line 163 of file Texture2D.h.
|
mutableprotected |
Definition at line 158 of file Texture2D.h.
|
mutableprotected |
Subloaded images can have different texture and image sizes.
Definition at line 158 of file Texture2D.h.
1.8.8