17#ifndef ENGINE_GRAPHICS_GIMAGE_H_
18#define ENGINE_GRAPHICS_GIMAGE_H_
62 unsigned int load(
const std::string& fullPath);
91 unsigned int loadImage(
const std::string& imagePath);
211 std::string imageurl;
212 static int downloadno;
std::string getImageUrl()
void setImageData(unsigned char *imageData)
gImage(int w, int h, int format=GL_RGBA)
float * getImageDataHDR()
void setImageData(unsigned char *imageData, int width, int height, int componentNum, bool isMutable=false, bool isStbImage=false)
void setImageDataHDR(float *imageData, int width, int height, int componentNum, bool isMutable=false, bool isStbImage=false)
void loadImageData(const std::string &imagePath)
void save(std::string fullpath)
static std::string generateDownloadedImagePath(std::string imageType="png")
unsigned int loadImage(const std::string &imagePath)
void swap(gImage &other) noexcept
unsigned int loadMaskImage(const std::string &maskImagePath)
bool checkPixelPerfectCollision(gImage *otherImage, float imgposX, float imgposY, float otherimgposX, float otherimgposY)
void saveImage(std::string fileName)
gImage(const gImage &other)
unsigned int load(const std::string &fullPath)
gImage & operator=(const gImage &other)
gImage & operator=(gImage &&other) noexcept
unsigned int loadImageFromURL(const std::string &imageUrl, bool cutUrlParameters)
void copyFrom(const gImage &other) noexcept
unsigned int loadImageFromURL(const std::string &imageUrl)
void loadData(const std::string &fullPath)
void setImageDataHDR(float *imageData)
gImage(gImage &&other) noexcept
unsigned char * getImageData()
unsigned int format
Definition gTexture.h:147
int width
Definition gTexture.h:150
int height
Definition gTexture.h:150
std::string fullpath
Definition gTexture.h:146