![]() |
ezEngine Release 26.3
|
#include <RasterizerObject.h>

Static Public Member Functions | |
| static ezSharedPtr< const ezRasterizerObject > | GetObject (ezStringView sUniqueName) |
| If an object with the given name has been created before, it is returned, otherwise nullptr is returned. | |
| static ezSharedPtr< const ezRasterizerObject > | CreateBox (const ezVec3 &vFullExtents) |
| Creates a box object with the specified dimensions. If such a box was created before, the same pointer is returned. | |
| static ezSharedPtr< const ezRasterizerObject > | CreateQuadX (const ezVec2 &vYZExtents) |
| Creates a quad pointing into the positive X direction with the dimensions along Y and Z. If such a quad was created before, the same pointer is returned. | |
| static ezSharedPtr< const ezRasterizerObject > | CreateMesh (ezStringView sUniqueName, const ezGeometry &geometry) |
| Creates an object with the given geometry. If an object with the same name was created before, that pointer is returned instead. | |
Friends | |
| class | ezRasterizerView |
Additional Inherited Members | |
Public Member Functions inherited from ezRefCounted | |
| virtual | ~ezRefCounted ()=default |
| Adds a virtual destructor. | |
Public Member Functions inherited from ezRefCountingImpl | |
| ezRefCountingImpl ()=default | |
| Constructor. | |
| ezRefCountingImpl (const ezRefCountingImpl &rhs) | |
| void | operator= (const ezRefCountingImpl &rhs) |
| ezInt32 | AddRef () const |
| Increments the reference counter. Returns the new reference count. | |
| ezInt32 | ReleaseRef () const |
| Decrements the reference counter. Returns the new reference count. | |
| bool | IsReferenced () const |
| Returns true if the reference count is greater than 0, false otherwise. | |
| ezInt32 | GetRefCount () const |
| Returns the current reference count. | |
Represents a mesh for CPU-based software rasterization and occlusion culling.
Used for occlusion testing in ezRasterizerView. Objects are cached by name and shared across users. Internally uses a software rasterizer to determine if objects are occluded by other geometry.
|
static |
Creates an object with the given geometry. If an object with the same name was created before, that pointer is returned instead.
It is assumed that the same name will only be used for identical geometry.
|
static |
If an object with the given name has been created before, it is returned, otherwise nullptr is returned.
Use this to quickly query for an existing object. Call CreateMesh() in case the object doesn't exist yet.