DDraceNetwork Docs
|
#include <base/logger.h>
#include <base/system.h>
#include <engine/gfx/image_loader.h>
#include <engine/shared/datafile.h>
#include <engine/storage.h>
#include <game/mapitems.h>
Functions | |
bool | CreatePixelArt (const char[3][IO_MAX_PATH_LENGTH], const int[2], const int[2], int[2], const bool[2]) |
void | InsertCurrentQuads (CDataFileReader &, CMapItemLayerQuads *, CQuad *) |
int | InsertPixelArtQuads (CQuad *, int &, const CImageInfo &, const int[2], const int[2], const bool[2]) |
bool | OpenMaps (const char[2][IO_MAX_PATH_LENGTH], CDataFileReader &, CDataFileWriter &) |
void | SaveOutputMap (CDataFileReader &, CDataFileWriter &, CMapItemLayerQuads *, int, CQuad *, int) |
CMapItemLayerQuads * | GetQuadLayer (CDataFileReader &, const int[2], int *) |
CQuad | CreateNewQuad (float, float, int, int, const uint8_t[4], const int[2]) |
bool | GetPixelClamped (const CImageInfo &, size_t, size_t, uint8_t[4]) |
bool | ComparePixel (const uint8_t[4], const uint8_t[4]) |
bool | IsPixelOptimizable (const CImageInfo &, size_t, size_t, const uint8_t[4], const bool[]) |
void | SetVisitedPixels (const CImageInfo &, size_t, size_t, size_t, size_t, bool[]) |
size_t | GetImagePixelSize (const CImageInfo &) |
size_t | FindSuperPixelSize (const CImageInfo &, const uint8_t[4], size_t, size_t, size_t, bool[]) |
void | GetOptimizedQuadSize (const CImageInfo &, size_t, const uint8_t[4], size_t, size_t, size_t &, size_t &, bool[]) |
int | main (int argc, const char **argv) |
bool ComparePixel | ( | const uint8_t | aPixel1[4], |
const uint8_t | aPixel2[4] | ||
) |
CQuad CreateNewQuad | ( | float | PosX, |
float | PosY, | ||
int | Width, | ||
int | Height, | ||
const uint8_t | aColor[4], | ||
const int | aForcedPivot[2] = 0x0 |
||
) |
bool CreatePixelArt | ( | const char | aFilenames[3][IO_MAX_PATH_LENGTH], |
const int | aLayerId[2], | ||
const int | aStartingPos[2], | ||
int | aPixelSizes[2], | ||
const bool | aArtOptions[2] | ||
) |
size_t FindSuperPixelSize | ( | const CImageInfo & | Img, |
const uint8_t | aPixel[4], | ||
size_t | PosX, | ||
size_t | PosY, | ||
size_t | CurrentSize, | ||
bool | aVisitedPixels[] | ||
) |
size_t GetImagePixelSize | ( | const CImageInfo & | Img | ) |
void GetOptimizedQuadSize | ( | const CImageInfo & | Img, |
size_t | ImgPixelSize, | ||
const uint8_t | aPixel[4], | ||
size_t | PosX, | ||
size_t | PosY, | ||
size_t & | Width, | ||
size_t & | Height, | ||
bool | aVisitedPixels[] | ||
) |
bool GetPixelClamped | ( | const CImageInfo & | Img, |
size_t | x, | ||
size_t | y, | ||
uint8_t | aPixel[4] | ||
) |
CMapItemLayerQuads * GetQuadLayer | ( | CDataFileReader & | InputMap, |
const int | aLayerId[2], | ||
int * | pItemNumber | ||
) |
void InsertCurrentQuads | ( | CDataFileReader & | InputMap, |
CMapItemLayerQuads * | pQuadLayer, | ||
CQuad * | pNewQuads | ||
) |
int InsertPixelArtQuads | ( | CQuad * | pQuads, |
int & | NumQuads, | ||
const CImageInfo & | Img, | ||
const int | aStartingPos[2], | ||
const int | aPixelSizes[2], | ||
const bool | aArtOptions[2] | ||
) |
bool IsPixelOptimizable | ( | const CImageInfo & | Img, |
size_t | PosX, | ||
size_t | PosY, | ||
const uint8_t | aPixel[4], | ||
const bool | aVisitedPixels[] | ||
) |
int main | ( | int | argc, |
const char ** | argv | ||
) |
bool OpenMaps | ( | const char | pMapNames[2][IO_MAX_PATH_LENGTH], |
CDataFileReader & | InputMap, | ||
CDataFileWriter & | OutputMap | ||
) |
void SaveOutputMap | ( | CDataFileReader & | InputMap, |
CDataFileWriter & | OutputMap, | ||
CMapItemLayerQuads * | pNewItem, | ||
int | NewItemNumber, | ||
CQuad * | pNewData, | ||
int | NewDataSize | ||
) |
void SetVisitedPixels | ( | const CImageInfo & | Img, |
size_t | PosX, | ||
size_t | PosY, | ||
size_t | Width, | ||
size_t | Height, | ||
bool | aVisitedPixels[] | ||
) |