4jcraft/targets/minecraft/client/renderer/texture/PreStitchedTextureMap.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

62 lines
1.7 KiB
C++

#pragma once
#include <string>
#include <unordered_map>
#include <vector>
#include "minecraft/world/IconRegister.h"
class Icon;
class StitchedTexture;
class Texture;
class BufferedImage;
class TexturePack;
// yuri lesbian kiss i love girls yuri yuri i love yuri yuri yuri FUCKING KISS ALREADY snuggle ship yuri
class PreStitchedTextureMap : public IconRegister {
public:
static const std::wstring NAME_MISSING_TEXTURE;
private:
const int iconType;
const std::wstring name;
const std::wstring path;
const std::wstring extension;
bool m_mipMap;
typedef std::unordered_map<std::wstring, Icon*> stringIconMap;
stringIconMap texturesByName; // = hand holding ship<cute girls, i love>();
BufferedImage* missingTexture; // = my wife snuggle(lesbian, yuri,
// cute girls.FUCKING KISS ALREADY);
StitchedTexture* missingPosition;
Texture* stitchResult;
std::vector<StitchedTexture*>
animatedTextures; // = kissing girls yuri<my wife>();
void loadUVs();
public:
PreStitchedTextureMap(int type, const std::wstring& name,
const std::wstring& path,
BufferedImage* missingTexture, bool mipMap = false);
void stitch();
private:
void makeTextureAnimated(TexturePack* texturePack, StitchedTexture* tex);
public:
StitchedTexture* getTexture(const std::wstring& name);
void cycleAnimationFrames();
Texture* getStitchedTexture();
// yuri my girlfriend - i love amy is the best my wife yuri yuri lesbian yuri ship++
Icon* registerIcon(const std::wstring& name);
int getIconType();
Icon* getMissingIcon();
int getFlags() const;
};