public class ProjectedGrid extends Module
| Modifier and Type | Class and Description |
|---|---|
static class |
ProjectedGrid.Options
Struct which contains HydraX projected grid module options
|
| Modifier and Type | Field and Description |
|---|---|
static float |
MAX_FAR_CLIP_DISTANCE |
static float |
MIN_NEAR_CLIP_DISTANCE |
static boolean |
USE_THREADING |
hydraX, meshOptions, noise| Constructor and Description |
|---|
ProjectedGrid(HydraX h,
Noise n,
Plane _basePlane)
Constructor
|
ProjectedGrid(HydraX h,
Noise n,
Plane basePlane,
ProjectedGrid.Options options)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(IGLApi glApi) |
float |
getHeigth(float x,
float z)
Get the current height at a specified world-space point
|
ProjectedGrid.Options |
getOptions()
Get current options
|
protected boolean |
loadConfig(ConfigManager config)
Load config
|
protected void |
saveConfig(java.lang.StringBuffer data)
Save config
|
void |
setOptions(ProjectedGrid.Options _options)
Set options
|
protected void |
update(float timeSinceLastFrame)
Call it each frame, to update time related informations
|
protected void |
updateView()
Call it each frame, to update view related informations
|
protected void |
updateWaitEnd()
Call it each frame internally to make sure asynchronous work update has ended (if any)
|
_calculeNormals, _createGrid, _smooth, _syncStrength, isVisiblepublic static float MIN_NEAR_CLIP_DISTANCE
public static float MAX_FAR_CLIP_DISTANCE
public static boolean USE_THREADING
public ProjectedGrid(HydraX h, Noise n, Plane _basePlane)
h - HydraX manager pointern - HydraX noise module_basePlane - Noise base planepublic ProjectedGrid(HydraX h, Noise n, Plane basePlane, ProjectedGrid.Options options)
h - HydraX manager pointern - HydraX noise modulebasePlane - Noise base planeoptions - Perlin optionspublic void destroy(IGLApi glApi)
destroy in interface IDestroyabledestroy in class Modulepublic void setOptions(ProjectedGrid.Options _options)
_options - Optionspublic ProjectedGrid.Options getOptions()
protected void saveConfig(java.lang.StringBuffer data)
saveConfig in class Moduledata - String referenceprotected boolean loadConfig(ConfigManager config)
loadConfig in class Moduleconfig - ConfigManager referenceprotected void update(float timeSinceLastFrame)
protected void updateView()
updateView in class Moduleprotected void updateWaitEnd()
ModuleupdateWaitEnd in class Modulepublic float getHeigth(float x,
float z)
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