mirror of
https://github.com/processing/processing4.git
synced 2026-02-26 16:54:33 +01:00
some changes for android compatibility
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
package processing.opengl;
|
||||
|
||||
import processing.core.PApplet;
|
||||
|
||||
import java.nio.Buffer;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
@@ -1882,6 +1883,23 @@ public abstract class PGL {
|
||||
}
|
||||
|
||||
|
||||
// TODO: the next three functions shouldn't be here...
|
||||
|
||||
protected int getFontAscent(Object font) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
protected int getFontDescent(Object font) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
protected int getTextWidth(Object font, char buffer[], int start, int stop) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
|
||||
// Tessellator interface
|
||||
@@ -1912,7 +1930,7 @@ public abstract class PGL {
|
||||
|
||||
protected String tessError(int err) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
@@ -2424,7 +2442,7 @@ public abstract class PGL {
|
||||
public abstract void linkProgram(int program);
|
||||
public abstract void useProgram(int program);
|
||||
public abstract void deleteProgram(int program);
|
||||
public abstract String glGetActiveAttrib (int program, int index, IntBuffer size, IntBuffer type);
|
||||
public abstract String getActiveAttrib(int program, int index, IntBuffer size, IntBuffer type);
|
||||
public abstract int getAttribLocation(int program, String name);
|
||||
public abstract void bindAttribLocation(int program, int index, String name);
|
||||
public abstract int getUniformLocation(int program, String name);
|
||||
|
||||
Reference in New Issue
Block a user