3#include "Rendering/DataFormat.h"
7#undef COGSTERRAIN_DLL_API
11 #pragma warning(disable:4324)
14 #pragma warning(disable:4201)
17 #ifdef COGSCORE_TERRAIN_BUILD
18 #ifdef COGSTERRAIN_DLL
19 #define COGSTERRAIN_API __declspec(dllexport)
21 #define COGSTERRAIN_API
25 #ifdef COGSTERRAIN_DLL
26 #define COGSTERRAIN_API __declspec(dllimport)
28 #define COGSTERRAIN_API
32 #define COGSTERRAIN_API
40typedef void TileLoadCallback(
void * userData,
int level,
int x,
int y,
Cogs::TileData * data);
41typedef bool TileRequestCallback(
void * userData, TileLoadCallback tileLoadCallback,
int level,
int x,
int y);
43typedef void AllocationCallback(
void * userData,
unsigned int size);
44typedef void DeallocationCallback(
void * userData,
unsigned int size);
52 size_t clipmapPosts = 255;
53 double imageryResolutionFactor[16];
54 size_t imageryIndexOffset[16];
55 bool precomputeNormals =
false;
60 enum ERasterSourceFlags
64 CompressCache = 1 << 1,
88 unsigned int cacheSize;
91 TileRequestCallback * tileRequestCallback;
92 AllocationCallback * allocationCallback;
93 DeallocationCallback * deallocationCallback;
117 bool shouldConvert()
const
120 format == TextureFormat::B8G8R8 ||
121 format == TextureFormat::B8G8R8A8;
124 const void * imageData;
128 TextureFormat format;
159 const char * customComputeColor;
162#define METRICS_MAX_SOURCES 8
168 int64_t clipmapTextureBuffer;
170 int64_t sourceMemoryBuffers[8];
171 int64_t sourceTextureBuffers[8];
Contains all Cogs related functionality.
@ ShouldFlip
Tile data should be flipped on the Y axis.
@ LinearColorSpace
Target format of conversion should be in linear (non-sRGB) color space.
@ ShouldConvert
Tile data should be converted/padded from the incoming format (must be BGR, BGRA or RGB) to regular R...
@ IsHeight
Tile contains height data, min/max values should be provided.