17 #ifndef DGL_IMAGE_HPP_INCLUDED
18 #define DGL_IMAGE_HPP_INCLUDED
20 #include "Geometry.hpp"
50 Image(
const char*
const rawData,
const uint width,
const uint height,
const GLenum format = GL_BGRA,
const GLenum type = GL_UNSIGNED_BYTE);
56 Image(
const char*
const rawData,
const Size<uint>& size,
const GLenum format = GL_BGRA,
const GLenum type = GL_UNSIGNED_BYTE);
72 void loadFromMemory(
const char*
const rawData,
const uint width,
const uint height,
const GLenum format = GL_BGRA,
const GLenum type = GL_UNSIGNED_BYTE) noexcept;
78 void loadFromMemory(
const char*
const rawData,
const Size<uint>& size,
const GLenum format = GL_BGRA,
const GLenum type = GL_UNSIGNED_BYTE) noexcept;
113 GLenum
getType()
const noexcept;
123 void drawAt(
const int x,
const int y);
130 Image& operator=(
const Image& image) noexcept;
131 bool operator==(
const Image& image)
const noexcept;
132 bool operator!=(
const Image& image)
const noexcept;
135 const char* fRawData;
147 #endif // DGL_IMAGE_HPP_INCLUDED
GLenum getType() const noexcept
uint getWidth() const noexcept
void drawAt(const int x, const int y)
void loadFromMemory(const char *const rawData, const uint width, const uint height, const GLenum format=GL_BGRA, const GLenum type=GL_UNSIGNED_BYTE) noexcept
const char * getRawData() const noexcept
GLenum getFormat() const noexcept
bool isValid() const noexcept
const Size< uint > & getSize() const noexcept
uint getHeight() const noexcept