public class PhysicRenderer extends java.lang.Object implements IDestroyable
| Constructor and Description |
|---|
PhysicRenderer(boolean withCache,
AssetManager assets) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(IGL gl)
Destroy this
PhysicRendererSome OpenGL data may have been cached, is specified in the constructor |
static void |
drawCollisionContactsDebug(Renderer renderer,
PhysicWorld physic)
Draw all the contact points as white line
|
void |
drawCollisionObjectDebug(Renderer renderer,
CollisionObject collisionObject,
RenderState renderState,
boolean setColor,
float a,
Lights<?> lights,
boolean wireframe)
Draw collision shape of the specified
CollisionObject |
void |
drawCollisionShapeDebug(Renderer renderer,
CollisionShape shape,
Transform t,
RenderState renderState,
Lights<?> lights,
boolean solid,
boolean wireframe) |
Model |
getCache(CollisionShape collisionShape) |
int |
getHighlightCompoundChild() |
void |
setHighlightCompoundChild(int highlightCompoundChild) |
public PhysicRenderer(boolean withCache,
AssetManager assets)
withCache - true to cache complex geometryassets - AssetManager an AssetManager with shader async generationjava.lang.IllegalArgumentException - if withCache is true but assets is nullpublic final void setHighlightCompoundChild(int highlightCompoundChild)
public final int getHighlightCompoundChild()
public final Model getCache(CollisionShape collisionShape)
public final void destroy(IGL gl)
PhysicRendererdestroy in interface IDestroyableglApi - OpenGL contextpublic static final void drawCollisionContactsDebug(Renderer renderer, PhysicWorld physic)
glApi - OpenGL contextphysic - PhysicWorldpublic final void drawCollisionObjectDebug(Renderer renderer, CollisionObject collisionObject, RenderState renderState, boolean setColor, float a, Lights<?> lights, boolean wireframe)
CollisionObjectglApi - OpenGL contextcollisionObject - a CollisionObjectc - optional color, or null to use default colorlights - optional Lightswireframe - draw wire framepublic final void drawCollisionShapeDebug(Renderer renderer, CollisionShape shape, Transform t, RenderState renderState, Lights<?> lights, boolean solid, boolean wireframe)
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com