![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include "GrayMapData.h"
#include "CMapKeys.h"
#include "cMapTime.h"
#include "Gray3D/include/Map/cMapCommon.h"
#include "GrayLib/include/Math/cValueRange.h"
#include "GrayLib/include/Geometry/cPoint3.h"
#include "GrayLib/include/Geometry/cCoordSpace.h"
#include "GrayLib/include/Geometry/cSphere.h"
#include "GrayLib/include/Scriptable/cScriptableObj.h"
#include "GrayCore/include/cThreadLockRef.h"
#include "cMapBaseProps.tbl"
Go to the source code of this file.
Classes | |
class | GrayMapData::cMapWaterDef |
class | GrayMapData::cMapBase |
Namespaces | |
GrayMapData | |
Macros | |
#define | MAP_SCALE(lod) (1<<((lod)*3)) |
integer Size of a patch's MAP_PATCH_POINTS (in meters (MAP_METERI_t)) More... | |
#define | MAP_SIZE(lod) (MAP_SCALE(lod) * MAP_PATCH_POINTS) |
size of a patch (in meters (MAP_METERI_t)) More... | |
#define | cMapBaseProp(a, b, c, d, e) P_##a, |
Typedefs | |
typedef int | GrayMapData::MAP_PATCH_POINT_t |
this gives the number of samples in the heightmap file: 128 means a 129x129 file (include skirt pixel) More... | |
typedef WORD | GrayMapData::MAP_CHANNEL_t |
typedef unsigned short | GrayMapData::MAP_HEIGHT_t |
typedef BYTE | GrayMapData::MAP_SURFACE_ID_t |
typedef DWORD | GrayMapData::MAP_TERRAIN_MASK_t |
typedef cRefPtr< cMapPatch > | GrayMapData::cMapPatchPtr |
typedef cThreadLockRef< cMapPatch > | GrayMapData::cMapPatchPtrX |
Variables | |
const int | GrayMapData::MAP_LOD_RATIO = 8 |
Ratio of one LOD to the next. i.e. a parent patch has (max) <= MAP_LOD_RATIO^2 immediate children. More... | |
const MAP_PATCH_POINT_t | GrayMapData::MAP_PATCH_POINTS = 128 |
arbitrary qty of points in the patch height grid. (meters @ MAP_LOD_BLOCK) MAP_PATCH_POINT_t More... | |
const D3DVALUE | GrayMapData::MAP_VIEWDIST_NEAR_DEF = 0.3f |
const D3DVALUE | GrayMapData::MAP_VIEWDIST_MIN = 0.1f |
const MAP_HEIGHT_t | GrayMapData::MAP_HEIGHT_UNITS = 0xFFFF |
const MAP_METERf_t | GrayMapData::MAP_HEIGHT_SCALE = 0.04f |
__DECL_IMPORT cCoordSpaceDX | GrayMapData::g_Coords |
load/manage a geographic map with multiple LODs
#define cMapBaseProp | ( | a, | |
b, | |||
c, | |||
d, | |||
e | |||
) | P_##a, |
#define MAP_SCALE | ( | lod | ) | (1<<((lod)*3)) |
integer Size of a patch's MAP_PATCH_POINTS (in meters (MAP_METERI_t))
#define MAP_SIZE | ( | lod | ) | (MAP_SCALE(lod) * MAP_PATCH_POINTS) |
size of a patch (in meters (MAP_METERI_t))