ezEngine  Release 25.03
ezRasterizerObject Class Reference
Inheritance diagram for ezRasterizerObject:

Static Public Member Functions

static ezSharedPtr< const ezRasterizerObjectGetObject (ezStringView sUniqueName)
 If an object with the given name has been created before, it is returned, otherwise nullptr is returned. More...
 
static ezSharedPtr< const ezRasterizerObjectCreateBox (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 ezRasterizerObjectCreateQuadX (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 ezRasterizerObjectCreateMesh (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. More...
 

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.
 

Member Function Documentation

◆ CreateMesh()

ezSharedPtr< const ezRasterizerObject > ezRasterizerObject::CreateMesh ( ezStringView  sUniqueName,
const ezGeometry 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.

◆ GetObject()

ezSharedPtr< const ezRasterizerObject > ezRasterizerObject::GetObject ( ezStringView  sUniqueName)
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.


The documentation for this class was generated from the following files: