Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
681 B · 37 lines
C
at master
12345678910111213141516171819202122232425262728293031323334353637#pragma once
class Texture;
class TextureHolder //implements Comparable<TextureHolder> {{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); //@Override wstring toString(); int compareTo(const TextureHolder *other) const;};
struct TextureHolderLessThan{ inline bool operator()(const TextureHolder *first, const TextureHolder *second) const { return first->compareTo(second) >= 0; }};