MCPcopy Index your code
hub / github.com/processing/processing / textureIsBound

Method textureIsBound

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

Source from the content-addressed store, hash-verified

1179
1180
1181 protected boolean textureIsBound(int target, int id) {
1182 if (boundTextures == null) return false;
1183
1184 if (target == TEXTURE_2D) {
1185 return boundTextures[activeTexUnit][0] == id;
1186 } else if (target == TEXTURE_RECTANGLE) {
1187 return boundTextures[activeTexUnit][1] == id;
1188 } else {
1189 return false;
1190 }
1191 }
1192
1193
1194 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