GCanvas/node/image/ImageCahced.h
2020-06-01 16:59:37 +08:00

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