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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
#ifndef __GXTEV_H__
#define __GXTEV_H__
#ifdef __cplusplus
extern "C" {
#endif
/*---------------------------------------------------------------------------*/
#include "rvl/GXStruct.h"
/*---------------------------------------------------------------------------*/
void GXSetTevOp(GXTevStageID id, GXTevMode mode);
void GXSetTevColorIn(
GXTevStageID stage,
GXTevColorArg a,
GXTevColorArg b,
GXTevColorArg c,
GXTevColorArg d );
void GXSetTevAlphaIn(
GXTevStageID stage,
GXTevAlphaArg a,
GXTevAlphaArg b,
GXTevAlphaArg c,
GXTevAlphaArg d );
void GXSetTevColorOp(
GXTevStageID stage,
GXTevOp op,
GXTevBias bias,
GXTevScale scale,
GXBool clamp,
GXTevRegID out_reg );
void GXSetTevAlphaOp(
GXTevStageID stage,
GXTevOp op,
GXTevBias bias,
GXTevScale scale,
GXBool clamp,
GXTevRegID out_reg );
void GXSetTevColor( GXTevRegID id, GXColor color );
void GXSetTevColorS10( GXTevRegID id, GXColorS10 color );
// Feature available in GX chip revision 1 only
// Revision 2 version is defined, but only prints error msg
void GXSetTevClampMode ( GXTevStageID stage, GXTevClampMode mode );
void GXSetAlphaCompare(
GXCompare comp0,
u8 ref0,
GXAlphaOp op,
GXCompare comp1,
u8 ref1 );
void GXSetTevOrder(
GXTevStageID stage,
GXTexCoordID coord,
GXTexMapID map,
GXChannelID color );
void GXSetZTexture ( GXZTexOp op, GXTexFmt fmt, u32 bias );
void GXSetNumTevStages( u8 nStages );
#if ( GX_REV != 1 )
// Features available in GX chip revision 2 or later only
void GXSetTevKColor( GXTevKColorID id, GXColor color );
void GXSetTevKColorSel( GXTevStageID stage, GXTevKColorSel sel );
void GXSetTevKAlphaSel( GXTevStageID stage, GXTevKAlphaSel sel );
void GXSetTevSwapMode(
GXTevStageID stage,
GXTevSwapSel ras_sel,
GXTevSwapSel tex_sel );
void GXSetTevSwapModeTable(
GXTevSwapSel table,
GXTevColorChan red,
GXTevColorChan green,
GXTevColorChan blue,
GXTevColorChan alpha );
#endif // ( GX_REV != 1 )
/*---------------------------------------------------------------------------*/
#ifdef __cplusplus
}
#endif
#endif // __GXTEV_H__
|