aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/MemTexture.cpp
blob: f587e82f1af98e6411578485d437fe68165c3a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
}