Esempio n. 1
0
 public static void setGraphics(Graphics g) {
   try {
     oldG = Reflection.getPrivateValue(Graphics.class, "currentGraphics", null);
   } catch (Exception e) {
     App.getApp().handle(e);
   }
   Graphics.setCurrent(g);
 }
Esempio n. 2
0
 protected void getPrivates() {
   if (gl != null) return;
   try {
     gl = Reflection.getPrivateValue(Graphics.class, "GL", null);
   } catch (Exception e) {
     App.getApp().handle(e);
   }
 }
Esempio n. 3
0
 public static Graphics getGraphics() {
   try {
     return Reflection.getPrivateValue(Graphics.class, "currentGraphics", null);
   } catch (Exception e) {
     App.getApp().handle(e);
   }
   return null;
 }