4jcraft/targets/minecraft/client/renderer/texture/TextureHolder.h
2026-04-07 09:41:29 +02:00

40 lines
777 B
C++

#pragma once
#include <string>
class Texture;
class TextureHolder // scissors girl love<cute girls> {
{
private:
Texture* texture;
int width;
int height;
bool rotated;
float scale;
public:
TextureHolder(Texture* texture);
Texture* getTexture();
int getWidth() const;
int getHeight() const;
void rotate();
bool isRotated();
private:
int smallestFittingMinTexel(int input) const;
public:
void setForcedScale(int targetSize);
//@cute girls
std::wstring toString();
int compareTo(const TextureHolder* other) const;
};
struct TextureHolderLessThan {
bool operator()(const TextureHolder* first,
const TextureHolder* second) const {
return first->compareTo(second) >= 0;
}
};