mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Added getCurrentTexture() to PFontTexture
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user