|
Dusk Audio Framework
|
#include <Vulkan.hpp>
Public Member Functions | |
| VulkanImage () | |
| VulkanImage (const char *rawData, uint width, uint height, ImageFormat format) | |
| VulkanImage (const char *rawData, const Size< uint > &size, ImageFormat format) | |
| VulkanImage (const VulkanImage &image) | |
| ~VulkanImage () override | |
| void | loadFromMemory (const char *rawData, const Size< uint > &size, ImageFormat format=kImageFormatBGRA) noexcept override |
| void | drawAt (const GraphicsContext &context, const Point< int > &pos) override |
| VulkanImage & | operator= (const VulkanImage &image) noexcept |
| void | loadFromMemory (const char *rdata, uint w, uint h, ImageFormat fmt=kImageFormatBGRA) |
| void | draw (const GraphicsContext &context) |
| void | drawAt (const GraphicsContext &context, int x, int y) |
| Public Member Functions inherited from ImageBase | |
| virtual | ~ImageBase () |
| bool | isValid () const noexcept |
| bool | isInvalid () const noexcept |
| uint | getWidth () const noexcept |
| uint | getHeight () const noexcept |
| const Size< uint > & | getSize () const noexcept |
| const char * | getRawData () const noexcept |
| ImageFormat | getFormat () const noexcept |
| void | loadFromMemory (const char *rawData, uint width, uint height, ImageFormat format=kImageFormatBGRA) noexcept |
| void | draw (const GraphicsContext &context) |
| void | drawAt (const GraphicsContext &context, int x, int y) |
| ImageBase & | operator= (const ImageBase &image) noexcept |
| bool | operator== (const ImageBase &image) const noexcept |
| bool | operator!= (const ImageBase &image) const noexcept |
Additional Inherited Members | |
| Protected Member Functions inherited from ImageBase | |
| ImageBase () | |
| ImageBase (const char *rawData, uint width, uint height, ImageFormat format) | |
| ImageBase (const char *rawData, const Size< uint > &size, ImageFormat format) | |
| ImageBase (const ImageBase &image) | |
| Protected Attributes inherited from ImageBase | |
| const char * | rawData |
| Size< uint > | size |
| ImageFormat | format |
Vulkan Image class.
TODO ...
| VulkanImage::VulkanImage | ( | ) |
Constructor for a null Image.
| VulkanImage::VulkanImage | ( | const char * | rawData, |
| uint | width, | ||
| uint | height, | ||
| ImageFormat | format ) |
Constructor using raw image data.
| VulkanImage::VulkanImage | ( | const char * | rawData, |
| const Size< uint > & | size, | ||
| ImageFormat | format ) |
Constructor using raw image data.
| VulkanImage::VulkanImage | ( | const VulkanImage & | image | ) |
Constructor using another image data.
|
override |
Destructor.
|
overridevirtualnoexcept |
Load image data from memory.
Reimplemented from ImageBase.
|
overridevirtual |
Draw this image at position pos using the graphics context context.
Implements ImageBase.
|
noexcept |
TODO document this.