Files
Loki Rautio 087b7e7abf Revert "Project modernization (#630)"
This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.

This reverts commit a9be52c41a.
2026-03-07 21:12:22 -06:00

33 lines
658 B
C++

#include "stdafx.h"
#include "MemTexture.h"
MemTexture::MemTexture(const wstring& _url, PBYTE pbData,DWORD dwBytes, 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,dwBytes);
if(processor==NULL)
{
}
else
{
//loadedImage=processor.process(ImageIO.read(huc.getInputStream()));
}
}
MemTexture::~MemTexture()
{
delete loadedImage;
}