the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 37 lines 681 B view raw
1#pragma once 2 3class Texture; 4 5class TextureHolder //implements Comparable<TextureHolder> { 6{ 7private: 8 Texture *texture; 9 int width; 10 int height; 11 bool rotated; 12 float scale; 13 14public: 15 TextureHolder(Texture *texture); 16 17 Texture *getTexture(); 18 int getWidth() const; 19 int getHeight() const; 20 void rotate(); 21 bool isRotated(); 22 23private: 24 int smallestFittingMinTexel(int input) const; 25 26public: 27 void setForcedScale(int targetSize); 28 //@Override 29 wstring toString(); 30 int compareTo(const TextureHolder *other) const; 31}; 32 33struct TextureHolderLessThan 34{ 35 inline bool operator()(const TextureHolder *first, const TextureHolder *second) const 36 { return first->compareTo(second) >= 0; } 37};