![]() |
RAMSES Documentation
27.0.130
Information for RAMSES users and developers
|
An effect describes how an object will be rendered to the screen. More...
#include <Effect.h>
Public Member Functions | |
uint32_t | getUniformInputCount () const |
Gets number of uniform inputs. More... | |
uint32_t | getAttributeInputCount () const |
Gets number of attribute inputs. More... | |
status_t | getUniformInput (uint32_t index, UniformInput &uniformInput) const |
Gets uniform input at given index. More... | |
status_t | getAttributeInput (uint32_t index, AttributeInput &attributeInput) const |
Gets attribute input at given index. More... | |
status_t | findUniformInput (const char *inputName, UniformInput &uniformInput) const |
Finds uniform input by input name. More... | |
status_t | findAttributeInput (const char *inputName, AttributeInput &attributeInput) const |
Finds attribute input by input name. More... | |
status_t | findUniformInput (EEffectUniformSemantic uniformSemantic, UniformInput &uniformInput) const |
Finds uniform input that represents a semantic input (if existing). More... | |
status_t | findAttributeInput (EEffectAttributeSemantic attributeSemantic, AttributeInput &attributeInput) const |
Finds attribute input that represents a semantic input (if existing). More... | |
![]() | |
resourceId_t | getResourceId () const |
Get resource Id. 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... | |
Static Public Member Functions | |
static bool | hasGeometryShader (const Effect &effect) |
Returns whether the effect has a geometry shader attached to it. More... | |
static status_t | getGeometryShaderInputType (const Effect &effect, EDrawMode &expectedGeometryInputType) |
If the effect has a geometry shader attached to it (see hasGeometryShader) this method can be used to check the expected primitive type of the geometry shader. Use this to make sure that geometry-based effects get only paired with geometry which matches their expected type! More... | |
Public Attributes | |
class EffectImpl & | impl |
Stores internal data for implementation specifics of Effect. More... | |
![]() | |
class ResourceImpl & | impl |
![]() | |
class SceneObjectImpl & | impl |
![]() | |
class ClientObjectImpl & | impl |
![]() | |
class RamsesObjectImpl & | impl |
![]() | |
class StatusObjectImpl & | impl |
Protected Member Functions | |
Effect (EffectImpl &pimpl) | |
Constructor of Effect. More... | |
Effect (const Effect &other) | |
Copy constructor of Effect. More... | |
Effect & | operator= (const Effect &other) |
Assignment operator of Effect. More... | |
virtual | ~Effect () |
Destructor of the Effect. More... | |
![]() | |
Resource (ResourceImpl &pimpl) | |
Constructor for Resource. More... | |
virtual | ~Resource () |
Destructor for Resource. 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 convenience library for application developers. More... | |
An effect describes how an object will be rendered to the screen.
|
explicitprotected |
|
protected |
|
protectedvirtual |
Destructor of the Effect.
status_t ramses::Effect::findAttributeInput | ( | const char * | inputName, |
AttributeInput & | attributeInput | ||
) | const |
Finds attribute input by input name.
[in] | inputName | Name of attribute input to retrieve |
[out] | attributeInput | Attribute input |
status_t ramses::Effect::findAttributeInput | ( | EEffectAttributeSemantic | attributeSemantic, |
AttributeInput & | attributeInput | ||
) | const |
Finds attribute input that represents a semantic input (if existing).
[in] | attributeSemantic | Semantic of attribute input to retrieve |
[out] | attributeInput | Attribute input |
status_t ramses::Effect::findUniformInput | ( | const char * | inputName, |
UniformInput & | uniformInput | ||
) | const |
Finds uniform input by input name.
[in] | inputName | Name of uniform input to retrieve |
[out] | uniformInput | Uniform input |
status_t ramses::Effect::findUniformInput | ( | EEffectUniformSemantic | uniformSemantic, |
UniformInput & | uniformInput | ||
) | const |
Finds uniform input that represents a semantic input (if existing).
[in] | uniformSemantic | Semantic of uniform input to retrieve |
[out] | uniformInput | Uniform input |
status_t ramses::Effect::getAttributeInput | ( | uint32_t | index, |
AttributeInput & | attributeInput | ||
) | const |
Gets attribute input at given index.
[in] | index | Index of attribute input to retrieve |
[out] | attributeInput | Attribute input |
uint32_t ramses::Effect::getAttributeInputCount | ( | ) | const |
Gets number of attribute inputs.
|
static |
If the effect
has a geometry shader attached to it (see hasGeometryShader) this method can be used to check the expected primitive type of the geometry shader. Use this to make sure that geometry-based effects get only paired with geometry which matches their expected type!
See also ramses::Appearance::setDrawMode().
[in] | effect | effect to check for geometry input type |
[out] | expectedGeometryInputType | geometry type expected by the geometry shader of /p effect |
status_t ramses::Effect::getUniformInput | ( | uint32_t | index, |
UniformInput & | uniformInput | ||
) | const |
Gets uniform input at given index.
[in] | index | Index of uniform input to retrieve |
[out] | uniformInput | Uniform input |
uint32_t ramses::Effect::getUniformInputCount | ( | ) | const |
Gets number of uniform inputs.
|
static |
Returns whether the effect
has a geometry shader attached to it.
[in] | effect | effect to check for existance of geometry shader |
|
friend |
Scene is the convenience library for application developers.
class EffectImpl& ramses::Effect::impl |
Stores internal data for implementation specifics of Effect.