The JETextureLibrary class.
More...
#include <TextureLibrary.h>
The JETextureLibrary class.
Class for managing Vulkan texture data. Provides creation and getter convenience functions.
◆ JETextureLibrary()
JoeEngine::JETextureLibrary::JETextureLibrary |
( |
| ) |
|
|
inline |
◆ ~JETextureLibrary()
JoeEngine::JETextureLibrary::~JETextureLibrary |
( |
| ) |
|
|
default |
◆ Cleanup()
void JoeEngine::JETextureLibrary::Cleanup |
( |
VkDevice |
device | ) |
|
Cleanup Vulkan objects.
- Parameters
-
device | the Vulkan logical device. |
◆ CreateTexture()
uint32_t JoeEngine::JETextureLibrary::CreateTexture |
( |
VkDevice |
device, |
|
|
VkPhysicalDevice |
physicalDevice, |
|
|
const JEVulkanQueue & |
graphicsQueue, |
|
|
VkCommandPool |
commandPool, |
|
|
const std::string & |
filepath |
|
) |
| |
|
inline |
Create texture helper function.
Public user API function for loading and creating a new texture.
- Parameters
-
device | the Vulkan logical device. |
physicalDevice | the Vulkan physical device. |
graphicsQueue | the Vulkan graphics queue. |
commandPool | the Vulkan command pool. |
filepath | the texture file source path. |
- Returns
- a texture ID that corresponds to the new texture.
◆ GetImageViewAt()
VkImageView JoeEngine::JETextureLibrary::GetImageViewAt |
( |
int |
i | ) |
const |
|
inline |
Get image view at index.
- Parameters
-
- Returns
- the texture image view corresponding to the given ID.
◆ GetSamplerAt()
VkSampler JoeEngine::JETextureLibrary::GetSamplerAt |
( |
int |
i | ) |
const |
|
inline |
Get texture sampler at index.
- Parameters
-
- Returns
- the texture sampler corresponding to the given ID.
The documentation for this class was generated from the following files: