Package gov.nasa.worldwind.draw
Class DrawableSurfaceTexture
- java.lang.Object
-
- gov.nasa.worldwind.draw.DrawableSurfaceTexture
-
- All Implemented Interfaces:
Drawable
,SurfaceTexture
public class DrawableSurfaceTexture extends java.lang.Object implements Drawable, SurfaceTexture
-
-
Field Summary
Fields Modifier and Type Field Description Color
color
SurfaceTextureProgram
program
Sector
sector
Matrix3
texCoordMatrix
Texture
texture
-
Constructor Summary
Constructors Constructor Description DrawableSurfaceTexture()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
bindTexture(DrawContext dc)
void
draw(DrawContext dc)
Sector
getSector()
Matrix3
getTexCoordTransform()
static DrawableSurfaceTexture
obtain(Pool<DrawableSurfaceTexture> pool)
void
recycle()
DrawableSurfaceTexture
set(SurfaceTextureProgram program, Sector sector, Texture texture, Matrix3 texCoordMatrix)
-
-
-
Field Detail
-
program
public SurfaceTextureProgram program
-
sector
public final Sector sector
-
color
public final Color color
-
texture
public Texture texture
-
texCoordMatrix
public final Matrix3 texCoordMatrix
-
-
Method Detail
-
obtain
public static DrawableSurfaceTexture obtain(Pool<DrawableSurfaceTexture> pool)
-
set
public DrawableSurfaceTexture set(SurfaceTextureProgram program, Sector sector, Texture texture, Matrix3 texCoordMatrix)
-
draw
public void draw(DrawContext dc)
-
getSector
public Sector getSector()
- Specified by:
getSector
in interfaceSurfaceTexture
-
getTexCoordTransform
public Matrix3 getTexCoordTransform()
- Specified by:
getTexCoordTransform
in interfaceSurfaceTexture
-
bindTexture
public boolean bindTexture(DrawContext dc)
- Specified by:
bindTexture
in interfaceSurfaceTexture
-
-