diff dmengine.h @ 593:17bf1704d42e

More work on video setup.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 12 Apr 2013 05:56:56 +0300
parents cf5d44b36851
children 8a9361179a1a
line wrap: on
line diff
--- a/dmengine.h	Fri Apr 12 05:32:37 2013 +0300
+++ b/dmengine.h	Fri Apr 12 05:56:56 2013 +0300
@@ -19,6 +19,16 @@
 extern "C" {
 #endif
 
+// Video setup screen / window size
+#define DM_VSETUP_WIDTH  640
+#define DM_VSETUP_HEIGHT 480
+
+// Video setup type
+#define DM_VSETUP_NONE   0x00  // No video setup, just set window/screen to what demo specifies
+#define DM_VSETUP_ASPECT 0x01  // Only modes that match the optVidAspect aspect ratio are ok
+#define DM_VSETUP_ANY    0x02  // Any available mode is okay, the code can adapt
+
+
 
 #define DT_MAGIC_ID           "SDMETLNE"
 #define DT_MAX_EFFECT_PARAMS  16
@@ -212,8 +222,9 @@
     SDL_Event event;
     SDL_AudioSpec optAfmt;
 
-    int optScrWidth, optScrHeight,
-        optScrDepth, optVFlags, optScrAspect;
+    int optVidWidth, optVidHeight,
+        optVidDepth, optVFlags,
+        optVidAspect, optVidSetup;
 
     int optResFlags;
     char *optDataPath, *optPackFilename;
@@ -313,6 +324,9 @@
 int    engineGetTick(DMEngineData *eng);
 float  engineGetTimeDT(DMEngineData *eng);
 
+int    engineGetVideoAspect(int width, int height);
+
+
 // Implemented in actual demo code
 int    demoPreInit(DMEngineData *eng);