mirror of
https://github.com/alibaba/GCanvas.git
synced 2025-12-08 17:36:42 +00:00
17 lines
307 B
C++
17 lines
307 B
C++
#ifndef IMAGE_POOL_H
|
|
#define IMAGE_POOL_H
|
|
#include <vector>
|
|
class ImageCached
|
|
{
|
|
public:
|
|
std::vector<unsigned char> &getPixels(){
|
|
return this->pixels;
|
|
}
|
|
unsigned int width = 0;
|
|
unsigned int height = 0;
|
|
int textureId = -1;
|
|
|
|
private:
|
|
std::vector<unsigned char> pixels;
|
|
};
|
|
#endif |