osg.Texture.TextureObject¶
-
class
osg.Texture.TextureObject¶ Represents: c++ class Wraps: osg::Texture::TextureObject Bases: osg.GraphicsObjectConstructors:
-
osg.Texture.TextureObject(osg.Texture texture, unsigned id, GLenum.Value target)¶ -
Parameters: - texture (
osg.Texture) – - id (
unsigned) – - target (
GLenum.Value) –
- texture (
Methods:
-
:
bind()¶
-
:
id()¶ -
Return type: unsigned
-
:
target()¶ -
Return type: GLenum.Value
-
:
size()¶ -
Return type: unsigned
-
:
setTexture(osg.Texture texture)¶ -
Parameters: texture ( osg.Texture) –
-
:
getTexture()¶ -
Return type: osg.Texture
-
:
setTimeStamp(double timestamp)¶ -
Parameters: timestamp ( double) –
-
:
getTimeStamp()¶ -
Return type: double
-
:
setAllocated(bool allocated)¶ -
Parameters: allocated ( bool) –
-
:
setAllocated()
-
:
setAllocated(int numMipmapLevels, GLenum.Value internalFormat, unsigned width, unsigned height, unsigned depth, int border) -
Parameters: - numMipmapLevels (
int) – - internalFormat (
GLenum.Value) – - width (
unsigned) – - height (
unsigned) – - depth (
unsigned) – - border (
int) –
- numMipmapLevels (
-
:
isAllocated()¶ -
Return type: bool
-
:
isReusable()¶ -
Return type: bool
-
:
release()¶
-