Plasma Engine  2.0
Loading...
Searching...
No Matches
plRasterizerObject Class Reference
Inheritance diagram for plRasterizerObject:

Static Public Member Functions

static plSharedPtr< const plRasterizerObjectGetObject (plStringView sUniqueName)
 If an object with the given name has been created before, it is returned, otherwise nullptr is returned.
 
static plSharedPtr< const plRasterizerObjectCreateBox (const plVec3 &vFullExtents)
 Creates a box object with the specified dimensions. If such a box was created before, the same pointer is returned.
 
static plSharedPtr< const plRasterizerObjectCreateMesh (plStringView sUniqueName, const plGeometry &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 plRasterizerView
 

Additional Inherited Members

- Public Member Functions inherited from plRefCounted
virtual ~plRefCounted ()=default
 Adds a virtual destructor.
 
- Public Member Functions inherited from plRefCountingImpl
 plRefCountingImpl ()=default
 Constructor.
 
 plRefCountingImpl (const plRefCountingImpl &rhs)
 
void operator= (const plRefCountingImpl &rhs)
 
plInt32 AddRef () const
 Increments the reference counter. Returns the new reference count.
 
plInt32 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.
 
plInt32 GetRefCount () const
 Returns the current reference count.
 

Member Function Documentation

◆ CreateMesh()

plSharedPtr< const plRasterizerObject > plRasterizerObject::CreateMesh ( plStringView sUniqueName,
const plGeometry & 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()

plSharedPtr< const plRasterizerObject > plRasterizerObject::GetObject ( plStringView 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: