gestalt.impl.jogl.shape.material
Class JoglTexturePlugin

java.lang.Object
  extended by gestalt.shape.material.TexturePlugin
      extended by gestalt.impl.jogl.shape.material.JoglTexturePlugin
All Implemented Interfaces:
Disposable, MaterialPlugin
Direct Known Subclasses:
FrameBufferDepth, JoglCustomMipMap, JoglFrameBufferObject, JoglMaterialPluginCubeMap, JoglMaterialPluginNonPowerOfTwoTexture, JoglMaterialPluginTexture3D, JoglPointSprites, JoglProcessingFrameBufferObject, JoglProxyTexturePlugin, JoglUtilTexture

public class JoglTexturePlugin
extends TexturePlugin


Field Summary
 
Fields inherited from class gestalt.shape.material.TexturePlugin
ERROR_BITMAP_REFERANCE_NULL, ERROR_EXCEEDED_SIZE, HINT_TEXTURE_FLIP_Y_AXIS
 
Constructor Summary
JoglTexturePlugin()
           
 
Method Summary
 void begin(GLContext theRenderContext, Material theParent)
           
 void bind(GL gl)
           
 void disable(GL gl)
           
 void dispose(GLContext theRenderContext)
          tries to properly dispose an object.
 void enable(GL gl)
           
 void end(GLContext theRenderContext, Material theParent)
           
 int getFormat(int theType)
           
 int getMaxTextureSize()
           
 int getOpenGLTextureID()
           
 int getOpenGLType(int theType)
           
 java.lang.String getTextureTargetAsString()
           
 void initStatic(GL gl)
           
 void setInitialized()
           
 void setOpenGLTextureID(int theOpenGLTextureID)
           
 void update(GL gl, GLU glu)
           
 
Methods inherited from class gestalt.shape.material.TexturePlugin
bitmap, bordercolor, getFilterType, getPixelHeight, getPixelWidth, getTextureTarget, getTextureUnit, getWrapMode, isInitialized, load, nonpoweroftwotexturerescale, position, reload, rotation, scale, setBitmapRef, setFilterType, setTextureTarget, setTextureUnit, setWrapMode, validateBitmapSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoglTexturePlugin

public JoglTexturePlugin()
Method Detail

initStatic

public void initStatic(GL gl)

bind

public void bind(GL gl)

enable

public void enable(GL gl)

disable

public void disable(GL gl)

begin

public void begin(GLContext theRenderContext,
                  Material theParent)

end

public void end(GLContext theRenderContext,
                Material theParent)

setInitialized

public void setInitialized()

update

public void update(GL gl,
                   GLU glu)

getOpenGLTextureID

public int getOpenGLTextureID()

setOpenGLTextureID

public void setOpenGLTextureID(int theOpenGLTextureID)

getOpenGLType

public int getOpenGLType(int theType)

getFormat

public int getFormat(int theType)

getMaxTextureSize

public int getMaxTextureSize()
Specified by:
getMaxTextureSize in class TexturePlugin

getTextureTargetAsString

public java.lang.String getTextureTargetAsString()

dispose

public void dispose(GLContext theRenderContext)
Description copied from interface: Disposable
tries to properly dispose an object. for example: an opengl texture object would try to remove its opengl counterpart.



processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009