![]() |
Castor3D 0.12.0
Multiplatform 3D engine
|
#include <TextureUnit.hpp>


Public Member Functions | |
| 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, TextureSourceInfo const &sourceInfo) |
| Constructor. More... | |
| C3D_API | ~TextureUnit () override |
| Destructor. More... | |
| C3D_API bool | initialise (RenderDevice const &device, QueueData const &queueData) |
| Initialises the texture, id est : fills the image buffer, creates the texture in the render system. More... | |
| C3D_API void | cleanup () |
| Cleans up the texture. More... | |
| C3D_API void | setTexture (TextureLayoutSPtr texture) |
| Sets the texture. More... | |
| C3D_API TextureAnimation & | createAnimation () |
| Creates the animation. More... | |
| C3D_API void | removeAnimation () |
| Removes the animation. More... | |
| C3D_API TextureAnimation & | getAnimation () |
| C3D_API TextureAnimation const & | getAnimation () const |
| C3D_API VkImageType | getType () const |
| C3D_API castor::String | toString () const |
| C3D_API TextureFlags | getFlags () const |
| C3D_API bool | isInitialised () const |
| C3D_API bool | isTransformAnimated () const |
| C3D_API bool | isTileAnimated () const |
| TextureLayoutSPtr | getTexture () const |
| TextureConfiguration const & | getConfiguration () const |
| SamplerResPtr | getSampler () const |
| bool | isTextured () const |
| RenderTargetSPtr | 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 |
| 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) |
| void | setRenderTarget (RenderTargetSPtr value) |
| void | setSampler (SamplerResPtr value) |
| void | setOwnSampler (SamplerRes value) |
| void | setId (uint32_t value) |
Public Member Functions inherited from castor3d::AnimableT< Engine > | |
| virtual C3D_API | ~AnimableT ()=default |
| void | cleanupAnimations () |
| Empties the animations map. More... | |
| bool | hasAnimation () const |
| bool | hasAnimation (castor::String const &name) const |
| Animation const & | getAnimation (castor::String const &name) const |
| Retrieves an animation. More... | |
| Animation & | getAnimation (castor::String const &name) |
| Retrieves an animation. More... | |
| void | addAnimation (AnimationPtr animation) |
| Adds an animation. More... | |
| AnimationPtrStrMap const & | getAnimations () const |
Static Public Member Functions | |
| static C3D_API TextureUnit | create (Engine &engine, RenderDevice const &device, castor::String const &name, VkFormat format, uint32_t size, VkImageCreateFlags createFlags, VkImageUsageFlags usageFlags) |
| static C3D_API TextureUnit | create (Engine &engine, RenderDevice const &device, castor::String const &name, VkFormat format, uint32_t size, uint32_t arrayLayers, VkImageCreateFlags createFlags, VkImageUsageFlags usageFlags) |
| static C3D_API TextureUnit | create (Engine &engine, RenderDevice const &device, castor::String const &name, VkFormat format, VkExtent2D const &size, VkImageCreateFlags createFlags, VkImageUsageFlags usageFlags) |
| static C3D_API TextureUnit | create (Engine &engine, RenderDevice const &device, castor::String const &name, VkFormat format, VkExtent2D const &size, uint32_t arrayLayers, VkImageCreateFlags createFlags, VkImageUsageFlags usageFlags) |
| static C3D_API TextureUnit | create (Engine &engine, RenderDevice const &device, castor::String const &name, VkFormat format, VkExtent3D const &size, VkImageCreateFlags createFlags, VkImageUsageFlags usageFlags) |
Public Attributes | |
| OnTextureUnitChanged | onChanged |
Friends | |
| class | TextureRenderer |
Additional Inherited Members | |
Protected Types inherited from castor3d::AnimableT< Engine > | |
| using | Animation = AnimationT< Engine > |
| using | AnimationPtr = std::unique_ptr< Animation > |
| using | AnimationPtrStrMap = std::map< castor::String, AnimationPtr > |
Protected Member Functions inherited from castor3d::AnimableT< Engine > | |
| void | doRemoveAnimation (castor::String const &name) |
| Removes an animation. More... | |
| AnimationType & | doGetAnimation (castor::String const &name) |
| Retrieves an animation. More... | |
| AnimationType const & | doGetAnimation (castor::String const &name) const |
| Retrieves an animation. More... | |
| 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 |
Protected Attributes inherited from castor3d::AnimableT< Engine > | |
| AnimationPtrStrMap | m_animations |
|
delete |
| C3D_API castor3d::TextureUnit::TextureUnit | ( | TextureUnit && | rhs | ) |
|
explicit |
Constructor.
| engine | The engine. |
| sourceInfo | The source informations. |
|
override |
Destructor.
| C3D_API void castor3d::TextureUnit::cleanup | ( | ) |
Cleans up the texture.
|
static |
|
static |
name Creators.
|
static |
|
static |
|
static |
| C3D_API TextureAnimation & castor3d::TextureUnit::createAnimation | ( | ) |
Creates the animation.
name Animation.
| C3D_API TextureAnimation & castor3d::TextureUnit::getAnimation | ( | ) |
| C3D_API TextureAnimation const & castor3d::TextureUnit::getAnimation | ( | ) | const |
|
inline |
|
inline |
|
inline |
| C3D_API TextureFlags castor3d::TextureUnit::getFlags | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| C3D_API VkImageType castor3d::TextureUnit::getType | ( | ) | const |
name Getters.
|
inline |
References hasAnimation().
Referenced by hasAnimation().


|
inline |
| C3D_API bool castor3d::TextureUnit::initialise | ( | RenderDevice const & | device, |
| QueueData const & | queueData | ||
| ) |
Initialises the texture, id est : fills the image buffer, creates the texture in the render system.
| [in] | device | The GPU device. |
| [in] | queueData | The queue receiving the GPU commands. |
| 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 | ( | ) |
Removes the 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 Mutators.
|
inline |
|
inline |
|
inline |
|
inline |
| C3D_API void castor3d::TextureUnit::setTexture | ( | TextureLayoutSPtr | texture | ) |
Sets the texture.
| [in] | texture | The 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 |