android.renderscript
Class Program.BaseProgramBuilder

java.lang.Object
  extended by android.renderscript.Program.BaseProgramBuilder
Direct Known Subclasses:
ProgramFragment.Builder, ProgramVertex.Builder
Enclosing class:
Program

public static class Program.BaseProgramBuilder
extends Object


Constructor Summary
protected Program.BaseProgramBuilder(RenderScript rs)
           
 
Method Summary
 Program.BaseProgramBuilder addConstant(Type t)
           
 Program.BaseProgramBuilder addTexture(Program.TextureType texType)
           
 int getCurrentConstantIndex()
           
 int getCurrentTextureIndex()
           
protected  void initProgram(Program p)
           
 Program.BaseProgramBuilder setShader(Resources resources, int resourceID)
           
 Program.BaseProgramBuilder setShader(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Program.BaseProgramBuilder

protected Program.BaseProgramBuilder(RenderScript rs)
Method Detail

setShader

public Program.BaseProgramBuilder setShader(String s)

setShader

public Program.BaseProgramBuilder setShader(Resources resources,
                                            int resourceID)

getCurrentConstantIndex

public int getCurrentConstantIndex()

getCurrentTextureIndex

public int getCurrentTextureIndex()

addConstant

public Program.BaseProgramBuilder addConstant(Type t)
                                       throws IllegalStateException
Throws:
IllegalStateException

addTexture

public Program.BaseProgramBuilder addTexture(Program.TextureType texType)
                                      throws IllegalArgumentException
Throws:
IllegalArgumentException

initProgram

protected void initProgram(Program p)


Copyright © 2008-2012. All Rights Reserved.