the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "MemTexture.h"
3
4MemTexture::MemTexture(const wstring& _url, PBYTE pbData,DWORD dwBytes, MemTextureProcessor *processor)
5{
6 // 4J - added
7 count = 1;
8 id = -1;
9 isLoaded = false;
10 ticksSinceLastUse = 0;
11
12 // 4J - TODO - actually implement
13
14 // load the texture, and process it
15 //loadedImage=Textures::getTexture()
16 // 4J - remember to add deletes in here for any created BufferedImages when implemented
17 loadedImage = new BufferedImage(pbData,dwBytes);
18 if(processor==NULL)
19 {
20
21 }
22 else
23 {
24 //loadedImage=processor.process(ImageIO.read(huc.getInputStream()));
25 }
26
27
28}
29
30MemTexture::~MemTexture()
31{
32 delete loadedImage;
33}