Class Mesh
Inheritance
java.lang.Object
Mesh
Syntax
public class Mesh implements AssetI
Constructors
Mesh(String name, Model model, long context_handle, Material initialMaterial)
Declaration
public Mesh(String name, Model model, long context_handle, Material initialMaterial)
Parameters
Type |
Name |
Description |
String |
name |
The name of the file or the models name in the file.
|
Model |
model |
|
long |
context_handle |
The handle of the context this is being bound to.
|
Material |
initialMaterial |
The Material this mesh will start off with, more can be added after construction. If this is null then the material will be set to the default material of the engine.
|
Methods
bindModel()
Declaration
Returns
bindModel(int draw_usage)
Adds the index model to open GL using the draw_option.
Declaration
public Mesh bindModel(int draw_usage)
Parameters
Type |
Name |
Description |
int |
draw_usage |
This hints the GL Implementation on how the data provided will be used.
|
Returns
decAndGetRef()
Declaration
public int decAndGetRef()
Returns
Overrides
decRef()
Decrements the asset's reference count by one.
Declaration
Overrides
deleteMesh()
Declaration
dispose()
Declaration
Overrides
draw(String vaoName, int draw_option)
Declaration
public void draw(String vaoName, int draw_option)
Parameters
Type |
Name |
Description |
String |
vaoName |
|
int |
draw_option |
|
getMat()
Declaration
Returns
getMeshName()
Declaration
public String getMeshName()
Returns
getRefs()
Returns the integer representation of the references.
Declaration
Returns
Type |
Description |
int |
The count of refrences.
|
Overrides
getSize()
Declaration
Returns
incAndGetRef()
Declaration
public int incAndGetRef()
Returns
Overrides
incRef()
Increments the asset's reference count by one.
Declaration
Overrides
setMat(Material mat)
Declaration
public void setMat(Material mat)
Parameters