Package gov.nasa.worldwind.render
Class Texture
- java.lang.Object
-
- gov.nasa.worldwind.render.Texture
-
- All Implemented Interfaces:
RenderResource
public class Texture extends java.lang.Object implements RenderResource
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
bindTexture(DrawContext dc)
int
getByteCount()
int
getHeight()
Matrix3
getTexCoordTransform()
int
getTexParameter(int name)
int
getTextureName(DrawContext dc)
int
getWidth()
void
release(DrawContext dc)
Frees any resources associated with this instance.void
setTexParameter(int name, int param)
-
-
-
Method Detail
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
getByteCount
public int getByteCount()
-
getTexCoordTransform
public Matrix3 getTexCoordTransform()
-
getTexParameter
public int getTexParameter(int name)
-
setTexParameter
public void setTexParameter(int name, int param)
-
release
public void release(DrawContext dc)
Description copied from interface:RenderResource
Frees any resources associated with this instance. After this method returns the rendering resource is invalid, and any associated GL object is deleted.- Specified by:
release
in interfaceRenderResource
- Parameters:
dc
- the current draw context
-
getTextureName
public int getTextureName(DrawContext dc)
-
bindTexture
public boolean bindTexture(DrawContext dc)
-
-