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


Public Member Functions | |
| TextureUnit (TextureUnit const &)=delete | |
| TextureUnit & | operator= (TextureUnit const &)=delete |
| C3D_API | TextureUnit (TextureUnit &&rhs) noexcept |
| C3D_API TextureUnit & | operator= (TextureUnit &&rhs) noexcept=delete |
| C3D_API | TextureUnit (Engine &engine, TextureUnitData &data) |
| Constructor. | |
| C3D_API | ~TextureUnit () noexcept override |
| Destructor. | |
| C3D_API bool | initialise () |
| Creates the texture in the render system. | |
| C3D_API void | cleanup () noexcept |
| Cleans up the texture. | |
| C3D_API void | setSampler (SamplerObs sampler) |
| Sets the sampler. | |
| C3D_API void | setTexture (Texture const *texture) |
| Sets the texture. | |
| C3D_API TextureAnimation & | createAnimation () |
| Creates the animation. | |
| C3D_API void | removeAnimation () |
| Removes the 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 |
| C3D_API Sampler const & | getSampler () const |
| C3D_API RenderTargetRPtr | getRenderTarget () const |
| C3D_API castor::String | getTextureName () const |
| C3D_API castor::Path | getTexturePath () const |
| C3D_API bool | isTextureStatic () const |
| C3D_API VkFormat | getTexturePixelFormat () const |
| C3D_API castor::Point3ui | getTextureImageTiles () const |
| C3D_API bool | hasTextureImageBuffer () const |
| C3D_API castor::PxBufferBase const & | getTextureImageBuffer () const |
| C3D_API VkExtent3D | getTextureDimensions () const |
| C3D_API uint32_t | getTextureMipmapCount () const |
| TextureConfiguration const & | getConfiguration () const noexcept |
| bool | isTextured () const noexcept |
| bool | isRenderTarget () const noexcept |
| ashes::WriteDescriptorSet | getDescriptor () const noexcept |
| uint32_t | getId () const noexcept |
| bool | hasDevice () const noexcept |
| RenderDevice const & | getDevice () const noexcept |
| bool | hasAnimation () const noexcept override |
| TextureTransform const & | getTransform () const noexcept |
| TextureSourceInfo const & | getSourceInfo () const noexcept |
| uint32_t | getTexcoordSet () const noexcept |
| TextureUnitData & | getData () const noexcept |
| castor::Image const & | getCPUImage () const noexcept |
| ashes::Image const & | getGPUImage () const noexcept |
| bool | failed () const noexcept |
| 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 | setId (uint32_t value) |
| void | reportFailure () |
Public Member Functions inherited from castor3d::Animable | |
| virtual C3D_API | ~Animable () noexcept=default |
| C3D_API void | cleanupAnimations () |
| Empties the animations map. | |
| C3D_API bool | hasAnimation (castor::String const &name) const |
| C3D_API Animation const & | getAnimation (castor::String const &name) const |
| Retrieves an animation. | |
| C3D_API Animation & | getAnimation (castor::String const &name) |
| Retrieves an animation. | |
| C3D_API void | addAnimation (AnimationPtr animation) |
| Adds an animation. | |
| AnimationsMap const & | getAnimations () const |
Public Member Functions inherited from castor::OwnedBy< Engine > | |
| Engine * | getOwner () const noexcept |
| void | setOwner (Engine &owner) noexcept |
Static Public Member Functions | |
| static C3D_API void | addParsers (castor::AttributeParsers &result, castor::UInt32StrMap const &textureChannels) |
Public Attributes | |
| OnTextureUnitChanged | onChanged |
| OnTextureUnitChanged | onIdChanged |
Friends | |
| class | TextureRenderer |
Additional Inherited Members | |
Protected Types inherited from castor3d::Animable | |
| using | AnimationPtr = castor::UniquePtr< Animation > |
| using | AnimationsMap = castor::StringMap< AnimationPtr > |
Protected Member Functions inherited from castor3d::Animable | |
| C3D_API void | doRemoveAnimation (castor::String const &name) |
| Removes an animation. | |
| template<typename AnimationType > | |
| AnimationType & | doGetAnimation (castor::String const &name) |
| Retrieves an animation. | |
| template<typename AnimationType > | |
| AnimationType const & | doGetAnimation (castor::String const &name) const |
| Retrieves an animation. | |
| C3D_API | Animable (Engine &owner) |
| C3D_API | Animable (Animable &&rhs) noexcept=default |
| C3D_API Animable & | operator= (Animable &&rhs) noexcept=delete |
| C3D_API | Animable (Animable const &rhs)=delete |
| C3D_API Animable & | operator= (Animable const &rhs)=delete |
Protected Member Functions inherited from castor::OwnedBy< Engine > | |
| OwnedBy (Engine &owner) noexcept | |
| Constructor. | |
Protected Attributes inherited from castor3d::Animable | |
| AnimationsMap | m_animations |
|
delete |
|
noexcept |
|
explicit |
Constructor.
| engine | The engine. |
| data | The texture informations. |
|
overridenoexcept |
Destructor.
|
static |
name Parsers.
|
noexcept |
Cleans up the texture.
| C3D_API TextureAnimation & castor3d::TextureUnit::createAnimation | ( | ) |
|
inlinenoexcept |
| C3D_API TextureAnimation & castor3d::TextureUnit::getAnimation | ( | ) |
| C3D_API TextureAnimation const & castor3d::TextureUnit::getAnimation | ( | ) | const |
|
inlinenoexcept |
|
inlinenoexcept |
References castor3d::TextureUnitData::base, CU_Require, and castor3d::TextureData::image.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
| C3D_API TextureFlagsSet castor3d::TextureUnit::getFlags | ( | ) | const |
|
inlinenoexcept |
References CU_Require.
|
inlinenoexcept |
| C3D_API RenderTargetRPtr castor3d::TextureUnit::getRenderTarget | ( | ) | const |
|
inlinenoexcept |
References castor3d::TextureUnitData::base, and castor3d::TextureData::sourceInfo.
|
inlinenoexcept |
| C3D_API VkExtent3D castor3d::TextureUnit::getTextureDimensions | ( | ) | const |
| C3D_API castor::PxBufferBase const & castor3d::TextureUnit::getTextureImageBuffer | ( | ) | const |
| C3D_API castor::Point3ui castor3d::TextureUnit::getTextureImageTiles | ( | ) | const |
| C3D_API uint32_t castor3d::TextureUnit::getTextureMipmapCount | ( | ) | const |
| C3D_API castor::String castor3d::TextureUnit::getTextureName | ( | ) | const |
| C3D_API castor::Path castor3d::TextureUnit::getTexturePath | ( | ) | const |
| C3D_API VkFormat castor3d::TextureUnit::getTexturePixelFormat | ( | ) | const |
|
inlinenoexcept |
| C3D_API VkImageType castor3d::TextureUnit::getType | ( | ) | const |
name Getters.
|
inlineoverridevirtualnoexcept |
true if the object has an animation. Reimplemented from castor3d::Animable.
References cuT, and hasAnimation().
Referenced by hasAnimation().


|
inlinenoexcept |
| C3D_API bool castor3d::TextureUnit::hasTextureImageBuffer | ( | ) | const |
| C3D_API bool castor3d::TextureUnit::initialise | ( | ) |
Creates the texture in the render system.
| C3D_API bool castor3d::TextureUnit::isInitialised | ( | ) | const |
|
inlinenoexcept |
References castor3d::TextureUnitData::base, castor3d::TextureSourceInfo::isRenderTarget(), and castor3d::TextureData::sourceInfo.

|
inlinenoexcept |
| C3D_API bool castor3d::TextureUnit::isTextureStatic | ( | ) | const |
| C3D_API bool castor3d::TextureUnit::isTileAnimated | ( | ) | const |
| C3D_API bool castor3d::TextureUnit::isTransformAnimated | ( | ) | const |
|
deletenoexcept |
|
delete |
| C3D_API void castor3d::TextureUnit::removeAnimation | ( | ) |
Removes the animation.
|
inline |
| 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 |
References onIdChanged.
| C3D_API void castor3d::TextureUnit::setSampler | ( | SamplerObs | sampler | ) |
Sets the sampler.
| [in] | sampler | The sampler. |
| C3D_API void castor3d::TextureUnit::setTexcoordSet | ( | uint32_t | value | ) |
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 |
| OnTextureUnitChanged castor3d::TextureUnit::onIdChanged |
Referenced by setId().