Lugdunum
0.1.0
|
#include <Texture.hpp>
Public Types | |
enum | Filter : uint8_t { Filter::Nearest, Filter::Linear } |
enum | WrappingMode : uint8_t { WrappingMode::ClampToEdge, WrappingMode::MirroredRepeat, WrappingMode::Repeat } |
enum | Format : uint8_t { Format::Undefined, Format::R8G8B8A8_UNORM, Format::R16G16_SFLOAT, Format::R16G16B16_SFLOAT, Format::R32G32B32A32_SFLOAT } |
Public Types inherited from lug::Graphics::Resource | |
enum | Type : uint8_t { Type::Scene, Type::SceneNode, Type::Material, Type::Mesh, Type::Light, Type::Texture, Type::Pipeline, Type::Camera, Type::SkyBox } |
Type of the resource. More... | |
Public Member Functions | |
Texture (const std::string &name) | |
Texture (const Texture &)=delete | |
Texture (Texture &&)=delete | |
Texture & | operator= (const Texture &)=delete |
Texture & | operator= (Texture &&)=delete |
virtual | ~Texture ()=default |
uint32_t | getWidth () const |
uint32_t | getHeight () const |
Render::Texture::Format | getFormat () const |
Render::Texture::Filter | getMagFilter () const |
Render::Texture::Filter | getMinFilter () const |
Render::Texture::Filter | getMipMapFilter () const |
Render::Texture::WrappingMode | getWrapS () const |
Render::Texture::WrappingMode | getWrapT () const |
Public Member Functions inherited from lug::Graphics::Resource | |
Resource (Type type, const std::string &name) | |
Resource (const Resource &)=delete | |
Resource (Resource &&)=delete | |
Resource & | operator= (const Resource &)=delete |
Resource & | operator= (Resource &&)=delete |
virtual | ~Resource ()=default |
Type | getType () const |
Returns the type of the Resource. More... | |
Handle | getHandle () const |
Returns the handle of the Resource. More... | |
const std::string & | getName () const |
Gets the name of the Resource. More... | |
void | setName (const std::string &name) |
Sets the name of the Resource. More... | |
Static Public Member Functions | |
static size_t | formatToSize (Render::Texture::Format format) |
Private Attributes | |
uint32_t | _width {0} |
uint32_t | _height {0} |
Render::Texture::Format | _format |
Render::Texture::Filter | _magFilter |
Render::Texture::Filter | _minFilter |
Render::Texture::Filter | _mipMapFilter |
Render::Texture::WrappingMode | _wrapS |
Render::Texture::WrappingMode | _wrapT |
Friends | |
class | ::lug::Graphics::Builder::Texture |
Additional Inherited Members | |
Protected Attributes inherited from lug::Graphics::Resource | |
std::string | _name |
Definition at line 16 of file Texture.hpp.
|
strong |
Enumerator | |
---|---|
Nearest | |
Linear |
Definition at line 20 of file Texture.hpp.
|
strong |
Enumerator | |
---|---|
ClampToEdge | |
MirroredRepeat | |
Repeat |
Definition at line 25 of file Texture.hpp.
|
strong |
Enumerator | |
---|---|
Undefined | |
R8G8B8A8_UNORM | |
R16G16_SFLOAT | |
R16G16B16_SFLOAT | |
R32G32B32A32_SFLOAT |
Definition at line 31 of file Texture.hpp.
lug::Graphics::Render::Texture::Texture | ( | const std::string & | name | ) |
Definition at line 7 of file Texture.cpp.
|
delete |
|
delete |
|
virtualdefault |
Reimplemented in lug::Graphics::Vulkan::Render::Texture.
|
inline |
Definition at line 1 of file Texture.inl.
|
inline |
Definition at line 5 of file Texture.inl.
|
inline |
Definition at line 9 of file Texture.inl.
|
inline |
Definition at line 13 of file Texture.inl.
|
inline |
Definition at line 17 of file Texture.inl.
|
inline |
Definition at line 21 of file Texture.inl.
|
inline |
Definition at line 25 of file Texture.inl.
|
inline |
Definition at line 29 of file Texture.inl.
|
inlinestatic |
Definition at line 33 of file Texture.inl.
|
friend |
Definition at line 17 of file Texture.hpp.
|
private |
Definition at line 63 of file Texture.hpp.
|
private |
Definition at line 64 of file Texture.hpp.
|
private |
Definition at line 65 of file Texture.hpp.
|
private |
Definition at line 67 of file Texture.hpp.
|
private |
Definition at line 68 of file Texture.hpp.
|
private |
Definition at line 69 of file Texture.hpp.
|
private |
Definition at line 71 of file Texture.hpp.
|
private |
Definition at line 72 of file Texture.hpp.