Class ALsp2DTextureObject
java.lang.Object
com.luciad.view.lightspeed.services.glcache.ALspGLResource
com.luciad.view.lightspeed.util.opengl.texture.ALspTextureObject
com.luciad.view.lightspeed.util.opengl.texture.ALsp2DTextureObject
- Direct Known Subclasses:
TLsp2DImageTextureObject
Manages an OpenGL 2D texture object. This abstract class provides the base
functionality to create, bind and destroy the texture object. Definition of
the texture image and other texture parameters is left up to implementing
classes.
- Since:
- 2016.1
-
Constructor Summary
ModifierConstructorDescriptionprotected
ALsp2DTextureObject
(int aWidth, int aHeight) Constructs a newALsp2DTextureObject
.protected
ALsp2DTextureObject
(String aDisplayName, int aWidth, int aHeight) Constructs a newALsp2DTextureObject
. -
Method Summary
Methods inherited from class com.luciad.view.lightspeed.util.opengl.texture.ALspTextureObject
bind, destroy, getBytes, getTextureObject, init, isDestroyed, unbind
Methods inherited from class com.luciad.view.lightspeed.services.glcache.ALspGLResource
getSourceString, isBound, toString
-
Constructor Details
-
ALsp2DTextureObject
protected ALsp2DTextureObject(int aWidth, int aHeight) Constructs a newALsp2DTextureObject
.- Parameters:
aWidth
- the width of the texture.aHeight
- the height of the texture.
-
ALsp2DTextureObject
Constructs a newALsp2DTextureObject
.- Parameters:
aDisplayName
- the display name for the texture.aWidth
- the width of the texture.aHeight
- the height of the texture.
-
-
Method Details
-
getTarget
public final int getTarget()Gets the target for this texture. This is alwaysILcdGL.GL_TEXTURE_2D
.- Specified by:
getTarget
in classALspTextureObject
- Returns:
ILcdGL.GL_TEXTURE_2D
-
getWidth
public final int getWidth()Gets the width of the texture.- Returns:
- the width in pixels
-
getHeight
public final int getHeight()Gets the height of the texture.- Returns:
- the height in pixels
-