Esempio n. 1
0
 public static void onTick() {
   if (waiting) {
     ScreenshotTaker.capture(
         VoxelCamCore.getConfig().getIntProperty(VoxelCamConfig.PHOTOWIDTH),
         VoxelCamCore.getConfig().getIntProperty(VoxelCamConfig.PHOTOHEIGHT),
         VoxelCamCore.getConfig().getStringProperty(VoxelCamConfig.BIGSCREENSHOTNAMINGMETHOD));
     fbo.end();
     fbo.dispose();
     returnMinecraftToNormal();
     Minecraft.getMinecraft().gameSettings.hideGUI = false;
     waiting = false;
   }
 }
Esempio n. 2
0
 public static void run() {
   Minecraft.getMinecraft().gameSettings.hideGUI = true;
   originalWidthOfScreen = Minecraft.getMinecraft().displayWidth;
   originalHeightOfScreen = Minecraft.getMinecraft().displayHeight;
   resizeMinecraft(
       VoxelCamCore.getConfig().getIntProperty(VoxelCamConfig.PHOTOWIDTH),
       VoxelCamCore.getConfig().getIntProperty(VoxelCamConfig.PHOTOHEIGHT));
   fbo = new FBO();
   fbo.begin(
       VoxelCamCore.getConfig().getIntProperty(VoxelCamConfig.PHOTOWIDTH),
       VoxelCamCore.getConfig().getIntProperty(VoxelCamConfig.PHOTOHEIGHT));
   waiting = true;
 }