XII Release 0.1.0
Loading...
Searching...
No Matches
xiiRasterizerObject Class Reference
Inheritance diagram for xiiRasterizerObject:
[legend]

Static Public Member Functions

static xiiSharedPtr< const xiiRasterizerObjectGetObject (xiiStringView sUniqueName)
 If an object with the given name has been created before, it is returned, otherwise nullptr is returned.
 
static xiiSharedPtr< const xiiRasterizerObjectCreateBox (const xiiVec3 &vFullExtents)
 Creates a box object with the specified dimensions. If such a box was created before, the same pointer is returned.
 
static xiiSharedPtr< const xiiRasterizerObjectCreateMesh (xiiStringView sUniqueName, const xiiGeometry &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 xiiRasterizerView
 

Additional Inherited Members

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

Member Function Documentation

◆ CreateMesh()

xiiSharedPtr< const xiiRasterizerObject > xiiRasterizerObject::CreateMesh ( xiiStringView sUniqueName,
const xiiGeometry & 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()

xiiSharedPtr< const xiiRasterizerObject > xiiRasterizerObject::GetObject ( xiiStringView 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: