#include <C4TextureShape.h>
Public Member Functions | |
C4TextureShape () | |
~C4TextureShape ()=default | |
void | Clear () |
bool | Load (C4Group &group, const char *filename, int32_t base_tex_wdt, int32_t base_tex_hgt) |
int32_t | GetWidth () const |
int32_t | GetHeight () const |
int32_t | GetMaxPolyWidth () const |
int32_t | GetMaxPolyHeight () const |
void | Draw (const CSurface8 &sfcMap, const CSurface8 &sfcMapBkg, int32_t iMapX, int32_t iMapY, int32_t iMapWdt, int32_t iMapHgt, uint8_t iTexture, int32_t iOffX, int32_t iOffY, int32_t MapZoom, int32_t min_overlap_ratio) |
Definition at line 26 of file C4TextureShape.h.
|
inline |
Definition at line 35 of file C4TextureShape.h.
|
default |
void C4TextureShape::Clear | ( | ) |
Definition at line 29 of file C4TextureShape.cpp.
References CSurface8::Clear().
Referenced by Load().
void C4TextureShape::Draw | ( | const CSurface8 & | sfcMap, |
const CSurface8 & | sfcMapBkg, | ||
int32_t | iMapX, | ||
int32_t | iMapY, | ||
int32_t | iMapWdt, | ||
int32_t | iMapHgt, | ||
uint8_t | iTexture, | ||
int32_t | iOffX, | ||
int32_t | iOffY, | ||
int32_t | MapZoom, | ||
int32_t | min_overlap_ratio | ||
) |
Definition at line 178 of file C4TextureShape.cpp.
References CSurface8::_GetPix(), C4Landscape::_SetPix2(), C4TextureShapeActivationMap::Add(), C4TextureShapeActivationMap::Get(), C4Landscape::GetHeight(), GetMaxPolyHeight(), GetMaxPolyWidth(), CSurface8::GetPix(), C4Landscape::GetWidth(), CSurface8::Hgt, Landscape, and CSurface8::Wdt.
Referenced by C4Landscape::P::ChunkOZoom().
|
inline |
Definition at line 42 of file C4TextureShape.h.
References CSurface8::Hgt.
Referenced by GetMaxPolyHeight().
|
inline |
Definition at line 46 of file C4TextureShape.h.
References GetHeight().
Referenced by Draw(), C4Landscape::DrawBox(), C4Landscape::DrawBrush(), and C4Landscape::DrawLine().
|
inline |
Definition at line 45 of file C4TextureShape.h.
References GetWidth().
Referenced by Draw(), C4Landscape::DrawBox(), C4Landscape::DrawBrush(), and C4Landscape::DrawLine().
|
inline |
Definition at line 41 of file C4TextureShape.h.
References CSurface8::Wdt.
Referenced by GetMaxPolyWidth().
bool C4TextureShape::Load | ( | C4Group & | group, |
const char * | filename, | ||
int32_t | base_tex_wdt, | ||
int32_t | base_tex_hgt | ||
) |
Definition at line 39 of file C4TextureShape.cpp.
References CSurface8::_SetPix(), Clear(), Config, CSurface8::Create(), C4ConfigDeveloper::DebugShapeTextures, C4Config::Developer, StdBuf::getMData(), CPNGFile::GetPix(), StdBuf::getSize(), CSurface8::Hgt, CPNGFile::iHgt, CPNGFile::iWdt, CPNGFile::Load(), C4Group::LoadEntry(), LogF(), and CSurface8::Wdt.