This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
*/
// vid.h -- video driver defs
-typedef struct vrect_s
-{
- int x,y,width,height;
- struct vrect_s *pnext;
-} vrect_t;
+#ifndef VID_H
+#define VID_H
typedef struct
{
- int width;
- int height;
- int recalc_refdef; // if true, recalc vid-based stuff
+ // these are set with VID_GetWindowSize and can change from frame to frame
+ int realx;
+ int realy;
+ int realwidth;
+ int realheight;
+
int conwidth;
int conheight;
} viddef_t;
void GL_Init (void);
-void VID_CheckMultitexture(void);
-void VID_CheckCVA(void);
+void VID_CheckExtensions(void);
void VID_Init (void);
// Called at startup
// sets hardware gamma correction, returns false if the device does not support gamma control
int VID_SetGamma (float prescale, float gamma, float scale, float base);
+
+void VID_GetWindowSize (int *x, int *y, int *width, int *height);
+
+void VID_Finish (void);
+
+#endif
+