Alex Sakhartchouk | 9b949fc | 2010-06-24 17:15:34 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2010 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package com.android.modelviewer; |
| 18 | |
| 19 | import android.renderscript.*; |
| 20 | import android.content.res.Resources; |
| 21 | import android.util.Log; |
| 22 | |
| 23 | public class ScriptC_Modelviewer extends ScriptC { |
| 24 | // Constructor |
| 25 | public ScriptC_Modelviewer(RenderScript rs, Resources resources, int id, boolean isRoot) { |
| 26 | super(rs, resources, id, isRoot); |
| 27 | } |
| 28 | |
| 29 | private final static int mExportVarIdx_gPVBackground = 0; |
| 30 | private ProgramVertex mExportVar_gPVBackground; |
| 31 | public void set_gPVBackground(ProgramVertex v) { |
| 32 | mExportVar_gPVBackground = v; |
| 33 | setVar(mExportVarIdx_gPVBackground, (v == null) ? 0 : v.getID()); |
| 34 | } |
| 35 | |
| 36 | public ProgramVertex get_gPVBackground() { |
| 37 | return mExportVar_gPVBackground; |
| 38 | } |
| 39 | |
| 40 | private final static int mExportVarIdx_gPFBackground = 1; |
| 41 | private ProgramFragment mExportVar_gPFBackground; |
| 42 | public void set_gPFBackground(ProgramFragment v) { |
| 43 | mExportVar_gPFBackground = v; |
| 44 | setVar(mExportVarIdx_gPFBackground, (v == null) ? 0 : v.getID()); |
| 45 | } |
| 46 | |
| 47 | public ProgramFragment get_gPFBackground() { |
| 48 | return mExportVar_gPFBackground; |
| 49 | } |
| 50 | |
| 51 | private final static int mExportVarIdx_gTGrid = 2; |
| 52 | private Allocation mExportVar_gTGrid; |
| 53 | public void set_gTGrid(Allocation v) { |
| 54 | mExportVar_gTGrid = v; |
| 55 | setVar(mExportVarIdx_gTGrid, (v == null) ? 0 : v.getID()); |
| 56 | } |
| 57 | |
| 58 | public Allocation get_gTGrid() { |
| 59 | return mExportVar_gTGrid; |
| 60 | } |
| 61 | |
| 62 | private final static int mExportVarIdx_gTestMesh = 3; |
| 63 | private SimpleMesh mExportVar_gTestMesh; |
| 64 | public void set_gTestMesh(SimpleMesh v) { |
| 65 | mExportVar_gTestMesh = v; |
| 66 | setVar(mExportVarIdx_gTestMesh, (v == null) ? 0 : v.getID()); |
| 67 | } |
| 68 | |
| 69 | public SimpleMesh get_gTestMesh() { |
| 70 | return mExportVar_gTestMesh; |
| 71 | } |
| 72 | |
| 73 | private final static int mExportVarIdx_gPFSBackground = 4; |
| 74 | private ProgramStore mExportVar_gPFSBackground; |
| 75 | public void set_gPFSBackground(ProgramStore v) { |
| 76 | mExportVar_gPFSBackground = v; |
| 77 | setVar(mExportVarIdx_gPFSBackground, (v == null) ? 0 : v.getID()); |
| 78 | } |
| 79 | |
| 80 | public ProgramStore get_gPFSBackground() { |
| 81 | return mExportVar_gPFSBackground; |
| 82 | } |
| 83 | |
| 84 | private final static int mExportVarIdx_gRotate = 5; |
| 85 | private float mExportVar_gRotate; |
| 86 | public void set_gRotate(float v) { |
| 87 | mExportVar_gRotate = v; |
| 88 | setVar(mExportVarIdx_gRotate, v); |
| 89 | } |
| 90 | |
| 91 | public float get_gRotate() { |
| 92 | return mExportVar_gRotate; |
| 93 | } |
| 94 | |
| 95 | private final static int mExportVarIdx_gItalic = 6; |
| 96 | private Font mExportVar_gItalic; |
| 97 | public void set_gItalic(Font v) { |
| 98 | mExportVar_gItalic = v; |
| 99 | setVar(mExportVarIdx_gItalic, v); |
| 100 | } |
| 101 | |
| 102 | public Font get_gItalic() { |
| 103 | return mExportVar_gItalic; |
| 104 | } |
| 105 | |
| 106 | private final static int mExportVarIdx_gTextAlloc = 7; |
| 107 | private Allocation mExportVar_gTextAlloc; |
| 108 | public void set_gTextAlloc(Allocation v) { |
| 109 | mExportVar_gTextAlloc = v; |
| 110 | setVar(mExportVarIdx_gTextAlloc, (v == null) ? 0 : v.getID()); |
| 111 | } |
| 112 | |
| 113 | public Allocation get_gTextAlloc() { |
| 114 | return mExportVar_gTextAlloc; |
| 115 | } |
| 116 | |
| 117 | } |
| 118 | |