MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / perform0

Method perform0

src/main/java/field/graphics/Texture.java:387–402  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

385 glBindTexture(specification.target, s.name);
386
387 Runnable m = postDrawQueue.getAndSet(null);
388 if (m != null) m.run();
389
390 boundCount++;
391
392 return true;
393 }
394
395 public int getOpenGLNameInCurrentContext() {
396 State s = GraphicsContext.get(this);
397 if (s == null) throw new IllegalArgumentException("No state in this context");
398
399 return s.name;
400 }
401
402
403 public int getOpenGLNameInContext(GraphicsContext context) {
404 State s = context.lookup(this);
405 if (s == null) throw new IllegalArgumentException("No state in this context");

Callers

nothing calls this directly

Calls 4

getMethod · 0.95
logMethod · 0.95
glBindTextureMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected