#include <SDOM_Texture.hpp>
|
static constexpr const char * | TypeName = "Texture" |
|
◆ Texture() [1/3]
◆ Texture() [2/3]
SDOM::Texture::Texture |
( |
const sol::table & |
config | ) |
|
|
protected |
◆ Texture() [3/3]
SDOM::Texture::Texture |
( |
| ) |
|
|
default |
◆ ~Texture()
virtual SDOM::Texture::~Texture |
( |
| ) |
|
|
virtualdefault |
◆ _registerLuaBindings()
void SDOM::Texture::_registerLuaBindings |
( |
const std::string & |
typeName, |
|
|
sol::state_view |
lua |
|
) |
| |
|
protectedvirtual |
◆ as()
template<typename T >
T * SDOM::IAssetObject::as |
( |
| ) |
|
|
inlineinherited |
◆ CreateFromInitStruct()
◆ CreateFromLua()
static std::unique_ptr< IAssetObject > SDOM::Texture::CreateFromLua |
( |
const sol::table & |
config | ) |
|
|
inlinestatic |
◆ getFilename()
const std::string & SDOM::IAssetObject::getFilename |
( |
| ) |
const |
|
inlineinherited |
◆ getName()
const std::string & SDOM::IAssetObject::getName |
( |
| ) |
const |
|
inlineinherited |
◆ getTexture()
SDL_Texture * SDOM::Texture::getTexture |
( |
| ) |
const |
|
inline |
◆ getTextureHeight()
float SDOM::Texture::getTextureHeight |
( |
| ) |
const |
|
inline |
◆ getTextureWidth()
float SDOM::Texture::getTextureWidth |
( |
| ) |
const |
|
inline |
◆ getType()
const std::string & SDOM::IAssetObject::getType |
( |
| ) |
const |
|
inlineinherited |
◆ isInternal()
bool SDOM::IAssetObject::isInternal |
( |
| ) |
const |
|
inlineinherited |
◆ isLoaded()
bool SDOM::IAssetObject::isLoaded |
( |
| ) |
const |
|
inlineinherited |
◆ lua_value_case_insensitive()
template<typename T >
static T SDOM::IDataObject::lua_value_case_insensitive |
( |
const sol::table & |
tbl, |
|
|
const std::string & |
key, |
|
|
const T & |
default_value |
|
) |
| |
|
inlinestaticinherited |
◆ onInit()
bool SDOM::Texture::onInit |
( |
| ) |
|
|
overridevirtual |
◆ onLoad()
void SDOM::Texture::onLoad |
( |
| ) |
|
|
overridevirtual |
◆ onQuit()
void SDOM::Texture::onQuit |
( |
| ) |
|
|
overridevirtual |
◆ onUnitTest()
bool SDOM::Texture::onUnitTest |
( |
| ) |
|
|
overridevirtual |
Runs unit tests for this object.
- Returns
- true if all tests pass, false otherwise.
Reimplemented from SDOM::IAssetObject.
◆ onUnload()
void SDOM::Texture::onUnload |
( |
| ) |
|
|
overridevirtual |
◆ registerLuaBindings()
void SDOM::IDataObject::registerLuaBindings |
( |
const std::string & |
typeName, |
|
|
sol::state_view |
lua |
|
) |
| |
|
inlineinherited |
◆ setFilename()
void SDOM::IAssetObject::setFilename |
( |
const std::string & |
filename | ) |
|
|
inlineinherited |
◆ setName()
void SDOM::IAssetObject::setName |
( |
const std::string & |
name | ) |
|
|
inlineinherited |
◆ setType()
void SDOM::IAssetObject::setType |
( |
const std::string & |
type | ) |
|
|
inlineinherited |
◆ Core
friend SDOM::Texture::Core |
|
protected |
◆ Factory
friend SDOM::Texture::Factory |
|
protected |
◆ filename_
std::string SDOM::IAssetObject::filename_ |
|
protectedinherited |
◆ isInternal_
bool SDOM::IAssetObject::isInternal_ |
|
protectedinherited |
◆ isLoaded_
bool SDOM::IAssetObject::isLoaded_ = false |
|
protectedinherited |
◆ name_
std::string SDOM::IAssetObject::name_ |
|
protectedinherited |
◆ objHandleType_
sol::usertype<IAssetObject> SDOM::IAssetObject::objHandleType_ |
|
protectedinherited |
◆ texture_
SDL_Texture* SDOM::Texture::texture_ = nullptr |
|
protected |
◆ textureHeight_
float SDOM::Texture::textureHeight_ = 0 |
|
protected |
◆ textureWidth_
float SDOM::Texture::textureWidth_ = 0 |
|
protected |
◆ type_
std::string SDOM::IAssetObject::type_ |
|
protectedinherited |
◆ TypeName
constexpr const char* SDOM::Texture::TypeName = "Texture" |
|
staticconstexpr |
The documentation for this class was generated from the following files: