Skip to main content

[multilib~subversion:55] Bug fix; now allows appropriately sized 3-D GUI rendering with FOVs other

  • From:
  • To:
  • Subject: [multilib~subversion:55] Bug fix; now allows appropriately sized 3-D GUI rendering with FOVs other
  • Date: Sun, 13 Apr 2014 13:59:51 +0000

Project:    multilib
Repository: subversion
Revision:   55
Author:     superinventor
Date:       2014-04-13 13:59:50 UTC
Link:       

Log Message:
------------
Bug fix; now allows appropriately sized 3-D GUI rendering with FOVs other 
than 90


Revisions:
----------
55


Modified Paths:
---------------
simplelibrary/opengl/gui/GUI.java


Diffs:
------
Index: simplelibrary/opengl/gui/GUI.java
===================================================================
--- simplelibrary/opengl/gui/GUI.java   (revision 54)
+++ simplelibrary/opengl/gui/GUI.java   (revision 55)
@@ -16,6 +16,7 @@
     public ArrayList<Integer> keyboardWereDown = new ArrayList<>();
     public int type;
     public final GameHelper helper;
+    public float distBack = 1;
     //</editor-fold>
     public GUI(int type, GameHelper helper){
         this.type = type;
@@ -34,7 +35,7 @@
     public synchronized void render(int millisSinceLastTick){
         Exception theException = null;
         if(type==GameHelper.MODE_3D){
-            GL11.glTranslatef(0, 0, -1);
+            GL11.glTranslatef(0, 0, -distBack);
             GL11.glScalef(1, -1, 1);
         }
         if(menu!=null){





[multilib~subversion:55] Bug fix; now allows appropriately sized 3-D GUI rendering with FOVs other

superinventor 04/13/2014
 
 
Close
loading
Please Confirm
Close