2007-01-15 12:09:25 -08:00
|
|
|
/*
|
|
|
|
This file is part of Warzone 2100.
|
|
|
|
Copyright (C) 1999-2004 Eidos Interactive
|
2010-07-26 16:36:29 -07:00
|
|
|
Copyright (C) 2005-2010 Warzone 2100 Project
|
2007-01-15 12:09:25 -08:00
|
|
|
|
|
|
|
Warzone 2100 is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Warzone 2100 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. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with Warzone 2100; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
2007-06-28 10:47:08 -07:00
|
|
|
/*
|
|
|
|
* Screen.h
|
|
|
|
*
|
2007-03-28 08:08:57 -07:00
|
|
|
* Interface to the OpenGL double buffered display.
|
2007-06-28 10:47:08 -07:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef _screen_h
|
|
|
|
#define _screen_h
|
|
|
|
|
|
|
|
/* Check the header files have been included from frame.h if they
|
|
|
|
* are used outside of the framework library.
|
|
|
|
*/
|
|
|
|
#if !defined(_frame_h) && !defined(FRAME_LIB_INCLUDE)
|
|
|
|
#error Framework header files MUST be included from Frame.h ONLY.
|
|
|
|
#endif
|
|
|
|
|
2006-05-27 09:37:17 -07:00
|
|
|
#include "lib/framework/types.h"
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2006-08-08 13:58:32 -07:00
|
|
|
/* ------------------------------------------------------------------------------------------- */
|
|
|
|
|
2007-05-01 13:34:54 -07:00
|
|
|
/* Legacy stuff
|
2006-08-08 13:58:32 -07:00
|
|
|
* - only used in the sequence video code we have not yet decided whether to port or to junk */
|
|
|
|
|
|
|
|
/* Set the colour for text */
|
2007-05-01 13:34:54 -07:00
|
|
|
extern void screenSetTextColour(UBYTE red, UBYTE green, UBYTE blue);
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/* backDrop */
|
2007-04-16 12:22:01 -07:00
|
|
|
extern void screen_SetBackDropFromFile(const char* filename);
|
2007-06-28 10:47:08 -07:00
|
|
|
extern void screen_StopBackDrop(void);
|
|
|
|
extern void screen_RestartBackDrop(void);
|
|
|
|
extern BOOL screen_GetBackDrop(void);
|
2010-05-31 09:24:33 -07:00
|
|
|
extern void screen_Upload(const char *newBackDropBmp, BOOL preview);
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/* screendump */
|
2007-05-01 13:34:54 -07:00
|
|
|
extern void screenDumpToDisk(const char* path);
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/* Toggle the display between full screen or windowed */
|
|
|
|
extern void screenToggleMode(void);
|
|
|
|
|
2007-03-28 08:08:57 -07:00
|
|
|
extern int wz_texture_compression;
|
|
|
|
|
2008-03-28 16:28:44 -07:00
|
|
|
extern void screenDoDumpToDiskIfRequired(void);
|
2008-08-03 14:06:39 -07:00
|
|
|
|
2010-05-31 09:24:33 -07:00
|
|
|
void screen_enableMapPreview(char *name, int width, int height, Vector2i *playerpositions);
|
|
|
|
void screen_disableMapPreview(void);
|
|
|
|
BOOL screen_getMapPreview(void);
|
2010-12-06 17:31:39 -08:00
|
|
|
|
2007-06-28 10:47:08 -07:00
|
|
|
#endif
|