hibiscus/core/resources/texture.hpp

22 lines
369 B
C++
Raw Normal View History

#pragma once
2023-05-30 16:00:39 +00:00
#include <vector>
#include <lodepng/lodepng.h>
#include "resource.hpp"
2023-05-30 14:20:34 +00:00
#include "../pragmautil.hpp"
namespace hibis {
TODO("Make this function")
class Texture : Resource {
2023-05-30 16:00:39 +00:00
public:
Texture(char* path);
~Texture();
std::vector<unsigned char> mData;
unsigned int mImageWidth, mImageHeight;
private:
std::vector<unsigned char> mBuffer;
};
}