* try to resolve merge conflict
* feat: TU19 (Dec 2014) Features & Content (#32)
* December 2014 files
* Working release build
* Fix compilation issues
* Add sound to Windows64Media
* Add DLC content and force Tutorial DLC
* Revert "Add DLC content and force Tutorial DLC"
This reverts commit 97a4399472.
* Disable broken light packing
* Disable breakpoint during DLC texture map load
Allows DLC loading but the DLC textures are still broken
* Fix post build not working
* ...
* fix vs2022 build
* fix cmake build
---------
Co-authored-by: Loki <lokirautio@gmail.com>
54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
#pragma once
|
|
using namespace std;
|
|
|
|
#include "..\Minecraft.World\IconRegister.h"
|
|
|
|
class Icon;
|
|
class StitchedTexture;
|
|
class Texture;
|
|
class BufferedImage;
|
|
|
|
// 4J Added this class to stop having to do texture stitching at runtime
|
|
class PreStitchedTextureMap : public IconRegister
|
|
{
|
|
public:
|
|
static const wstring NAME_MISSING_TEXTURE;
|
|
|
|
private:
|
|
const int iconType;
|
|
|
|
const wstring name;
|
|
const wstring path;
|
|
const wstring extension;
|
|
|
|
bool m_mipMap;
|
|
|
|
typedef unordered_map<wstring, Icon *> stringIconMap;
|
|
stringIconMap texturesByName; // = new HashMap<String, StitchedTexture>();
|
|
BufferedImage *missingTexture; // = new BufferedImage(64, 64, BufferedImage.TYPE_INT_ARGB);
|
|
StitchedTexture *missingPosition;
|
|
Texture *stitchResult;
|
|
vector<StitchedTexture *> animatedTextures; // = new ArrayList<StitchedTexture>();
|
|
|
|
void loadUVs();
|
|
public:
|
|
PreStitchedTextureMap(int type, const wstring &name, const wstring &path, BufferedImage *missingTexture, bool mipMap = false);
|
|
|
|
void stitch();
|
|
|
|
private:
|
|
void makeTextureAnimated(TexturePack *texturePack, StitchedTexture *tex);
|
|
|
|
public:
|
|
StitchedTexture *getTexture(const wstring &name);
|
|
void cycleAnimationFrames();
|
|
Texture *getStitchedTexture();
|
|
|
|
// 4J Stu - register is a reserved keyword in C++
|
|
Icon *registerIcon(const wstring &name);
|
|
|
|
int getIconType();
|
|
Icon *getMissingIcon();
|
|
|
|
int getFlags() const;
|
|
}; |