public int addTexture(int resource_id,String uniformName){
  int texId=mTextureConsts[mTextureArray.size()];
  if (mTextureArray.size() + 1 >= MAX_TEXTURES)   throw new IllegalStateException("Too many textures! Please don't use so many :(");
  Bitmap bmp=BitmapFactory.decodeResource(mContext.getResources(),resource_id);
  return addTexture(texId,bmp,uniformName,true);
}

public int addTexture ( int resource_id , String uniformName ) { int texId = mTextureConsts [ mTextureArray . size ( ) ] ; if ( mTextureArray . size ( ) + 1 >= MAX_TEXTURES ) throw new IllegalStateException ( "Too many textures! Please don't use so many :(" ) ; Bitmap bmp = BitmapFactory . decodeResource ( mContext . getResources ( ) , resource_id ) ; return addTexture ( texId , bmp , uniformName , true ) ; }
creates a new texture with specified resource id and returns the tex id num upon completion
