blob: f50504dad77c68782a6853baf5446dc9ce683f77 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/***************************************************************************
draw.h - description
-------------------
begin : Sun Mar 08 2009
copyright : (C) 1999-2009 by Pete Bernert
web : www.pbernert.com
***************************************************************************/
/***************************************************************************
* *
* 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 2 of the License, or *
* (at your option) any later version. See also the license.txt file for *
* additional informations. *
* *
***************************************************************************/
#ifndef _GL_DRAW_H_
#define _GL_DRAW_H_
// internally used defines
#define GPUCOMMAND(x) ((x>>24) & 0xff)
#define RED(x) (x & 0xff)
#define BLUE(x) ((x>>16) & 0xff)
#define GREEN(x) ((x>>8) & 0xff)
#define COLOR(x) (x & 0xffffff)
// prototypes
#ifdef _WINDOWS
BOOL bSetupPixelFormat(HDC hDC);
#endif
int GLinitialize();
void GLcleanup();
BOOL offset2(unsigned int* addr);
BOOL offset3(unsigned int* addr);
BOOL offset4(unsigned int* addr);
BOOL offsetline(unsigned int* addr);
void offsetST(unsigned int* addr);
void offsetBlk(unsigned int* addr);
void offsetScreenUpload(int Position);
void assignTexture3(void);
void assignTexture4(void);
void assignTextureSprite(void);
void assignTextureVRAMWrite(void);
void SetOGLDisplaySettings (BOOL DisplaySet);
void ReadConfig(void);
void WriteConfig(void);
void SetExtGLFuncs(void);
void CreateScanLines(void);
///////////////////////////////////////////////////////////////////////
#endif // _GL_DRAW_H_
|