gestalt.candidates.materialplugin.joglutiltexture
Class JoglUtilTexture

java.lang.Object
  extended by gestalt.shape.material.TexturePlugin
      extended by gestalt.impl.jogl.shape.material.JoglTexturePlugin
          extended by gestalt.candidates.materialplugin.joglutiltexture.JoglUtilTexture
All Implemented Interfaces:
Disposable, MaterialPlugin

public class JoglUtilTexture
extends JoglTexturePlugin

this class provides a proxy for the texture class shipped with the jogl util library. it is by far not fully implemented.


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

Constructor Detail

JoglUtilTexture

public JoglUtilTexture()
Method Detail

getTextureRef

public Texture getTextureRef()

setTextureRef

public void setTextureRef(Texture theJoglUtilTexture)

scheduleTextureData

public void scheduleTextureData(TextureData theScheduledTextureData)

begin

public void begin(GLContext theRenderContext,
                  Material theParent)
Specified by:
begin in interface MaterialPlugin
Overrides:
begin in class JoglTexturePlugin

getTextureTarget

public final int getTextureTarget()
Overrides:
getTextureTarget in class TexturePlugin

getOpenGLTextureID

public int getOpenGLTextureID()
Overrides:
getOpenGLTextureID in class JoglTexturePlugin

getPixelWidth

public int getPixelWidth()
Overrides:
getPixelWidth in class TexturePlugin

getPixelHeight

public int getPixelHeight()
Overrides:
getPixelHeight in class TexturePlugin

load

public void load(Bitmap theBitmap)
Overrides:
load in class TexturePlugin

reload

public void reload()
Overrides:
reload in class TexturePlugin

bitmap

public Bitmap bitmap()
Overrides:
bitmap in class TexturePlugin

setBitmapRef

public void setBitmapRef(Bitmap theBitmap)
Overrides:
setBitmapRef in class TexturePlugin

getOpenGLType

public int getOpenGLType(int theType)
Overrides:
getOpenGLType in class JoglTexturePlugin

getFormat

public int getFormat(int theType)
Overrides:
getFormat in class JoglTexturePlugin

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.

Specified by:
dispose in interface Disposable
Overrides:
dispose in class JoglTexturePlugin


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