Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor3d::TextureSourceInfo Class Reference

#include <TextureSourceInfo.hpp>

Public Member Functions

C3D_API TextureSourceInfo () noexcept=default
 
C3D_API TextureSourceInfo (TextureSourceInfo const &rhs, TextureConfiguration textureConfig)
 
C3D_API TextureSourceInfo (castor::String name, TextureConfiguration textureConfig, castor::Path folder, castor::Path relative, castor::ImageLoaderConfig loadConfig={ true, true, true })
 
C3D_API TextureSourceInfo (castor::String name, TextureConfiguration textureConfig, castor::String type, castor::ByteArray data, castor::ImageLoaderConfig loadConfig={ true, true, true })
 
C3D_API TextureSourceInfo (castor::String name, TextureConfiguration textureConfig, RenderTargetRPtr renderTarget)
 
C3D_API TextureSourceInfo (castor::String name, TextureConfiguration textureConfig, ashes::ImageCreateInfo const &createInfo)
 
bool isSerialisable () const noexcept
 
bool isRenderTarget () const noexcept
 
bool isFileImage () const noexcept
 
bool isBufferImage () const noexcept
 
bool isVulkanImage () const noexcept
 
TextureConfiguration const & textureConfig () const noexcept
 
RenderTargetRPtr renderTarget () const noexcept
 
castor::Path const & folder () const noexcept
 
castor::Path const & relative () const noexcept
 
castor::String name () const noexcept
 
castor::String const & type () const noexcept
 
castor::ByteArray const & buffer () const noexcept
 
bool allowCompression () const noexcept
 
void allowCompression (bool v) noexcept
 
bool allowSRGB () const noexcept
 
void allowSRGB (bool v) noexcept
 
bool generateMips () const noexcept
 
bool layersToTiles () const noexcept
 
castor::ImageLoaderConfig const & loadConfig () const noexcept
 
ashes::ImageCreateInfo const & createInfo () const noexcept
 
void setBuffer (castor::ByteArray data) noexcept
 
void setSerialisable (bool v) noexcept
 

Constructor & Destructor Documentation

◆ TextureSourceInfo() [1/6]

C3D_API castor3d::TextureSourceInfo::TextureSourceInfo ( )
defaultnoexcept

◆ TextureSourceInfo() [2/6]

C3D_API castor3d::TextureSourceInfo::TextureSourceInfo ( TextureSourceInfo const & rhs,
TextureConfiguration textureConfig )

◆ TextureSourceInfo() [3/6]

C3D_API castor3d::TextureSourceInfo::TextureSourceInfo ( castor::String name,
TextureConfiguration textureConfig,
castor::Path folder,
castor::Path relative,
castor::ImageLoaderConfig loadConfig = { true, true, true } )

◆ TextureSourceInfo() [4/6]

C3D_API castor3d::TextureSourceInfo::TextureSourceInfo ( castor::String name,
TextureConfiguration textureConfig,
castor::String type,
castor::ByteArray data,
castor::ImageLoaderConfig loadConfig = { true, true, true } )

◆ TextureSourceInfo() [5/6]

C3D_API castor3d::TextureSourceInfo::TextureSourceInfo ( castor::String name,
TextureConfiguration textureConfig,
RenderTargetRPtr renderTarget )

◆ TextureSourceInfo() [6/6]

C3D_API castor3d::TextureSourceInfo::TextureSourceInfo ( castor::String name,
TextureConfiguration textureConfig,
ashes::ImageCreateInfo const & createInfo )

Member Function Documentation

◆ allowCompression() [1/2]

bool castor3d::TextureSourceInfo::allowCompression ( ) const
inlinenoexcept

References castor::ImageLoaderConfig::allowCompression, CU_Require, isBufferImage(), and isFileImage().

Here is the call graph for this function:

◆ allowCompression() [2/2]

void castor3d::TextureSourceInfo::allowCompression ( bool v)
inlinenoexcept

References castor::ImageLoaderConfig::allowCompression, CU_Require, isBufferImage(), and isFileImage().

Here is the call graph for this function:

◆ allowSRGB() [1/2]

bool castor3d::TextureSourceInfo::allowSRGB ( ) const
inlinenoexcept

◆ allowSRGB() [2/2]

void castor3d::TextureSourceInfo::allowSRGB ( bool v)
inlinenoexcept

◆ buffer()

castor::ByteArray const & castor3d::TextureSourceInfo::buffer ( ) const
inlinenoexcept

References CU_Require, and isBufferImage().

Here is the call graph for this function:

◆ createInfo()

ashes::ImageCreateInfo const & castor3d::TextureSourceInfo::createInfo ( ) const
inlinenoexcept

References CU_Require, and isVulkanImage().

Here is the call graph for this function:

◆ folder()

castor::Path const & castor3d::TextureSourceInfo::folder ( ) const
inlinenoexcept

References CU_Require, and isFileImage().

Here is the call graph for this function:

◆ generateMips()

bool castor3d::TextureSourceInfo::generateMips ( ) const
inlinenoexcept

References CU_Require, castor::ImageLoaderConfig::generateMips, isBufferImage(), and isFileImage().

Here is the call graph for this function:

◆ isBufferImage()

bool castor3d::TextureSourceInfo::isBufferImage ( ) const
inlinenoexcept

Referenced by allowCompression(), allowCompression(), buffer(), generateMips(), layersToTiles(), loadConfig(), and type().

Here is the caller graph for this function:

◆ isFileImage()

bool castor3d::TextureSourceInfo::isFileImage ( ) const
inlinenoexcept

Referenced by allowCompression(), allowCompression(), folder(), generateMips(), layersToTiles(), loadConfig(), and relative().

Here is the caller graph for this function:

◆ isRenderTarget()

bool castor3d::TextureSourceInfo::isRenderTarget ( ) const
inlinenoexcept

Referenced by castor3d::TextureUnit::isRenderTarget(), renderTarget(), and setBuffer().

Here is the caller graph for this function:

◆ isSerialisable()

bool castor3d::TextureSourceInfo::isSerialisable ( ) const
inlinenoexcept

◆ isVulkanImage()

bool castor3d::TextureSourceInfo::isVulkanImage ( ) const
inlinenoexcept

Referenced by createInfo().

Here is the caller graph for this function:

◆ layersToTiles()

bool castor3d::TextureSourceInfo::layersToTiles ( ) const
inlinenoexcept

References CU_Require, isBufferImage(), isFileImage(), and castor::ImageLoaderConfig::layersToTiles.

Here is the call graph for this function:

◆ loadConfig()

castor::ImageLoaderConfig const & castor3d::TextureSourceInfo::loadConfig ( ) const
inlinenoexcept

References CU_Require, isBufferImage(), and isFileImage().

Here is the call graph for this function:

◆ name()

castor::String castor3d::TextureSourceInfo::name ( ) const
inlinenoexcept

◆ relative()

castor::Path const & castor3d::TextureSourceInfo::relative ( ) const
inlinenoexcept

References CU_Require, and isFileImage().

Here is the call graph for this function:

◆ renderTarget()

RenderTargetRPtr castor3d::TextureSourceInfo::renderTarget ( ) const
inlinenoexcept

References CU_Require, and isRenderTarget().

Here is the call graph for this function:

◆ setBuffer()

void castor3d::TextureSourceInfo::setBuffer ( castor::ByteArray data)
inlinenoexcept

References CU_Require, and isRenderTarget().

Here is the call graph for this function:

◆ setSerialisable()

void castor3d::TextureSourceInfo::setSerialisable ( bool v)
inlinenoexcept

◆ textureConfig()

TextureConfiguration const & castor3d::TextureSourceInfo::textureConfig ( ) const
inlinenoexcept

◆ type()

castor::String const & castor3d::TextureSourceInfo::type ( ) const
inlinenoexcept

References CU_Require, and isBufferImage().

Here is the call graph for this function:

The documentation for this class was generated from the following file: