]> git.wh0rd.org Git - ICEs.git/blob - 225977/texenvprogram.i.bak
initial import
[ICEs.git] / 225977 / texenvprogram.i.bak
1 struct state_key {
2        struct {
3      int ModeRGB;
4      }
5        unit[8];
6        };
7          struct ureg {
8        int file;
9        int idx;
10        };
11          struct texenv_fragment_program {
12        struct ureg src_previous;
13        };
14          struct ureg emit_texenv(struct texenv_fragment_program *p, int unit) {
15        struct state_key *key;
16        emit_combine(p, key->unit[unit].ModeRGB);
17        }
18          create_new_program() {
19        struct texenv_fragment_program p;
20        int unit;
21        for (;
22        unit;
23        ++unit) p.src_previous = emit_texenv(&p, unit);
24        }