TextureParam.java revision a7a211b8a68a7d3f5ff4409aa286db07f96c0550
1/* 2 * Copyright (C) 2011 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 17package com.android.scenegraph; 18 19import java.lang.Math; 20import java.util.ArrayList; 21 22import android.graphics.Camera; 23import android.renderscript.Float4; 24import android.renderscript.Matrix4f; 25import android.renderscript.ProgramFragment; 26import android.renderscript.ProgramStore; 27import android.renderscript.ProgramVertex; 28import android.renderscript.Element; 29import android.util.Log; 30 31/** 32 * @hide 33 */ 34public class TextureParam extends ShaderParam { 35 36 Texture2D mTexture; 37 38 public TextureParam(String name) { 39 super(name); 40 } 41 42 public void setTexture(Texture2D t) { 43 mTexture = t; 44 } 45 46 public Texture2D getTexture() { 47 return mTexture; 48 } 49} 50 51 52 53 54 55