summaryrefslogtreecommitdiffstats
path: root/src/com/android/magicsmoke/ScriptC_MagicSmoke.java
blob: 7a6cd54a25c5e8705f48aa565063f7d06a34a368 (plain)
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203

package com.android.magicsmoke;

import android.content.res.Resources;
import android.renderscript.*;
import android.util.Log;

public class ScriptC_MagicSmoke
    extends android.renderscript.ScriptC
{

    public ScriptC_MagicSmoke(RenderScript rs, Resources resources, int id, boolean isRoot) {
        super(rs, resources, id, isRoot);
    }

    private float mField_gXOffset;
    public void set_gXOffset(float v) {
        mField_gXOffset = v;
        setVar(0, v);
    }
    private float mField_gTilt;
    public void set_gTilt(float v) {
        mField_gTilt = v;
        setVar(1, v);
    }
    private int   mField_gPreset;
    public void set_gPreset(int v) {
        mField_gPreset = v;
        setVar(2, v);
    }
    private int   mField_gTextureMask;
    public void set_gTextureMask(int v) {
        mField_gTextureMask = v;
        setVar(3, v);
    }
    private int   mField_gRotate;
    public void set_gRotate(int v) {
        mField_gRotate = v;
        setVar(4, v);
    }
    private int   mField_gTextureSwap;
    public void set_gTextureSwap(int v) {
        mField_gTextureSwap = v;
        setVar(5, v);
    }
    private int   mField_gProcessTextureMode;
    public void set_gProcessTextureMode(int v) {
        mField_gProcessTextureMode = v;
        setVar(6, v);
    }
    private int   mField_gBackCol;
    public void set_gBackCol(int v) {
        mField_gBackCol = v;
        setVar(7, v);
    }
    private int   mField_gLowCol;
    public void set_gLowCol(int v) {
        mField_gLowCol = v;
        setVar(8, v);
    }
    private int   mField_gHighCol;
    public void set_gHighCol(int v) {
        mField_gHighCol = v;
        setVar(9, v);
    }
    private float mField_gAlphaMul;
    public void set_gAlphaMul(float v) {
        mField_gAlphaMul = v;
        setVar(10, v);
    }
    private int   mField_gPreMul;
    public void set_gPreMul(int v) {
        mField_gPreMul = v;
        setVar(11, v);
    }
    private int   mField_gBlendFunc;
    public void set_gBlendFunc(int v) {
        mField_gBlendFunc = v;
        setVar(12, v);
    }

    private ProgramVertex mField_gPVBackground;
    public void set_gPVBackground(ProgramVertex v) {
        mField_gPVBackground = v;
        setVar(13, v.getID());
    }
    private ProgramFragment mField_gPFBackground;
    public void set_gPFBackground(ProgramFragment v) {
        mField_gPFBackground = v;
        setVar(14, v.getID());
    }
    private ProgramStore mField_gPFSBackgroundOne;
    public void set_gPFSBackgroundOne(ProgramStore v) {
        mField_gPFSBackgroundOne = v;
        setVar(15, v.getID());
    }
    private ProgramStore mField_gPFSBackgroundSrc;
    public void set_gPFSBackgroundSrc(ProgramStore v) {
        mField_gPFSBackgroundSrc = v;
        setVar(16, v.getID());
    }

    private Allocation mField_gTnoise1;
    public void set_gTnoise1(Allocation v) {
        mField_gTnoise1 = v;
        setVar(17, v.getID());
    }
    private Allocation mField_gTnoise2;
    public void set_gTnoise2(Allocation v) {
        mField_gTnoise2 = v;
        setVar(18, v.getID());
    }
    private Allocation mField_gTnoise3;
    public void set_gTnoise3(Allocation v) {
        mField_gTnoise3 = v;
        setVar(19, v.getID());
    }
    private Allocation mField_gTnoise4;
    public void set_gTnoise4(Allocation v) {
        mField_gTnoise4 = v;
        setVar(20, v.getID());
    }
    private Allocation mField_gTnoise5;
    public void set_gTnoise5(Allocation v) {
        mField_gTnoise5 = v;
        setVar(21, v.getID());
    }

    // Pointers
    public void bind_gNoisesrc1(Allocation v) {
        if (v == null) {
            bindAllocation(null, 22);
        } else {
            bindAllocation(v, 22);
        }
    }
    public void bind_gNoisesrc2(Allocation v) {
        if (v == null) {
            bindAllocation(null, 23);
        } else {
            bindAllocation(v, 23);
        }
    }
    public void bind_gNoisesrc3(Allocation v) {
        if (v == null) {
            bindAllocation(null, 24);
        } else {
            bindAllocation(v, 24);
        }
    }
    public void bind_gNoisesrc4(Allocation v) {
        if (v == null) {
            bindAllocation(null, 25);
        } else {
            bindAllocation(v, 25);
        }
    }
    public void bind_gNoisesrc5(Allocation v) {
        if (v == null) {
            bindAllocation(null, 26);
        } else {
            bindAllocation(v, 26);
        }
    }

    public void bind_gNoisedst1(Allocation v) {
        if (v == null) {
            bindAllocation(null, 27);
        } else {
            bindAllocation(v, 27);
        }
    }
    public void bind_gNoisedst2(Allocation v) {
        if (v == null) {
            bindAllocation(null, 28);
        } else {
            bindAllocation(v, 28);
        }
    }
    public void bind_gNoisedst3(Allocation v) {
        if (v == null) {
            bindAllocation(null, 29);
        } else {
            bindAllocation(v, 29);
        }
    }
    public void bind_gNoisedst4(Allocation v) {
        if (v == null) {
            bindAllocation(null, 30);
        } else {
            bindAllocation(v, 30);
        }
    }
    public void bind_gNoisedst5(Allocation v) {
        if (v == null) {
            bindAllocation(null, 31);
        } else {
            bindAllocation(v, 31);
        }
    }

}