Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/RenderSystems/GL/src/nvparse/rc1.0_final.h @ 1

Last change on this file since 1 was 1, checked in by landauf, 17 years ago
File size: 1.3 KB
RevLine 
[1]1#ifndef _RC10_FINAL_H
2#define _RC10_FINAL_H
3
4#include "rc1.0_register.h"
5
6class FinalAlphaFunctionStruct {
7public:
8        void Init(MappedRegisterStruct _g) { g = _g; }
9        void ZeroOut();
10        MappedRegisterStruct g;
11};
12
13class FinalRgbFunctionStruct {
14public:
15        void Init(MappedRegisterStruct _a, MappedRegisterStruct _b, MappedRegisterStruct _c, MappedRegisterStruct _d)
16        { a = _a; b = _b; c = _c; d = _d; }
17        void ZeroOut();
18        MappedRegisterStruct a;
19        MappedRegisterStruct b;
20        MappedRegisterStruct c;
21        MappedRegisterStruct d;
22};
23
24class FinalProductStruct {
25public:
26        void Init(MappedRegisterStruct _e, MappedRegisterStruct _f) { e = _e; f = _f; }
27        void ZeroOut();
28        MappedRegisterStruct e;
29        MappedRegisterStruct f;
30};
31
32class FinalCombinerStruct {
33public:
34        void Init(FinalRgbFunctionStruct _rgb, FinalAlphaFunctionStruct _alpha, int _clamp, FinalProductStruct _product)
35        { rgb = _rgb; alpha = _alpha; clamp = _clamp; product = _product; hasProduct = true;}
36        void Init(FinalRgbFunctionStruct _rgb, FinalAlphaFunctionStruct _alpha, int _clamp)
37        { rgb = _rgb; alpha = _alpha; clamp = _clamp; hasProduct = false; product.ZeroOut();}
38
39        int hasProduct;
40        FinalProductStruct product;
41        int clamp;
42        FinalRgbFunctionStruct rgb;
43        FinalAlphaFunctionStruct alpha;
44        void Validate();
45        void Invoke();
46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.