mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-23 02:15:59 +00:00
restructure codebase according to vcproj filters
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#include "../../../../../Minecraft.World/Header Files/stdafx.h"
|
||||
#include "../../../../Header Files/MemTexture.h"
|
||||
|
||||
MemTexture::MemTexture(const std::wstring& _url, std::uint8_t* pbData,
|
||||
std::uint32_t dataBytes,
|
||||
MemTextureProcessor* processor) {
|
||||
// 4J - added
|
||||
count = 1;
|
||||
id = -1;
|
||||
isLoaded = false;
|
||||
ticksSinceLastUse = 0;
|
||||
|
||||
// 4J - TODO - actually implement
|
||||
|
||||
// load the texture, and process it
|
||||
// loadedImage=Textures::getTexture()
|
||||
// 4J - remember to add deletes in here for any created BufferedImages when
|
||||
// implemented
|
||||
loadedImage = new BufferedImage(pbData, dataBytes);
|
||||
if (processor == nullptr) {
|
||||
} else {
|
||||
// loadedImage=processor.process(ImageIO.read(huc.getInputStream()));
|
||||
}
|
||||
}
|
||||
|
||||
MemTexture::~MemTexture() { delete loadedImage; }
|
||||
Reference in New Issue
Block a user