Implement type generation for user uniforms in vertex shader.

This commit is contained in:
Jason Sams
2010-01-12 12:12:28 -08:00
parent 917cd4fcda
commit ea87e96959
8 changed files with 137 additions and 38 deletions

View File

@ -111,12 +111,13 @@ public class Program extends BaseObj {
mOutputs[mOutputCount++] = e;
}
public void addConstant(Type t) throws IllegalStateException {
public int addConstant(Type t) throws IllegalStateException {
// Should check for consistant and non-conflicting names...
if(mConstantCount >= MAX_CONSTANT) {
throw new IllegalArgumentException("Max input count exceeded.");
}
mConstants[mConstantCount++] = t;
mConstants[mConstantCount] = t;
return mConstantCount++;
}
public void setTextureCount(int count) throws IllegalArgumentException {