FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::vulkan::TextureImage Class Reference
Inheritance diagram for fge::vulkan::TextureImage:
fge::vulkan::ContextAware

Public Member Functions

 TextureImage (Context const &context)
 
 TextureImage (TextureImage const &r)=delete
 
 TextureImage (TextureImage &&r) noexcept
 
TextureImageoperator= (TextureImage const &r)=delete
 
TextureImageoperator= (TextureImage &&r) noexcept
 
bool create (glm::vec< 2, int > const &size, uint32_t levels=1)
 
bool create (SDL_Surface *surface, uint32_t levels=1)
 
void destroy () final
 
SDL_Surface * copyToSurface () const
 
void update (SDL_Surface *surface, glm::vec< 2, int > const &offset)
 
void update (TextureImage const &textureImage, glm::vec< 2, int > const &offset)
 
void update (void *buffer, std::size_t bufferSize, glm::vec< 2, int > const &size, glm::vec< 2, int > const &offset)
 
void generateMipmaps (uint32_t levels=0)
 
uint32_t getMipLevels () const
 
void forceMipLod (float mipLodBias, float mipLodMin, float mipLodMax)
 
glm::vec< 2, int > const & getSize () const
 
VkExtent2D getExtent () const
 
int getBytesPerPixel () const
 
VkImage getTextureImage () const
 
VmaAllocation getTextureImageAllocation () const
 
VkImageView getTextureImageView () const
 
VkSampler getTextureSampler () const
 
void setNormalizedCoordinates (bool normalized)
 
bool getNormalizedCoordinates () const
 
void setFilter (VkFilter filter)
 
VkFilter getFilter () const
 
fge::vulkan::DescriptorSet const & getDescriptorSet () const
 
fge::Vector2f normalizeTextureCoords (fge::Vector2i const &coords) const
 
fge::RectFloat normalizeTextureRect (fge::RectInt const &rect) const
 
uint32_t getModificationCount () const
 
constexpr Context const & getContext () const
 
void swapContext (Context const &context)
 

Protected Member Functions

void verifyContext (ContextAware const &r) const
 

Member Function Documentation

◆ destroy()

void fge::vulkan::TextureImage::destroy ( )
finalvirtual

The documentation for this class was generated from the following file: