diff options
author | Jason Sams <rjsams@android.com> | 2010-06-21 17:42:41 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2010-06-21 17:42:41 -0700 |
commit | f110d4b787b91dabe968a812e76e5c1f8d953487 (patch) | |
tree | 65d71a0acb1441510240bec336535898a27d59e7 /libs/rs/java/ModelViewer/src/com/android/modelviewer/ScriptC_Modelviewer.java | |
parent | 3ac8da87bba83de254e612ff8387db23e6434119 (diff) | |
download | frameworks_base-f110d4b787b91dabe968a812e76e5c1f8d953487.zip frameworks_base-f110d4b787b91dabe968a812e76e5c1f8d953487.tar.gz frameworks_base-f110d4b787b91dabe968a812e76e5c1f8d953487.tar.bz2 |
Move ImageProcessing and ModelViewer to reflected files.
Implement boolean support.
Change-Id: Iac2dc28067ac430b3e413fc651dfaa0b96214e2e
Diffstat (limited to 'libs/rs/java/ModelViewer/src/com/android/modelviewer/ScriptC_Modelviewer.java')
-rw-r--r-- | libs/rs/java/ModelViewer/src/com/android/modelviewer/ScriptC_Modelviewer.java | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/libs/rs/java/ModelViewer/src/com/android/modelviewer/ScriptC_Modelviewer.java b/libs/rs/java/ModelViewer/src/com/android/modelviewer/ScriptC_Modelviewer.java new file mode 100644 index 0000000..7a965b8 --- /dev/null +++ b/libs/rs/java/ModelViewer/src/com/android/modelviewer/ScriptC_Modelviewer.java @@ -0,0 +1,96 @@ +/* + * Copyright (C) 2010 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.modelviewer; + +import android.renderscript.*; +import android.content.res.Resources; +import android.util.Log; + +public class ScriptC_Modelviewer extends ScriptC { + // Constructor + public ScriptC_Modelviewer(RenderScript rs, Resources resources, int id, boolean isRoot) { + super(rs, resources, id, isRoot); + } + + private final static int mExportVarIdx_gPVBackground = 0; + private ProgramVertex mExportVar_gPVBackground; + public void set_gPVBackground(ProgramVertex v) { + mExportVar_gPVBackground = v; + setVar(mExportVarIdx_gPVBackground, (v == null) ? 0 : v.getID()); + } + + public ProgramVertex get_gPVBackground() { + return mExportVar_gPVBackground; + } + + private final static int mExportVarIdx_gPFBackground = 1; + private ProgramFragment mExportVar_gPFBackground; + public void set_gPFBackground(ProgramFragment v) { + mExportVar_gPFBackground = v; + setVar(mExportVarIdx_gPFBackground, (v == null) ? 0 : v.getID()); + } + + public ProgramFragment get_gPFBackground() { + return mExportVar_gPFBackground; + } + + private final static int mExportVarIdx_gTGrid = 2; + private Allocation mExportVar_gTGrid; + public void set_gTGrid(Allocation v) { + mExportVar_gTGrid = v; + setVar(mExportVarIdx_gTGrid, (v == null) ? 0 : v.getID()); + } + + public Allocation get_gTGrid() { + return mExportVar_gTGrid; + } + + private final static int mExportVarIdx_gTestMesh = 3; + private SimpleMesh mExportVar_gTestMesh; + public void set_gTestMesh(SimpleMesh v) { + mExportVar_gTestMesh = v; + setVar(mExportVarIdx_gTestMesh, (v == null) ? 0 : v.getID()); + } + + public SimpleMesh get_gTestMesh() { + return mExportVar_gTestMesh; + } + + private final static int mExportVarIdx_gPFSBackground = 4; + private ProgramStore mExportVar_gPFSBackground; + public void set_gPFSBackground(ProgramStore v) { + mExportVar_gPFSBackground = v; + setVar(mExportVarIdx_gPFSBackground, (v == null) ? 0 : v.getID()); + } + + public ProgramStore get_gPFSBackground() { + return mExportVar_gPFSBackground; + } + + private final static int mExportVarIdx_gRotate = 5; + private float mExportVar_gRotate; + public void set_gRotate(float v) { + mExportVar_gRotate = v; + setVar(mExportVarIdx_gRotate, v); + } + + public float get_gRotate() { + return mExportVar_gRotate; + } + +} + |