public abstract class ALspTextureObject extends ALspGLResource
Modifier | Constructor and Description |
---|---|
protected |
ALspTextureObject()
Constructs a new
ALspTextureObject . |
protected |
ALspTextureObject(String aSourceString)
Constructs a new
ALspTextureObject . |
Modifier and Type | Method and Description |
---|---|
void |
bind(ILcdGLDrawable aGLDrawable)
Binds the texture object to its appropriate target.
|
void |
destroy(ILcdGLDrawable aGLDrawable)
Deletes the texture object owned by this
ALspTextureObject . |
abstract long |
getBytes()
Returns the number of estimated bytes this texture object
occupies.
|
abstract int |
getTarget()
Returns the OpenGL enumerant for the texture target to which this texture
can be bound.
|
int |
getTextureObject()
Returns the OpenGL texture object id.
|
protected void |
init(ILcdGLDrawable aGLDrawable)
Creates a new OpenGL texture object.
|
protected boolean |
isDestroyed()
Returns true if this texture object has been destroyed.
|
void |
unbind(ILcdGLDrawable aGLDrawable)
Unbinds the texture object from its target (by binding texture object 0).
|
getSourceString, isBound, toString
protected ALspTextureObject()
ALspTextureObject
. No OpenGL texture object is
created until the first attempt to bind
the texture.protected void init(ILcdGLDrawable aGLDrawable)
glTexImage2D()
).aGLDrawable
- the drawablepublic void destroy(ILcdGLDrawable aGLDrawable)
ALspTextureObject
.destroy
in class ALspGLResource
aGLDrawable
- the drawablepublic void bind(ILcdGLDrawable aGLDrawable)
init(ILcdGLDrawable)
the first time it is
called.bind
in class ALspGLResource
aGLDrawable
- the drawablegetTarget()
public void unbind(ILcdGLDrawable aGLDrawable)
unbind
in class ALspGLResource
aGLDrawable
- the drawablegetTarget()
public abstract int getTarget()
public abstract long getBytes()
getBytes
in class ALspGLResource
protected boolean isDestroyed()
destroy(com.luciad.view.opengl.binding.ILcdGLDrawable)
public int getTextureObject()