From a0c2eb27b408660b02fa248943166d6c7e447908 Mon Sep 17 00:00:00 2001 From: Alex Sakhartchouk Date: Thu, 19 Apr 2012 16:30:58 -0700 Subject: Deprecate Change-Id: Idad2c5ad4f8a30f8cc60d88318f2e1809866d309 --- .../renderscript/ProgramFragmentFixedFunction.java | 34 ++++++++++++++++------ 1 file changed, 25 insertions(+), 9 deletions(-) (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java') diff --git a/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java b/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java index 14f10f17b4d0..19fca5873b51 100644 --- a/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java +++ b/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java @@ -20,7 +20,7 @@ package android.renderscript; import android.util.Log; -/** +/** @deprecated renderscript is deprecated in J *

ProgramFragmentFixedFunction is a helper class that provides * a way to make a simple fragment shader without writing any * GLSL code. This class allows for display of constant color, interpolated @@ -38,7 +38,7 @@ public class ProgramFragmentFixedFunction extends ProgramFragment { super(rs); } - /** + /** @deprecated renderscript is deprecated in J * Creates ProgramFragmentFixedFunction from the current state * of the builder * @@ -76,6 +76,8 @@ public class ProgramFragmentFixedFunction extends ProgramFragment { } public static class Builder { + /** @deprecated renderscript is deprecated in J + */ public static final int MAX_TEXTURE = 2; int mNumTextures; boolean mPointSpriteEnable; @@ -83,14 +85,20 @@ public class ProgramFragmentFixedFunction extends ProgramFragment { String mShader; RenderScript mRS; - /** + /** @deprecated renderscript is deprecated in J * EnvMode describes how textures are combined with the existing * color in the fixed function fragment shader * **/ public enum EnvMode { + /** @deprecated renderscript is deprecated in J + */ REPLACE (1), + /** @deprecated renderscript is deprecated in J + */ MODULATE (2), + /** @deprecated renderscript is deprecated in J + */ DECAL (3); int mID; @@ -99,15 +107,23 @@ public class ProgramFragmentFixedFunction extends ProgramFragment { } } - /** + /** @deprecated renderscript is deprecated in J * Format describes the pixel format of textures in the fixed * function fragment shader and how they are sampled * **/ public enum Format { + /** @deprecated renderscript is deprecated in J + */ ALPHA (1), + /** @deprecated renderscript is deprecated in J + */ LUMINANCE_ALPHA (2), + /** @deprecated renderscript is deprecated in J + */ RGB (3), + /** @deprecated renderscript is deprecated in J + */ RGBA (4); int mID; @@ -190,7 +206,7 @@ public class ProgramFragmentFixedFunction extends ProgramFragment { mShader += "}\n"; } - /** + /** @deprecated renderscript is deprecated in J * Creates a builder for fixed function fragment program * * @param rs Context to which the program will belong. @@ -201,7 +217,7 @@ public class ProgramFragmentFixedFunction extends ProgramFragment { mPointSpriteEnable = false; } - /** + /** @deprecated renderscript is deprecated in J * Adds a texture to be fetched as part of the fixed function * fragment program * @@ -223,7 +239,7 @@ public class ProgramFragmentFixedFunction extends ProgramFragment { return this; } - /** + /** @deprecated renderscript is deprecated in J * Specifies whether the texture coordinate passed from the * vertex program is replaced with an openGL internal point * sprite texture coordinate @@ -234,7 +250,7 @@ public class ProgramFragmentFixedFunction extends ProgramFragment { return this; } - /** + /** @deprecated renderscript is deprecated in J * Specifies whether the varying color passed from the vertex * program or the constant color set on the fragment program is * used in the final color calculation in the fixed function @@ -246,7 +262,7 @@ public class ProgramFragmentFixedFunction extends ProgramFragment { return this; } - /** + /** @deprecated renderscript is deprecated in J * Creates the fixed function fragment program from the current * state of the builder. * -- cgit v1.2.3