mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-11 19:53:52 +00:00
Initial commit
This commit is contained in:
parent
def8cb4153
commit
b691c43c44
19437 changed files with 4363922 additions and 0 deletions
33
Minecraft.Client/MemTexture.cpp
Normal file
33
Minecraft.Client/MemTexture.cpp
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue