diff options
Diffstat (limited to 'graphics/java/android/renderscript/ProgramVertexFixedFunction.java')
| -rw-r--r-- | graphics/java/android/renderscript/ProgramVertexFixedFunction.java | 47 |
1 files changed, 34 insertions, 13 deletions
diff --git a/graphics/java/android/renderscript/ProgramVertexFixedFunction.java b/graphics/java/android/renderscript/ProgramVertexFixedFunction.java index 97444db610f2..88cade4db64e 100644 --- a/graphics/java/android/renderscript/ProgramVertexFixedFunction.java +++ b/graphics/java/android/renderscript/ProgramVertexFixedFunction.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008 The Android Open Source Project + * Copyright (C) 2008-2012 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. @@ -21,7 +21,8 @@ import android.graphics.Matrix; import android.util.Log; -/** @deprecated renderscript is deprecated in J +/** + * @deprecated in API 16 * ProgramVertexFixedFunction is a helper class that provides a * simple way to create a fixed function emulation vertex shader * without writing any GLSL code. @@ -33,7 +34,8 @@ public class ProgramVertexFixedFunction extends ProgramVertex { super(id, rs); } - /** @deprecated renderscript is deprecated in J + /** + * @deprecated in API 16 * Binds the constant buffer containing fixed function emulation * matrices * @@ -45,10 +47,16 @@ public class ProgramVertexFixedFunction extends ProgramVertex { } static class InternalBuilder extends BaseProgramBuilder { + /** + * @deprecated in API 16 + */ public InternalBuilder(RenderScript rs) { super(rs); } + /** + * @deprecated in API 16 + */ public InternalBuilder addInput(Element e) throws IllegalStateException { // Should check for consistant and non-conflicting names... if(mInputCount >= MAX_INPUT) { @@ -61,7 +69,8 @@ public class ProgramVertexFixedFunction extends ProgramVertex { return this; } - /** @deprecated renderscript is deprecated in J + /** + * @deprecated in API 16 * Creates ProgramVertexFixedFunction from the current state of * the builder * @@ -98,12 +107,16 @@ public class ProgramVertexFixedFunction extends ProgramVertex { } } + /** + * @deprecated in API 16 + */ public static class Builder { boolean mTextureMatrixEnable; String mShader; RenderScript mRS; - /** @deprecated renderscript is deprecated in J + /** + * @deprecated in API 16 * Creates a builder for fixed function vertex program * * @param rs Context to which the program will belong. @@ -112,7 +125,8 @@ public class ProgramVertexFixedFunction extends ProgramVertex { mRS = rs; } - /** @deprecated renderscript is deprecated in J + /** + * @deprecated in API 16 * Specifies whether texture matrix calculations are to be added * to the shader * @@ -152,7 +166,8 @@ public class ProgramVertexFixedFunction extends ProgramVertex { mShader += "}\n"; } - /** @deprecated renderscript is deprecated in J + /** + * @deprecated in API 16 * Creates ProgramVertexFixedFunction from the current state of * the builder * @@ -176,7 +191,8 @@ public class ProgramVertexFixedFunction extends ProgramVertex { } } - /** @deprecated renderscript is deprecated in J + /** + * @deprecated in API 16 * Helper class to store modelview, projection and texture * matrices for ProgramVertexFixedFunction * @@ -196,7 +212,8 @@ public class ProgramVertexFixedFunction extends ProgramVertex { } private FieldPacker mIOBuffer; - /** @deprecated renderscript is deprecated in J + /** + * @deprecated in API 16 * Creates a buffer to store fixed function emulation matrices * * @param rs Context to which the allocation will belong. @@ -215,7 +232,8 @@ public class ProgramVertexFixedFunction extends ProgramVertex { setTexture(new Matrix4f()); } - /** @deprecated renderscript is deprecated in J + /** + * @deprecated in API 16 * Forces deallocation of memory backing the contant matrices. * Normally, this is unnecessary and will be garbage collected * @@ -233,7 +251,8 @@ public class ProgramVertexFixedFunction extends ProgramVertex { mAlloc.setFromFieldPacker(0, mIOBuffer); } - /** @deprecated renderscript is deprecated in J + /** + * @deprecated in API 16 * Sets the modelview matrix in the fixed function matrix buffer * * @param m modelview matrix @@ -243,7 +262,8 @@ public class ProgramVertexFixedFunction extends ProgramVertex { addToBuffer(MODELVIEW_OFFSET*4, m); } - /** @deprecated renderscript is deprecated in J + /** + * @deprecated in API 16 * Sets the projection matrix in the fixed function matrix buffer * * @param m projection matrix @@ -253,7 +273,8 @@ public class ProgramVertexFixedFunction extends ProgramVertex { addToBuffer(PROJECTION_OFFSET*4, m); } - /** @deprecated renderscript is deprecated in J + /** + * @deprecated in API 16 * Sets the texture matrix in the fixed function matrix buffer. * Texture matrix must be enabled in the * ProgramVertexFixedFunction builder for the shader to utilize |
