const Renderable * lod(int lod_index) const
Returns the Renderable object representing the LOD level specifed by lod_index.
Uniform * getUniform(const char *name)
Equivalent to getUniformSet()->getUniform(name, get_mode)
const std::vector< ref< Uniform > > & uniforms() const
Equivalent to getUniformSet()->uniforms()
Transform * transform()
Returns the Transform bound tho an Actor.
int evaluateLOD(Camera *camera)
bool isNull() const
Returns true if the AABB is null.
virtual ~Actor()
Destructor.
long long mTransformUpdateTick
bool boundsDirty() const
Returns whether the bounding sphere or bounding box are "dirty", that is, meant to be recomputed...
bool boundsDirty() const
Returns whether the Actor's bounding box and sphere are up to date.
UniformSet * gocUniformSet()
Creates and/or returns the installed UniformSet.
void dispatchOnActorDelete()
Calls all the onActorDelete() of all the ActorEventCallback installed on this Actor.
const UniformSet * getUniformSet() const
Returns the installed UniformSet.
void createOcclusionQuery()
For internal use only.
void eraseAllUniforms()
Equivalent to getUniformSet()->eraseAllUniforms()
Visualization Library main namespace.
long long mBoundsUpdateTick
void transformed(AABB &out, const mat4 &mat) const
Transforms an AABB by the given matrix and returns it into the out parameter.
An abstract class that represents all the objects that can be rendered.
void setUniform(Uniform *uniform)
Equivalent to getUniformSet()->setUniform(uniform)
void deleteOcclusionQuery()
For internal use only.
The Sphere class defines a sphere using a center and a radius using vl::real precision.
void setLODs(Renderable *lod0, Renderable *lod1=NULL, Renderable *lod2=NULL, Renderable *lod3=NULL, Renderable *lod4=NULL, Renderable *lod5=NULL)
Utility function to assign one or more Renderable[s] to one or more LOD levels.
Uniform * gocUniform(const char *name)
Equivalent to getUniformSet()->getUniform(name, get_mode)
void computeBounds()
Computes the bounding box and bounding sphere of an Actor if boundsDirty().
void setLod(int lod_index, Renderable *renderable)
Sets the Renderable object representing the LOD level specifed by lod_index.
void eraseUniform(const char *name)
Equivalent to getUniformSet()->eraseUniform(name)
Represents a virtual camera defining, among other things, the point of view from which scenes can be ...
const AABB & boundingBox() const
Returns the bounding box of a Renderable without recomputing the bounds if dirty. ...
ref< LODEvaluator > mLODEvaluator
long long boundsUpdateTick() const
Returns the bounds-update-tick which is a counter incremented every time the bounding box or bounding...