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(IGLApi glApi)
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,
boolean setColor,
Lights<?> lights,
boolean solid,
boolean wireframe) |
Model |
getCache(CollisionShape collisionShape) |
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 Model getCache(CollisionShape collisionShape)
public final void destroy(IGLApi glApi)
PhysicRendererdestroy in interface IDestroyablegl - OpenGL contextpublic static final void drawCollisionContactsDebug(Renderer renderer, PhysicWorld physic)
public final void drawCollisionObjectDebug(Renderer renderer, CollisionObject collisionObject, RenderState renderState, boolean setColor, float a, Lights<?> lights, boolean wireframe)
CollisionObjectrenderer - the RenderercollisionObject - a CollisionObjectlights - optional Lightswireframe - draw wire framepublic final void drawCollisionShapeDebug(Renderer renderer, CollisionShape shape, Transform t, RenderState renderState, boolean setColor, Lights<?> lights, boolean solid, boolean wireframe)
Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com