Added getCurrentTexture() to PFontTexture

This commit is contained in:
codeanticode
2011-12-09 00:40:18 +00:00
parent 9387c262e1
commit 9781dbefb2
@@ -176,7 +176,7 @@ class PFontTexture implements PConstants {
lastTex = currentTex;
// Make sure that the current texture is bound.
tex.bind();
//tex.bind();
return resize;
}
@@ -196,12 +196,17 @@ class PFontTexture implements PConstants {
public PImage getTexture(int idx) {
if (0 <= idx && idx < images.length) {
return images[idx];
return images[idx];
}
return null;
}
public PImage getCurrentTexture() {
return getTexture(currentTex);
}
// Add all the current glyphs to opengl texture.
public void addAllGlyphsToTexture() {
// loop over current glyphs.