PS2GL
OpenGL*-like API for the PS2
Loading...
Searching...
No Matches
displaycontext.h
1/* Copyright (C) 2000,2001,2002 Sony Computer Entertainment America
2
3 This file is subject to the terms and conditions of the GNU Lesser
4 General Public License Version 2.1. See the file "COPYING" in the
5 main directory of this archive for more details. */
6
7#ifndef displaycontext_h
8#define displaycontext_h
9
10#include "ps2gl/glcontext.h"
11
12namespace GS {
13class CMemArea;
14class CDisplayEnv;
15}
16
18 CGLContext& GLContext;
19
20 // frames, interlacing, etc.
21 GS::CMemArea *Frame0Mem, *Frame1Mem;
22 GS::CMemArea *CurFrameMem, *LastFrameMem;
23 GS::CDisplayEnv* DisplayEnv;
24
25 bool DisplayIsDblBuffered;
26 bool DisplayIsInterlaced;
27
28public:
31
32 GS::CDisplayEnv& GetDisplayEnv() { return *DisplayEnv; }
33 void SetDisplayBuffers(bool interlaced, GS::CMemArea* frame0Mem, GS::CMemArea* frame1Mem);
34 void SwapBuffers();
35};
36
37#endif // displaycontext_h