20 lines
459 B
C++
20 lines
459 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include <ReTexture/flags.h>
|
|
#include <png.h>
|
|
|
|
class RTexture {
|
|
private:
|
|
void load(const std::string& file);
|
|
void loadBMP(const std::string& file);
|
|
void loadPNG(const std::string& file);
|
|
void invertY();
|
|
public:
|
|
uint width;
|
|
uint height;
|
|
RTextureFormat format;
|
|
std::vector<unsigned char> pixelData;
|
|
RTexture(const std::string& file, const std::vector<RTextureFlag>& args);
|
|
}; |