mirror of
https://github.com/electronicarts/CnC_Red_Alert.git
synced 2025-12-16 07:31:39 -05:00
Initial commit of Command & Conquer Red Alert source code.
This commit is contained in:
115
WINVQ/INCLUDE/VQM32/VIDEO.H
Normal file
115
WINVQ/INCLUDE/VQM32/VIDEO.H
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
** Command & Conquer Red Alert(tm)
|
||||
** Copyright 2025 Electronic Arts Inc.
|
||||
**
|
||||
** This program 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 3 of the License, or
|
||||
** (at your option) any later version.
|
||||
**
|
||||
** 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. See the
|
||||
** GNU General Public License for more details.
|
||||
**
|
||||
** You should have received a copy of the GNU General Public License
|
||||
** along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef VQMVIDEO_H
|
||||
#define VQMVIDEO_H
|
||||
/****************************************************************************
|
||||
*
|
||||
* C O N F I D E N T I A L -- W E S T W O O D S T U D I O S
|
||||
*
|
||||
*----------------------------------------------------------------------------
|
||||
*
|
||||
* FILE
|
||||
* Video.h (32-Bit protected mode)
|
||||
*
|
||||
* DESCRIPTION
|
||||
* Video manager definitions.
|
||||
*
|
||||
* PROGRAMMER
|
||||
* Denzil E. Long, Jr.
|
||||
*
|
||||
* DATE
|
||||
* Febuary 3, 1995
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#include <vqm32\vesavid.h>
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
* VGA video modes
|
||||
*-------------------------------------------------------------------------*/
|
||||
|
||||
#define TEXT_VIDEO 0x02
|
||||
#define MCGA 0x13
|
||||
#define XMODE_320X200 0x50
|
||||
#define XMODE_320X240 0x51
|
||||
#define XMODE_320X400 0x52
|
||||
#define XMODE_320X480 0x53
|
||||
#define XMODE_360X400 0x54
|
||||
#define XMODE_360X480 0x55
|
||||
|
||||
#define XMODE_MIN 0x50
|
||||
#define XMODE_MAX 0x55
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
* Structure definitions
|
||||
*-------------------------------------------------------------------------*/
|
||||
|
||||
/* DisplayInfo - Information about the current display.
|
||||
*
|
||||
* Mode - Mode identification.
|
||||
* XRes - X resolution of mode.
|
||||
* YRes - Y resolution of mode.
|
||||
* VBIbit - Polarity of vertical blank bit.
|
||||
* Extended - Pointer to mode specific data structure.
|
||||
*/
|
||||
typedef struct _DisplayInfo {
|
||||
long Mode;
|
||||
long XRes;
|
||||
long YRes;
|
||||
long VBIbit;
|
||||
void *Extended;
|
||||
} DisplayInfo;
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
* Function prototypes
|
||||
*-------------------------------------------------------------------------*/
|
||||
|
||||
DisplayInfo *SetVideoMode(long mode);
|
||||
DisplayInfo *GetDisplayInfo(void);
|
||||
long TestVBIBit(void);
|
||||
long GetVBIBit(void);
|
||||
|
||||
void SetupXPaging(void);
|
||||
void FlipXPage(void);
|
||||
unsigned char *GetXHidPage(void);
|
||||
unsigned char *GetXSeenPage(void);
|
||||
void DisplayXPage(long page);
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void __cdecl WaitNoVB(short vbibit);
|
||||
void __cdecl WaitVB(short vbibit);
|
||||
void __cdecl ClearVRAM(void);
|
||||
long __cdecl SetXMode(long mode);
|
||||
void __cdecl ClearXMode(void);
|
||||
void __cdecl ShowXPage(unsigned long StartOffset);
|
||||
void __cdecl Xmode_BufferCopy_320x200(void *buff, void *screen);
|
||||
void __cdecl Xmode_Blit(void *buffer, void *screen, long imgwidth, long imgheight);
|
||||
void __cdecl MCGA_BufferCopy(unsigned char *buffer, unsigned char *dummy);
|
||||
void __cdecl MCGA_Blit(unsigned char *buffer, unsigned char *screen,
|
||||
long imgwidth, long imgheight);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* VQMVIDEO_H */
|
||||
|
||||
Reference in New Issue
Block a user