Example #1
0
 // --Draw Font Texture--//
 // D: draw the entire font texture (NOTE: for testing purposes only)
 // A: width, height - the width and height of the area to draw to. this is used
 //    to draw the texture to the top-left corner.
 public void drawTexture(int width, int height) {
   batch.beginBatch(textureId); // Begin Batch (Bind Texture)
   batch.drawSprite(
       textureSize / 2, height - (textureSize / 2), textureSize, textureSize, textureRgn); // Draw
   batch.endBatch(); // End Batch
 }
Example #2
0
 public void begin(float red, float green, float blue, float alpha) {
   gl.glColor4f(red, green, blue, alpha); // Set Color+Alpha
   gl.glBindTexture(GL10.GL_TEXTURE_2D, textureId); // Bind the Texture
   batch.beginBatch(); // Begin Batch
 }