/******************************************************************************
 * ATI 3D RAGE SDK sample code                                                *
 *                                                                            *
 * glob.h - Header file for global variables in GLOB.CPP.                     *
 *                                                                            *
 * Copyright (c) 1995-1996 ATI Technologies Inc.  All rights reserved.        *
 ******************************************************************************/

#include <windows.h>
#include <ddraw.h>
#include "ati3dcif.h"


extern LPDIRECTDRAW             glpDD;          // DirectDraw object
extern LPDIRECTDRAWSURFACE      glpDDSPrimary;  // DirectDraw primary surface
extern LPDIRECTDRAWSURFACE      glpDDSBack;     // DirectDraw back surface


//DAG - add a low resolution surface that will be blt'ed to the primary
extern LPDIRECTDRAWSURFACE		glpDDSLowRes;      // DirectDraw back surface

extern LPDIRECTDRAWSURFACE      glpDDSScaled;      // DirectDraw plain surface
extern LPDIRECTDRAWSURFACE      glpDDSZBuffer;  // DirectDraw z-buffer surface
extern C3D_HRC                  ghRC;           // ATI3DCIF rendering context
extern RECT                     grctBkgd;       // Background bitmap
extern BOOL                     gbCIFInit;      // ATI3DCIF init state

extern char                     gszErrMsg[64];  // Global error message text

extern int SCREEN_WIDTH;
extern int SCREEN_HEIGHT;
extern int scale;

extern DWORD Memory;
extern LPDIRECTDRAWCLIPPER g_pClip;