![]() |
RAMSES Documentation
27.0.130
Information for RAMSES users and developers
|
A geometry binding together with an appearance describe how an object will be rendered to the screen. More...
#include <GeometryBinding.h>
Public Member Functions | |
status_t | setIndices (const ArrayResource &indicesResource) |
Assign a data array with data type UInt16 or UInt32 to be used when accessing vertex data. More... | |
status_t | setIndices (const ArrayBuffer &arrayBuffer) |
Assign indices (using index data buffer) to be used when accessing vertex data. More... | |
status_t | setInputBuffer (const AttributeInput &attributeInput, const ArrayResource &arrayResource, uint32_t instancingDivisor=0) |
Assign a data array resource to a given effect attribute input. More... | |
status_t | setInputBuffer (const AttributeInput &attributeInput, const ArrayResource &arrayResource, uint16_t offset, uint16_t stride) |
Assign a data array resource to a given effect attribute input with offset and stride. More... | |
status_t | setInputBuffer (const AttributeInput &attributeInput, const ArrayBuffer &arrayBuffer, uint32_t instancingDivisor=0) |
Assign a vertex attribute buffer to a given effect attribute input. More... | |
status_t | setInputBuffer (const AttributeInput &attributeInput, const ArrayBuffer &arrayBuffer, uint16_t offset, uint16_t stride) |
Assign vertex attribute buffer with offset and stride. More... | |
const Effect & | getEffect () const |
Gets the effect used to create this geometry binding. More... | |
![]() | |
sceneObjectId_t | getSceneObjectId () const |
Returns scene object id which is automatically assigned at creation time of object and is unique within scope of one scene. More... | |
sceneId_t | getSceneId () const |
Returns sceneid to which this object belongs to. More... | |
![]() | |
const char * | getName () const |
Returns the name of the object. More... | |
status_t | setName (const char *name) |
Changes the name of the object. More... | |
ERamsesObjectType | getType () const |
Gets type of the object. More... | |
bool | isOfType (ERamsesObjectType type) const |
Checks if the object is of given type. More... | |
![]() | |
status_t | validate () const |
Generates verbose validation of the object. More... | |
const char * | getValidationReport (EValidationSeverity minSeverity=EValidationSeverity_Info) const |
Provides verbose report in human readable form generated by validate. More... | |
const char * | getStatusMessage (status_t status) const |
Get the string description for a status provided by a RAMSES API function. More... | |
StatusObject (const StatusObject &other)=delete | |
Deleted copy constructor. More... | |
StatusObject & | operator= (const StatusObject &other)=delete |
Deleted copy assignment. More... | |
Public Attributes | |
class GeometryBindingImpl & | impl |
Stores internal data for implementation specifics of GeometryBinding. More... | |
![]() | |
class SceneObjectImpl & | impl |
![]() | |
class ClientObjectImpl & | impl |
![]() | |
class RamsesObjectImpl & | impl |
![]() | |
class StatusObjectImpl & | impl |
Protected Member Functions | |
GeometryBinding (GeometryBindingImpl &pimpl) | |
Constructor of GeometryBinding. More... | |
GeometryBinding (const GeometryBinding &other) | |
Copy constructor of GeometryBinding. More... | |
GeometryBinding & | operator= (const GeometryBinding &other) |
Assignment operator of GeometryBinding. More... | |
virtual | ~GeometryBinding () |
Destructor of the GeometryBinding. More... | |
![]() | |
SceneObject (SceneObjectImpl &pimpl) | |
Constructor for SceneObject. More... | |
virtual | ~SceneObject () |
Destructor of the SceneObject. More... | |
![]() | |
ClientObject (ClientObjectImpl &pimpl) | |
Constructor for ClientObject. More... | |
virtual | ~ClientObject () |
Destructor of the ClientObject. More... | |
![]() | |
RamsesObject (RamsesObjectImpl &pimpl) | |
Constructor for RamsesObject. More... | |
virtual | ~RamsesObject () |
Destructor of the RamsesObject. More... | |
![]() | |
StatusObject (StatusObjectImpl &pimpl) | |
Constructor for StatusObject. More... | |
virtual | ~StatusObject () |
Destructor of the StatusObject. More... | |
Friends | |
class | SceneImpl |
Scene is the factory for creating GeometryBinding instances. More... | |
A geometry binding together with an appearance describe how an object will be rendered to the screen.
|
explicitprotected |
Constructor of GeometryBinding.
[in] | pimpl | Internal data for implementation specifics of GeometryBinding (sink - instance becomes owner) |
|
protected |
Copy constructor of GeometryBinding.
[in] | other | Other instance of GeometryBinding class |
|
protectedvirtual |
Destructor of the GeometryBinding.
const Effect& ramses::GeometryBinding::getEffect | ( | ) | const |
Gets the effect used to create this geometry binding.
|
protected |
Assignment operator of GeometryBinding.
[in] | other | Other instance of GeometryBinding class |
status_t ramses::GeometryBinding::setIndices | ( | const ArrayBuffer & | arrayBuffer | ) |
Assign indices (using index data buffer) to be used when accessing vertex data.
Indices are optional, when not provided rendering uses sequential attribute elements.
[in] | arrayBuffer | Indices data buffer. |
status_t ramses::GeometryBinding::setIndices | ( | const ArrayResource & | indicesResource | ) |
Assign a data array with data type UInt16 or UInt32 to be used when accessing vertex data.
Indices are optional, when not provided rendering uses sequential attribute elements.
[in] | indicesResource | An array resource carrying indices data. |
status_t ramses::GeometryBinding::setInputBuffer | ( | const AttributeInput & | attributeInput, |
const ArrayBuffer & | arrayBuffer, | ||
uint16_t | offset, | ||
uint16_t | stride | ||
) |
Assign vertex attribute buffer with offset and stride.
Custom offset and/or stride can be only used with array buffers of data type ramses::EDataType::ByteBlob.
[in] | attributeInput | The effect attribute input to set the buffer to |
[in] | arrayBuffer | The vertex attribute buffer. |
[in] | offset | Offset in bytes for where the attribute data is starting within the data blob. |
[in] | stride | Stride of the interleaved vertex attribute. |
status_t ramses::GeometryBinding::setInputBuffer | ( | const AttributeInput & | attributeInput, |
const ArrayBuffer & | arrayBuffer, | ||
uint32_t | instancingDivisor = 0 |
||
) |
Assign a vertex attribute buffer to a given effect attribute input.
[in] | attributeInput | The effect attribute input to set the buffer to |
[in] | arrayBuffer | The vertex attribute buffer. |
[in] | instancingDivisor | The vertex attribute divisor used during instanced rendering. Default is 0, which means no instancing. |
status_t ramses::GeometryBinding::setInputBuffer | ( | const AttributeInput & | attributeInput, |
const ArrayResource & | arrayResource, | ||
uint16_t | offset, | ||
uint16_t | stride | ||
) |
Assign a data array resource to a given effect attribute input with offset and stride.
Custom offset and/or stride can be only used with array buffers of data type ramses::EDataType::ByteBlob.
[in] | attributeInput | The effect attribute input to set the buffer to |
[in] | arrayResource | The vertex attribute buffer. |
[in] | offset | Offset in bytes for where the attribute data is starting within the data blob. |
[in] | stride | Stride of the interleaved vertex attribute. |
status_t ramses::GeometryBinding::setInputBuffer | ( | const AttributeInput & | attributeInput, |
const ArrayResource & | arrayResource, | ||
uint32_t | instancingDivisor = 0 |
||
) |
Assign a data array resource to a given effect attribute input.
[in] | attributeInput | The effect attribute input to set the buffer to |
[in] | arrayResource | An array resource carrying vertex data. |
[in] | instancingDivisor | The vertex attribute divisor used during instanced rendering. Default is 0, which means no instancing. |
|
friend |
Scene is the factory for creating GeometryBinding instances.
class GeometryBindingImpl& ramses::GeometryBinding::impl |
Stores internal data for implementation specifics of GeometryBinding.