mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 12:13:36 +00:00
22 lines
440 B
C++
22 lines
440 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
class BufferedImage;
|
|
class MemTextureProcessor;
|
|
|
|
class MemTexture {
|
|
public:
|
|
BufferedImage* loadedImage;
|
|
int count;
|
|
int id;
|
|
bool isLoaded;
|
|
int ticksSinceLastUse;
|
|
static const int UNUSED_TICKS_TO_FREE = 20;
|
|
|
|
MemTexture(const std::string& _name, std::uint8_t* pbData,
|
|
std::uint32_t dataBytes, MemTextureProcessor* processor);
|
|
~MemTexture();
|
|
};
|