public class Geometry extends java.lang.Object implements RenderObject
Instance
.
This class performs all the bookkeeping needed for on-demand tesselation and
acceleration structure building.Constructor and Description |
---|
Geometry(PrimitiveList primitives)
Create a geometry from the specified primitive aggregate.
|
Geometry(Tesselatable tesselatable)
Create a geometry from the specified tesselatable object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
update(ParameterList pl,
SunflowAPI api)
Update this object given a list of parameters.
|
public Geometry(Tesselatable tesselatable)
tesselatable
- tesselation objectpublic Geometry(PrimitiveList primitives)
primitives
- primitive list objectpublic boolean update(ParameterList pl, SunflowAPI api)
RenderObject
update
in interface RenderObject
pl
- list of parameters to read fromapi
- reference to the current scenetrue
if the update is succesfull,
false
otherwise