OpenMoHAA
0.82.0
Loading...
Searching...
No Matches
tr_types_new.h
1
/*
2
===========================================================================
3
Copyright (C) 2023 the OpenMoHAA team
4
5
This file is part of OpenMoHAA source code.
6
7
OpenMoHAA source code is free software; you can redistribute it
8
and/or modify it under the terms of the GNU General Public License as
9
published by the Free Software Foundation; either version 2 of the License,
10
or (at your option) any later version.
11
12
OpenMoHAA source code is distributed in the hope that it will be
13
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with OpenMoHAA source code; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
===========================================================================
21
*/
22
23
#include "../../tiki/tiki_shared.h"
24
25
#define MAX_ENTITIES 1023
// can't be increased without changing drawsurf bit packing
26
#define MAX_POINTS 32
27
#define MAX_SPRITES 2048
28
29
#define MAX_MARK_FRAGMENTS 128
30
#define MAX_MARK_POLYVERTS 384
31
32
#define RDF_FULLBRIGHT 2
// fullbright intensity
33
34
typedef
struct
35
{
36
float
pos[2];
37
float
size[2];
38
}
letterloc_t
;
39
40
typedef
struct
fontheader_sgl_s
41
{
42
int
indirection[256];
43
letterloc_t
locations[256];
44
char
name[64];
45
float
height;
46
float
aspectRatio;
47
void
*shader;
48
int
trhandle;
// the last renderer handle this font used
49
} fontheader_sgl_t;
50
51
typedef
struct
{
52
unsigned
short
cp;
53
unsigned
char
index;
54
unsigned
char
loc;
55
}
fontchartable_t
;
56
57
typedef
struct
fontheader_s
{
58
int
numPages;
59
int
charTableLength;
60
fontchartable_t
* charTable;
61
short
codePage;
62
fontheader_sgl_t* sgl[32];
63
char
name[64];
64
} fontheader_t;
65
66
typedef
enum
{
67
lensflare = (1 << 0),
68
viewlensflare = (1 << 1),
69
additive = (1 << 2)
70
} dlighttype_t;
71
72
#if !defined _WIN32
73
74
#define _3DFX_DRIVER_NAME "libMesaVoodooGL.so.3.1"
75
#define OPENGL_DRIVER_NAME "libGL.so"
76
77
#else
78
79
#define _3DFX_DRIVER_NAME "3dfxvgl"
80
#define OPENGL_DRIVER_NAME "opengl32"
81
82
#endif
// !defined _WIN32
fontchartable_t
Definition
tr_types_new.h:51
fontheader_s
Definition
tr_types_new.h:57
fontheader_sgl_s
Definition
tr_types_new.h:41
letterloc_t
Definition
tr_types_new.h:35
code
renderercommon
new
tr_types_new.h
Generated by
1.13.2