Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libmupen64plus/mupen64plus-video-glide64mk2/src/Glide64/GlideExtensions.h
2 views
1
/*
2
* Glide64 - Glide video plugin for Nintendo 64 emulators.
3
* Copyright (c) 2002 Dave2001
4
* Copyright (c) 2003-2009 Sergey 'Gonetz' Lipski
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
*/
20
21
#define GR_BUFFER_TEXTUREBUFFER_EXT 0x6
22
#define GR_BUFFER_TEXTUREAUXBUFFER_EXT 0x7
23
24
typedef FxU32 GrPixelFormat_t;
25
#define GR_PIXFMT_RGB_565 0x03
26
#define GR_PIXFMT_ARGB_1555 0x0004
27
#define GR_PIXFMT_ARGB_8888 0x0005
28
29
typedef FxU32 GrCCUColor_t;
30
typedef FxU32 GrACUColor_t;
31
typedef FxU32 GrTCCUColor_t;
32
typedef FxU32 GrTACUColor_t;
33
#define GR_CMBX_ZERO 0x00
34
#define GR_CMBX_TEXTURE_ALPHA 0x01
35
#define GR_CMBX_ALOCAL 0x02
36
#define GR_CMBX_AOTHER 0x03
37
#define GR_CMBX_B 0x04
38
#define GR_CMBX_CONSTANT_ALPHA 0x05
39
#define GR_CMBX_CONSTANT_COLOR 0x06
40
#define GR_CMBX_DETAIL_FACTOR 0x07
41
#define GR_CMBX_ITALPHA 0x08
42
#define GR_CMBX_ITRGB 0x09
43
#define GR_CMBX_LOCAL_TEXTURE_ALPHA 0x0a
44
#define GR_CMBX_LOCAL_TEXTURE_RGB 0x0b
45
#define GR_CMBX_LOD_FRAC 0x0c
46
#define GR_CMBX_OTHER_TEXTURE_ALPHA 0x0d
47
#define GR_CMBX_OTHER_TEXTURE_RGB 0x0e
48
#define GR_CMBX_TEXTURE_RGB 0x0f
49
#define GR_CMBX_TMU_CALPHA 0x10
50
#define GR_CMBX_TMU_CCOLOR 0x11
51
52
typedef FxU32 GrCombineMode_t;
53
#define GR_FUNC_MODE_ZERO 0x00
54
#define GR_FUNC_MODE_X 0x01
55
#define GR_FUNC_MODE_ONE_MINUS_X 0x02
56
#define GR_FUNC_MODE_NEGATIVE_X 0x03
57
#define GR_FUNC_MODE_X_MINUS_HALF 0x04
58
59
#define GR_TEXFMT_ARGB_8888 0x12
60
61
#define GR_LOD_LOG2_2048 0xb
62
#define GR_LOD_LOG2_1024 0xa
63
#define GR_LOD_LOG2_512 0x9
64
65
#define GR_TEXTURE_UMA_EXT 0x06
66
67