summaryrefslogtreecommitdiff
path: root/3dc/win95/CL_INIT.CPP
diff options
context:
space:
mode:
authorRebellion Developments <rebellion@nomail>2000-03-16 11:25:00 +0100
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-19 05:45:17 +0200
commit218ca90543758a20ac326e444ca0643174ca7384 (patch)
tree16bfe3e5307f9f515489000f28728224291a0e3b /3dc/win95/CL_INIT.CPP
Import Aliens vs Predator - Gold (Build 116)
Source code release, imported from: https://www.gamefront.com/games/aliens-vs-predator-3/file/avp-gold-complete-source-code All text files were converted to Unix format.
Diffstat (limited to '3dc/win95/CL_INIT.CPP')
-rw-r--r--3dc/win95/CL_INIT.CPP34
1 files changed, 34 insertions, 0 deletions
diff --git a/3dc/win95/CL_INIT.CPP b/3dc/win95/CL_INIT.CPP
new file mode 100644
index 0000000..beab242
--- /dev/null
+++ b/3dc/win95/CL_INIT.CPP
@@ -0,0 +1,34 @@
+#include "cl_init.h"
+#include "system.h" // because the 3dc header files don't automatically include the ones they need
+#include "equates.h" // because the 3dc header files don't automatically include the ones they need
+#include "platform.h" // for VideoModeTypes
+#include "shape.h" // because the 3dc header files don't automatically include the ones they need
+#include "prototyp.h" // for SDB
+#include "d3_image.hpp" // for init functions
+
+extern "C" extern SCREENDESCRIPTORBLOCK ScreenDescriptorBlock;
+
+void CL_Init_All(void)
+{
+ switch (VideoModeTypeScreen)
+ {
+ case VideoModeType_8:
+ if (ScreenDescriptorBlock.SDB_Flags & SDB_Flag_TLTPalette)
+ CL_Init_DirectDrawMode(CLV_8TLT);
+ else
+ CL_Init_DirectDrawMode(CLV_8);
+ break;
+ case VideoModeType_15:
+ CL_Init_DirectDrawMode(CLV_15);
+ break;
+ case VideoModeType_24:
+ CL_Init_DirectDrawMode(CLV_24);
+ break;
+ case VideoModeType_8T:
+ CL_Init_DirectDrawMode(CLV_8T);
+ break;
+ }
+
+ if (ScanDrawDirectDraw != ScanDrawMode)
+ CL_Init_D3DMode(&(d3d.TextureFormat[d3d.CurrentTextureFormat].ddsd));
+}