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

Method check2

src/main/java/trace/graphics/GL.java:28–37  ·  view source on GitHub ↗
(Callable<T> o)

Source from the content-addressed store, hash-verified

26 }
27
28 private static <T> T check2(Callable<T> o) {
29 check(GraphicsContext.getContext() != null);
30 try {
31 return o.call();
32 } catch (Exception e) {
33 RuntimeException ex = new RuntimeException("exception thrown from OpenGL");
34 ex.initCause(ex);
35 throw ex;
36 }
37 }
38
39
40 private static void check(boolean b) {

Callers 15

glAreTexturesResidentMethod · 0.95
glGenListsMethod · 0.95
glGenTexturesMethod · 0.95
glGetBooleanMethod · 0.95
glGetFloatMethod · 0.95
glGetIntegerMethod · 0.95
glGetDoubleMethod · 0.95
glGetErrorMethod · 0.95
glGetLightiMethod · 0.95
glGetLightfMethod · 0.95
glGetMapiMethod · 0.95
glGetMapfMethod · 0.95

Calls 3

checkMethod · 0.95
getContextMethod · 0.95
callMethod · 0.45

Tested by

no test coverage detected