Functions¶
Scene/Objects
Brief descriptions¶
Functions |
|
Casts an object to a NauObject instance. |
|
Casts an object to a constant NauObject instance. |
|
Detailed information¶
scene::castToNauObject¶
engine/core/modules/scene/include/nau/scene/nau_object.h
-
template<typename U>
inline NauObject *nau::scene::castToNauObject(U *object)¶ Casts an object to a NauObject instance.
Note
Type U of the casted object has to be derived from
IRttiObject
.- Template Parameters:
U – Type of the casted object. It has to be a subclass of
IRttiObject
.- Parameters:
object – [in] A pointer to the object to cast.
- Returns:
A pointer to the NauObject instance.
scene::castToNauObject¶
engine/core/modules/scene/include/nau/scene/nau_object.h
-
template<typename U>
inline const NauObject *nau::scene::castToNauObject(const U *object)¶ Casts an object to a constant NauObject instance.
Note
Type U of the casted object has to be derived from
IRttiObject
.- Template Parameters:
U – Type of the casted object. It has to support Nau Engine RTTI.
- Parameters:
object – [in] A pointer to the constant object to cast.
- Returns:
A pointer to the constant NauObject instance.
scene::castToNauObject¶
engine/core/modules/scene/include/nau/scene/nau_object.h
-
template<typename U>
inline NauObject *nau::scene::castToNauObject(U *object) Casts an object to a NauObject instance.
Note
Type U of the casted object has to be derived from
IRttiObject
.- Template Parameters:
U – Type of the casted object. It has to be a subclass of
IRttiObject
.- Parameters:
object – [in] A pointer to the object to cast.
- Returns:
A pointer to the NauObject instance.
scene::castToNauObject¶
engine/core/modules/scene/include/nau/scene/nau_object.h
-
template<typename U>
inline const NauObject *nau::scene::castToNauObject(const U *object) Casts an object to a constant NauObject instance.
Note
Type U of the casted object has to be derived from
IRttiObject
.- Template Parameters:
U – Type of the casted object. It has to support Nau Engine RTTI.
- Parameters:
object – [in] A pointer to the constant object to cast.
- Returns:
A pointer to the constant NauObject instance.