32 #ifndef RenderQueue_INCLUDE_ONCE 33 #define RenderQueue_INCLUDE_ONCE 52 VL_DEBUG_SET_OBJECT_NAME()
99 for(
int i=0; i<
size(); ++i)
118 std::sort(
mList.begin(),
mList.begin() +
size(), Sorter( sorter ) );
129 return mRenderQueueSorter->operator()(a.
get(), b.
get());
142 std::vector< ref<RenderToken> >
mList;
const mat4 & viewMatrix() const
Returns the Camera's view matrix (inverse of the modeling matrix).
Transform * transform()
Returns the Transform bound tho an Actor.
std::vector< ref< RenderToken > > mListMP
bool isNull() const
Returns true if the AABB is null.
void sort(RenderQueueSorter *sorter, Camera *camera)
virtual bool mightNeedZCameraDistance() const =0
virtual bool confirmZCameraDistanceNeed(const RenderToken *) const =0
vec3 center() const
Returns the center of the AABB.
std::vector< ref< RenderToken > > mList
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
Internally used by the rendering engine.
Visualization Library main namespace.
The base class for all the reference counted objects.
RenderToken * newToken(bool multipass)
The RenderQueue class collects a list of RenderToken objects to be sorted and rendered.
fvec3 vec3
Defined as: 'typedef fvec3 vec3'. See also VL_PIPELINE_PRECISION.
const RenderToken * at(int i) const
The ref<> class is used to reference-count an Object.
std::map< float, ref< RenderQueue > > TRenderQueueMap
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. ...
The RenderQueueSorter class is the abstract base class of all the algorithms used to sort a set of Re...