TerrainID=134
int __stdcall WinMain(HINSTANCE, HINSTANCE, LPSTR, int) {
HWND hWnd;
if (!initDarkGDK("gdkengine.dll"))
return 1;
int screenW = GetSystemMetrics(SM_CXSCREEN);
int screenH = GetSystemMetrics(SM_CYSCREEN);
hWnd = openWindow(0, 0, screenW, screenH, "симулятор АНСАТ. нулевое демо",
WS_OVERLAPPED | WS_CLIPSIBLINGS | WS_CAPTION | WS_SYSMENU |
WS_CLIPCHILDREN, true);
dbOpenScreen(hWnd, 0, 0, screenW, screenH);
ShowWindow(hWnd, SW_SHOW);
dbSyncRate(60);
dbAutoCamOff();
........
........
.......
dbCreateAdvancedTerrain (TerrainID);
dbSetTerrainHeightMap ( TerrainID, "Resource/Terrain/tropical_HX.bmp");
dbSetTerrainScale ( TerrainID, 50, 10, 50);
dbSetTerrainSplit ( TerrainID, 8);
dbSetTerrainTexture ( TerrainID, TERRA_COLOR_TEXTURE, TERRA_DEATIL_LOW );
dbSetTerrainTiling ( TerrainID, 16);
dbBuildTerrain ( TerrainID );
...........
...............
.............
}
dbBuildTerrain crash!
zzz!