|
My Project
|
a single region layer More...
#include <TerrainRegions.h>
Public Member Functions | |
| void | LoadFromFile (const char *filename, int nBytesPerPixel=0) |
| load from an image file. More... | |
| DWORD | GetPixelValue (int x, int y) |
| get the value in image. More... | |
| int | GetHeight () |
| pixels columns | |
| int | GetWidth () |
| pixels rows | |
| const string & | GetFileName () |
| get texture file path. More... | |
| void | SetFileName (const string &filename) |
| set the file name. More... | |
a single region layer
|
inline |
get texture file path.
| DWORD CRegionLayer::GetPixelValue | ( | int | x, |
| int | y | ||
| ) |
get the value in image.
| void CRegionLayer::LoadFromFile | ( | const char * | filename, |
| int | nBytesPerPixel = 0 |
||
| ) |
load from an image file.
| filename | file name. |
| nBytesPerPixel | if 0, the value is read from the filename. for example, if file name ends with "_8bits.png", it is treated as a 1 byte per pixel. |
| void CRegionLayer::SetFileName | ( | const string & | filename | ) |
set the file name.
1.8.12