OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
tr_types_new.h
1/*
2===========================================================================
3Copyright (C) 2023 the OpenMoHAA team
4
5This file is part of OpenMoHAA source code.
6
7OpenMoHAA source code is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 2 of the License,
10or (at your option) any later version.
11
12OpenMoHAA source code is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with OpenMoHAA source code; if not, write to the Free Software
19Foundation, 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
34typedef struct
35{
36 float pos[2];
37 float size[2];
39
40typedef 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
51typedef struct {
52 unsigned short cp;
53 unsigned char index;
54 unsigned char loc;
56
57typedef 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
66typedef 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
Definition tr_types_new.h:51
Definition tr_types_new.h:57
Definition tr_types_new.h:41
Definition tr_types_new.h:35