public abstract class Module extends java.lang.Object implements IDestroyable
| Modifier and Type | Field and Description |
|---|---|
protected HydraX |
hydraX
Hydrax
|
protected MeshOptions |
meshOptions
Module mesh options
|
protected Noise |
noise
Noise generator pointer
|
| Constructor and Description |
|---|
Module(HydraX hydraX,
java.lang.String name,
Noise noise,
MeshOptions meshOptions)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
_calculeNormals(VertexData vertices,
int complexity)
Calculate current normals
|
protected static GeometryData |
_createGrid(int complexity) |
protected static void |
_smooth(VertexData vertices,
int complexity)
Smooth the height data
|
protected void |
_syncStrength(float optionsStrength) |
void |
destroy(IGLApi glApi) |
abstract float |
getHeigth(float x,
float z)
Get the current height at a specified world-space point
|
protected abstract boolean |
isVisible() |
protected boolean |
loadConfig(ConfigManager config)
Load config
|
protected void |
saveConfig(java.lang.StringBuffer data)
Save config
|
protected abstract void |
update(float timeSinceLastFrame)
Call it each frame, to update time related informations
|
protected abstract void |
updateView()
Call it each frame, usually after
update(float), to update view related informations |
protected abstract void |
updateWaitEnd()
Call it each frame internally to make sure asynchronous work update has ended (if any)
|
protected final HydraX hydraX
protected Noise noise
protected MeshOptions meshOptions
public Module(HydraX hydraX, java.lang.String name, Noise noise, MeshOptions meshOptions)
name - Module namenoise - Noise generator pointermeshOptions - Mesh optionsnormalMode - Normal generation modepublic void destroy(IGLApi glApi)
destroy in interface IDestroyableprotected abstract boolean isVisible()
protected abstract void update(float timeSinceLastFrame)
timeSinceLastFrame - Time since last frame(delta)protected abstract void updateView()
update(float), to update view related informationsprotected abstract void updateWaitEnd()
public abstract float getHeigth(float x,
float z)
x,z - X/Z World positionprotected void saveConfig(java.lang.StringBuffer data)
data - String referenceprotected boolean loadConfig(ConfigManager config)
config - ConfigManager referenceprotected static final GeometryData _createGrid(int complexity)
protected final void _syncStrength(float optionsStrength)
protected static final void _smooth(VertexData vertices, int complexity)
protected static final void _calculeNormals(VertexData vertices, int complexity)
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