gestalt.render
Interface Drawable

All Known Subinterfaces:
AbstractBin
All Known Implementing Classes:
AbstractDrawable, AbstractParticleDrawer, AbstractShape, AttributeParticleDrawer, BilateralBin, Bin3DFinish, BoundingBoxView, Camera, CameraFrustumView, Cube, Disk, Disposer, EventHandler, FBORandomizer, Fog, FrameBufferDepth, FrameFinish, FrameGrabber, FrameSetup, GPGPU2DParticlesSimulation, GPGPU2DParticlesSimulation.ParticleDrawer, GPGPU3DParticlesSimulation, GPGPU3DParticlesSimulation.DataReadBack, GPGPUCAWater, JoglAccumulationBuffer, JoglBin3DFinish, JoglBoundingBox, JoglBoundingBoxView, JoglCamera, JoglCameraViewPlane, JoglColorBufferCopy, JoglCube, JoglCulling, JoglDisk, JoglDisposableBin, JoglEventHandler, JoglFBODataReader, JoglFog, JoglFrameBufferCopy, JoglFrameBufferObject, JoglFrameFinish, JoglFrameGrabber, JoglFrameSetup, JoglGLSLShadowMap, JoglGLUTBitmapFont, JoglIndexedTriangleMesh, JoglLEDDisplay, JoglLight, JoglLine, JoglMesh, JoglMultiTexPlane, JoglOrigin, JoglOrthoFinish, JoglOrthoSetup, JoglPersonalPointView, JoglPicker, JoglPlane, JoglPointCloud, JoglPointSpriteCloud, JoglQuad, JoglQuad, JoglQuadBezierCurve, JoglQuadLine, JoglQuads, JoglQuads, JoglRecorderBin, JoglScreenWorldCoordinates, JoglShadowMap, JoglShadowMapDisplay, JoglSoftEdger, JoglSphere, JoglTerrain, JoglTextureReader, JoglTransformNode, JoglTriangle, JoglTriangles, JoglVBOMesh, Light, Line, Mesh, Model, Model, MovieGrabber, NativeDrawable, NativeMovieTextureProducer, Origin, PDFWriter, Picker, PlainParticleDrawer, Plane, Quad, QuadBezierCurve, QuadLine, Quads, RenderBin, ShaderManager, ShapeBin, Sphere, TesselatedQuad, TestBumpMappingGLSL.AttributeDrawable, TestDepthOfField.MyDrawable, TestSoftShadows.MyDrawable, TransformMatrixView, TransformNode, Triangle, Triangles, UsingMinimalRenderer, UsingPFonts.PFontRenderer, WindowManager

public interface Drawable

the drawable is the core interface in the gestalt library. drawables are collected to be drawn at a specific time. they can be everything from controller, plugins or actual shapes.


Method Summary
 void add(Drawable theDrawable)
          this method is commonly used to store children of a drawable.
 void draw(GLContext theRenderContext)
          this method is used to draw the drawable, when the context is ready.
 float[] getSortData()
          returns the data upon which a sort value is calculated.
 float getSortValue()
          returns the last sort value.
 boolean isActive()
          returns whether the drawable is active.
 boolean isSortable()
          returns true if the 'drawable' should be sorted before drawing.
 void setSortValue(float theSortValue)
          caches the current sort value.
 

Method Detail

draw

void draw(GLContext theRenderContext)
this method is used to draw the drawable, when the context is ready. although the behavior sometimes varies and doesn t always need to have a visual representation depending on the implementation.

Parameters:
theRenderContext - GLContext

add

void add(Drawable theDrawable)
this method is commonly used to store children of a drawable.

Parameters:
theDrawable - Drawable

isActive

boolean isActive()
returns whether the drawable is active. it is commonly implemented so that the drawables 'draw' method will be ommitted if 'isActive' return false, although this behavior can vary depending on the implementation.

Returns:
boolean

getSortValue

float getSortValue()
returns the last sort value.

Returns:
float

setSortValue

void setSortValue(float theSortValue)
caches the current sort value.

Parameters:
theSortValue - float

getSortData

float[] getSortData()
returns the data upon which a sort value is calculated.

Returns:
float[]

isSortable

boolean isSortable()
returns true if the 'drawable' should be sorted before drawing.

Returns:
boolean


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