![]() TGE Version 1.5.2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SceneRenderImage Class Reference#include <sceneState.h>
Inheritance diagram for SceneRenderImage: ![]() Detailed DescriptionA SceneRenderImage is used by the SceneState/SceneGraph to sort objects for rendering order.The scene graph calls prepRenderImage on every SceneObject it intends to render every frame. The SceneObject will then insert one or more SceneRenderImages. These images describe what will be rendered by the object, whether it will have transparency, what type of object it is, etc. These images are sorted by SortType, and then rendered. If any images are translucent, the SceneState builds a BSP tree and then evaluates it back to front.
Member Enumeration DocumentationSort type indicates when the image should be rendered and how it should be sorted. The rendering order is this:
Point and Plane are only valid if the object is translucent. The variables 'plane' and 'poly' are used for these sort types. If the point type is used, the actual point is specified in poly[0]
Constructor & Destructor Documentation
Field DocumentationThe SceneObject this image represents.
Is this image translucent?
If two objects have the same points, this is used to determine sorting order.
If this is set to true, the object will render using a low-res version of its textures.
The plane if SortType::Plane is used.
If SortType::Plane is used, this is the quad that defines the bounds for the plane. If SortType::Point is used, then poly[0] is the point, and the rest is ignored. Area of the polygon defined by poly[].
This is used to sort objects of the same SortType into order if the objects have no translucency.
Linked list implementation.
|