MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnTerrpadImport

Method OnTerrpadImport

editor/TerrainDialog.cpp:542–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540}
541
542void CTerrainDialog::OnTerrpadImport() {
543 char filename[255];
544
545 CString filter = "PCX files (*.pcx)|*.pcx||";
546
547 if (!OpenFileDialog(this, (LPCSTR)filter, filename, Current_bitmap_dir, sizeof(Current_bitmap_dir)))
548 return;
549
550 // Okay, we selected a file. Lets do what needs to be done here.
551 LoadPCXTerrain(filename);
552}
553
554void CTerrainDialog::OnTerrpadRenormalize() {
555 mprintf(0, "Building terrain normals...this might take a couple of seconds.\n");

Callers

nothing calls this directly

Calls 2

OpenFileDialogFunction · 0.85
LoadPCXTerrainFunction · 0.85

Tested by

no test coverage detected