base texture class.
More...
#include <texture.h>
base texture class.
- Note
- see specific platform implementation for explenation with functions
◆ ~texture()
| virtual luna::renderer::texture::~texture |
( |
| ) |
|
|
virtualdefault |
◆ bind()
| virtual void luna::renderer::texture::bind |
( |
uint32_t |
slot = 0 | ) |
const |
|
pure virtual |
◆ create() [1/2]
| ref< texture > luna::renderer::texture::create |
( |
const std::string & |
filePath | ) |
|
|
static |
◆ create() [2/2]
| ref< texture > luna::renderer::texture::create |
( |
const uint64_t & |
handle, |
|
|
const glm::vec2 & |
dimensions |
|
) |
| |
|
static |
◆ getHeight()
| virtual uint32_t luna::renderer::texture::getHeight |
( |
| ) |
const |
|
pure virtual |
◆ getPath()
| virtual const std::string & luna::renderer::texture::getPath |
( |
| ) |
const |
|
pure virtual |
◆ getUv()
| std::vector< glm::vec2 > luna::renderer::texture::getUv |
( |
| ) |
|
|
inline |
◆ getWidth()
| virtual uint32_t luna::renderer::texture::getWidth |
( |
| ) |
const |
|
pure virtual |
◆ handle()
| uint64_t luna::renderer::texture::handle |
( |
| ) |
|
|
inline |
◆ isLoaded()
| virtual bool luna::renderer::texture::isLoaded |
( |
| ) |
const |
|
pure virtual |
◆ setData()
| virtual void luna::renderer::texture::setData |
( |
void * |
data, |
|
|
uint32_t |
size |
|
) |
| |
|
pure virtual |
◆ setDestroy()
| void luna::renderer::texture::setDestroy |
( |
const bool & |
destroy | ) |
|
|
inline |
◆ setUv()
| void luna::renderer::texture::setUv |
( |
const glm::vec2 & |
_uvStart, |
|
|
const glm::vec2 & |
_uvEnd |
|
) |
| |
|
inline |
◆ _handle
| uint64_t luna::renderer::texture::_handle |
|
protected |
◆ data
| void* luna::renderer::texture::data |
|
protected |
◆ destroy
| bool luna::renderer::texture::destroy = true |
|
protected |
◆ height
| uint32_t luna::renderer::texture::height |
|
protected |
◆ uvEnd
| glm::vec2 luna::renderer::texture::uvEnd = { 1.0f,1.0f } |
|
protected |
◆ uvStart
| glm::vec2 luna::renderer::texture::uvStart = {0.0f,0.0f} |
|
protected |
◆ width
| uint32_t luna::renderer::texture::width |
|
protected |
The documentation for this class was generated from the following files:
- C:/Users/robbe/source/repos/lolrobbe2/luna/luna/src/core/rendering/texture.h
- C:/Users/robbe/source/repos/lolrobbe2/luna/luna/src/core/rendering/texture.cpp