Class FloatTexture2D
- java.lang.Object
-
- com.metsci.glimpse.core.gl.texture.AbstractTexture
-
- com.metsci.glimpse.core.gl.texture.FloatTexture2D
-
- All Implemented Interfaces:
DrawableTexture,Texture
public class FloatTexture2D extends AbstractTexture implements DrawableTexture
A two dimensional texture storing float values.- Author:
- osborn
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFloatTexture2D.MutatorFloat2D
-
Constructor Summary
Constructors Constructor Description FloatTexture2D(double[] min, double[] max, int n0, int n1, boolean centers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(GlimpseContext context, DrawableTextureProgram program, int texUnit, Collection<TextureUnit<Texture>> multiTextureList)Draw the texture using the provided program.intgetMode()voidmutate(FloatTexture2D.MutatorFloat2D mutator)intsVbo(GlimpseContext context)intxyVbo(GlimpseContext context)-
Methods inherited from class com.metsci.glimpse.core.gl.texture.AbstractTexture
dispose, getDimensionSize, getHandles, getNumDimension, isDirty, makeDirty, prepare
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.metsci.glimpse.core.gl.texture.Texture
dispose, getDimensionSize, getHandles, getNumDimension, isDirty, makeDirty, prepare
-
-
-
-
Method Detail
-
xyVbo
public int xyVbo(GlimpseContext context)
-
sVbo
public int sVbo(GlimpseContext context)
-
getMode
public int getMode()
-
draw
public void draw(GlimpseContext context, DrawableTextureProgram program, int texUnit, Collection<TextureUnit<Texture>> multiTextureList)
Description copied from interface:DrawableTextureDraw the texture using the provided program.- Specified by:
drawin interfaceDrawableTexture- Parameters:
context- GlimpseContext for drawingtexUnit- Texture unit to use while drawingmultiTextureList- Other textures to activate (and their texture units) for multitexturing purposes
-
mutate
public void mutate(FloatTexture2D.MutatorFloat2D mutator)
-
-