| 6 | import java.nio.IntBuffer; |
| 7 | |
| 8 | public class DummyGL implements QGL { |
| 9 | |
| 10 | private static QGL self = new DummyGL(); |
| 11 | |
| 12 | private DummyGL() { |
| 13 | // singleton |
| 14 | } |
| 15 | |
| 16 | public static QGL getInstance() { |
| 17 | return self; |
| 18 | } |
| 19 | |
| 20 | public void glAlphaFunc(int func, float ref) { |
| 21 | // do nothing |
| 22 | } |
| 23 | |
| 24 | public void glBegin(int mode) { |
| 25 | // do nothing |
| 26 | } |
| 27 | |
| 28 | public void glBindTexture(int target, int texture) { |
| 29 | // do nothing |
| 30 | } |
| 31 | |
| 32 | public void glBlendFunc(int sfactor, int dfactor) { |
| 33 | // do nothing |
| 34 | } |
| 35 | |
| 36 | public void glClear(int mask) { |
| 37 | // do nothing |
| 38 | } |
| 39 | |
| 40 | public void glClearColor(float red, float green, float blue, float alpha) { |
| 41 | // do nothing |
| 42 | } |
| 43 | |
| 44 | public void glColor3f(float red, float green, float blue) { |
| 45 | // do nothing |
| 46 | } |
| 47 | |
| 48 | public void glColor3ub(byte red, byte green, byte blue) { |
| 49 | // do nothing |
| 50 | } |
| 51 | |
| 52 | public void glColor4f(float red, float green, float blue, float alpha) { |
| 53 | // do nothing |
| 54 | } |
| 55 | |
| 56 | public void glColor4ub(byte red, byte green, byte blue, byte alpha) { |
| 57 | // do nothing |
| 58 | } |
| 59 | |
| 60 | public void glColorPointer(int size, boolean unsigned, int stride, |
| 61 | ByteBuffer pointer) { |
| 62 | // do nothing |
| 63 | } |
| 64 | |
| 65 | public void glColorPointer(int size, int stride, FloatBuffer pointer) { |
nothing calls this directly
no outgoing calls
no test coverage detected