the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 33 lines 1.0 kB view raw
1#pragma once 2using namespace std; 3 4class Graphics; 5class DLCPack; 6 7class BufferedImage 8{ 9private: 10 int *data[10]; // Arrays for mipmaps - NULL if not used 11 int width; 12 int height; 13 void ByteFlip4(unsigned int &data); // 4J added 14public: 15 static const int TYPE_INT_ARGB = 0; 16 static const int TYPE_INT_RGB = 1; 17 BufferedImage(int width,int height,int type); 18 BufferedImage(const wstring& File, bool filenameHasExtension = false, bool bTitleUpdateTexture=false, const wstring &drive =L""); // 4J added 19 BufferedImage(DLCPack *dlcPack, const wstring& File, bool filenameHasExtension = false ); // 4J Added 20 BufferedImage(BYTE *pbData, DWORD dwBytes); // 4J added 21 ~BufferedImage(); 22 23 int getWidth(); 24 int getHeight(); 25 void getRGB(int startX, int startY, int w, int h, intArray out,int offset,int scansize, int level = 0); // 4J Added level param 26 int *getData(); // 4J added 27 int *getData(int level); // 4J added 28 Graphics *getGraphics(); 29 int getTransparency(); 30 BufferedImage *getSubimage(int x, int y, int w, int h); 31 32 void preMultiplyAlpha(); 33};