Castor3D 0.15.0
Multiplatform 3D engine
|
#include <TextureUnit.hpp>
Fonctions membres publiques | |
TextureUnit (TextureUnit const &)=delete | |
TextureUnit & | operator= (TextureUnit const &)=delete |
C3D_API | TextureUnit (TextureUnit &&rhs) |
C3D_API TextureUnit & | operator= (TextureUnit &&rhs)=delete |
C3D_API | TextureUnit (Engine &engine, TextureUnitData &data) |
Constructeur. | |
C3D_API | ~TextureUnit () override |
Destructeur. | |
C3D_API bool | initialise (RenderDevice const &device, QueueData const &queueData) |
Initialise la texture, id est : remplit le buffer d'image, cree la texture au niveau du renderer. | |
C3D_API void | cleanup () |
Nettoie l'objet. | |
C3D_API void | setTexture (TextureLayoutUPtr texture) |
Définit la texture. | |
C3D_API TextureAnimation & | createAnimation () |
Crée l'animation. | |
C3D_API void | removeAnimation () |
Retire l'animation. | |
C3D_API TextureAnimation & | getAnimation () |
C3D_API TextureAnimation const & | getAnimation () const |
C3D_API VkImageType | getType () const |
C3D_API castor::String | toString () const |
C3D_API TextureFlagsSet | getFlags () const |
C3D_API bool | isInitialised () const |
C3D_API bool | isTransformAnimated () const |
C3D_API bool | isTileAnimated () const |
TextureLayoutRPtr | getTexture () const |
TextureConfiguration const & | getConfiguration () const |
SamplerObs | getSampler () const |
bool | isTextured () const |
RenderTargetRPtr | getRenderTarget () const |
ashes::WriteDescriptorSet | getDescriptor () const |
uint32_t | getId () const |
bool | hasDevice () const |
RenderDevice const & | getDevice () const |
bool | hasAnimation () const |
TextureTransform const & | getTransform () const |
TextureSourceInfo const & | getSourceInfo () const |
uint32_t | getTexcoordSet () const |
TextureUnitData & | getData () const |
C3D_API void | setConfiguration (TextureConfiguration value) |
C3D_API void | setTransform (castor::Point3f const &translate, castor::Angle const &rotate, castor::Point3f const &scale) |
C3D_API void | setTransform (TextureTransform const &transform) |
C3D_API void | setAnimationTransform (castor::Point3f const &translate, castor::Angle const &rotate, castor::Point3f const &scale) |
C3D_API void | setTexcoordSet (uint32_t value) |
void | setRenderTarget (RenderTargetRPtr value) |
void | setSampler (SamplerObs value) |
void | setId (uint32_t value) |
Fonctions membres publiques hérités de castor3d::AnimableT< Engine > | |
virtual C3D_API | ~AnimableT ()=default |
void | cleanupAnimations () |
Vid ela map d'animations. | |
bool | hasAnimation () const |
bool | hasAnimation (castor::String const &name) const |
Animation const & | getAnimation (castor::String const &name) const |
Récupère une animation. | |
Animation & | getAnimation (castor::String const &name) |
Récupère une animation. | |
void | addAnimation (AnimationPtr animation) |
Ajoute une animation. | |
AnimationsMap const & | getAnimations () const |
Attributs publics | |
OnTextureUnitChanged | onChanged |
OnTextureUnitChanged | onIdChanged |
Amis | |
class | TextureRenderer |
Membres hérités additionnels | |
Types protégés hérités de castor3d::AnimableT< Engine > | |
using | Animation = AnimationT< Engine > |
using | AnimationPtr = castor::UniquePtr< Animation > |
using | AnimationsMap = std::map< castor::String, AnimationPtr > |
Fonctions membres protégées hérités de castor3d::AnimableT< Engine > | |
void | doRemoveAnimation (castor::String const &name) |
Enlève une animation. | |
AnimationType & | doGetAnimation (castor::String const &name) |
Récupère une animation. | |
AnimationType const & | doGetAnimation (castor::String const &name) const |
Récupère une animation. | |
AnimableT (Engine &owner) | |
C3D_API | AnimableT (AnimableT &&rhs)=default |
C3D_API | AnimableT (AnimableT const &rhs)=delete |
C3D_API AnimableT & | operator= (AnimableT &&rhs)=delete |
C3D_API AnimableT & | operator= (AnimableT const &rhs)=delete |
Attributs protégés hérités de castor3d::AnimableT< Engine > | |
AnimationsMap | m_animations |
|
delete |
C3D_API castor3d::TextureUnit::TextureUnit | ( | TextureUnit && | rhs | ) |
|
explicit |
Constructeur.
engine | Le moteur. |
data | Les données de la texture. |
|
override |
Destructeur.
C3D_API void castor3d::TextureUnit::cleanup | ( | ) |
Nettoie l'objet.
C3D_API TextureAnimation & castor3d::TextureUnit::createAnimation | ( | ) |
Crée l'animation.
name Animation.
C3D_API TextureAnimation & castor3d::TextureUnit::getAnimation | ( | ) |
C3D_API TextureAnimation const & castor3d::TextureUnit::getAnimation | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
C3D_API TextureFlagsSet castor3d::TextureUnit::getFlags | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
Références castor3d::TextureUnitData::sourceInfo.
|
inline |
|
inline |
|
inline |
C3D_API VkImageType castor3d::TextureUnit::getType | ( | ) | const |
name Accesseurs.
|
inline |
Références hasAnimation().
Référencé par hasAnimation().
|
inline |
C3D_API bool castor3d::TextureUnit::initialise | ( | RenderDevice const & | device, |
QueueData const & | queueData | ||
) |
Initialise la texture, id est : remplit le buffer d'image, cree la texture au niveau du renderer.
[in] | device | Le device GPU. |
[in] | queueData | La queue recevant les commandes GPU. |
C3D_API bool castor3d::TextureUnit::isInitialised | ( | ) | const |
|
inline |
C3D_API bool castor3d::TextureUnit::isTileAnimated | ( | ) | const |
C3D_API bool castor3d::TextureUnit::isTransformAnimated | ( | ) | const |
|
delete |
|
delete |
C3D_API void castor3d::TextureUnit::removeAnimation | ( | ) |
Retire l'animation.
C3D_API void castor3d::TextureUnit::setAnimationTransform | ( | castor::Point3f const & | translate, |
castor::Angle const & | rotate, | ||
castor::Point3f const & | scale | ||
) |
C3D_API void castor3d::TextureUnit::setConfiguration | ( | TextureConfiguration | value | ) |
name Mutateurs.
|
inline |
Références onIdChanged.
|
inline |
|
inline |
C3D_API void castor3d::TextureUnit::setTexcoordSet | ( | uint32_t | value | ) |
C3D_API void castor3d::TextureUnit::setTexture | ( | TextureLayoutUPtr | texture | ) |
Définit la texture.
[in] | texture | La texture. |
C3D_API void castor3d::TextureUnit::setTransform | ( | castor::Point3f const & | translate, |
castor::Angle const & | rotate, | ||
castor::Point3f const & | scale | ||
) |
C3D_API void castor3d::TextureUnit::setTransform | ( | TextureTransform const & | transform | ) |
C3D_API castor::String castor3d::TextureUnit::toString | ( | ) | const |
|
friend |
OnTextureUnitChanged castor3d::TextureUnit::onChanged |
OnTextureUnitChanged castor3d::TextureUnit::onIdChanged |
Référencé par setId().