MCPcopy Index your code
hub / github.com/benfry/processing4 / textureIsBound

Method textureIsBound

core/src/processing/opengl/PGL.java:1224–1234  ·  view source on GitHub ↗
(int target, int id)

Source from the content-addressed store, hash-verified

1222
1223
1224 protected boolean textureIsBound(int target, int id) {
1225 if (boundTextures == null) return false;
1226
1227 if (target == TEXTURE_2D) {
1228 return boundTextures[activeTexUnit][0] == id;
1229 } else if (target == TEXTURE_RECTANGLE) {
1230 return boundTextures[activeTexUnit][1] == id;
1231 } else {
1232 return false;
1233 }
1234 }
1235
1236
1237 protected void initTexture(int target, int format, int width, int height) {

Callers 2

unbindFrontTextureMethod · 0.95
unbindMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected