|
luna engine
software engine
|
texture2D api. More...
#include <vulkanTexture.h>


Public Member Functions | |
| vulkanTexture2D (const std::string &filePath) | |
| vulkanTexture2D (const void *texelData, const uint32_t textureSize) | |
| vulkanTexture2D (const void *texelData, const glm::vec2 &dimensions) | |
| ~vulkanTexture2D ()=default | |
Public Member Functions inherited from luna::renderer::texture2D | |
| virtual | ~texture2D ()=default |
Public Member Functions inherited from luna::renderer::texture | |
| virtual | ~texture ()=default |
| virtual uint32_t | getWidth () const =0 |
| virtual uint32_t | getHeight () const =0 |
| virtual const std::string & | getPath () const =0 |
| virtual void | setData (void *data, uint32_t size)=0 |
| virtual void | bind (uint32_t slot=0) const =0 |
| virtual bool | isLoaded () const =0 |
| void | setDestroy (const bool &destroy) |
| void | setUv (const glm::vec2 &_uvStart, const glm::vec2 &_uvEnd) |
| std::vector< glm::vec2 > | getUv () |
| uint64_t | handle () |
Additional Inherited Members | |
Static Public Member Functions inherited from luna::renderer::texture2D | |
| static ref< texture > | create (const std::string &filePath) |
| static ref< texture > | create (const uint32_t &width, const uint32_t &height) |
| static ref< texture > | create (const void *data, const uint32_t &size) |
Static Public Member Functions inherited from luna::renderer::texture | |
| static ref< texture > | create (const std::string &filePath) |
| static ref< texture > | create (const uint64_t &handle, const glm::vec2 &dimensions) |
Protected Attributes inherited from luna::renderer::texture | |
| bool | destroy = true |
| uint64_t | _handle |
| void * | data |
| uint32_t | width |
| uint32_t | height |
| glm::vec2 | uvStart = {0.0f,0.0f} |
| glm::vec2 | uvEnd = { 1.0f,1.0f } |
texture2D api.
| luna::vulkan::vulkanTexture2D::vulkanTexture2D | ( | const std::string & | filePath | ) |
| luna::vulkan::vulkanTexture2D::vulkanTexture2D | ( | const void * | texelData, |
| const uint32_t | textureSize | ||
| ) |
| luna::vulkan::vulkanTexture2D::vulkanTexture2D | ( | const void * | texelData, |
| const glm::vec2 & | dimensions | ||
| ) |
|
default |