From: Carsten W. <ca...@us...> - 2005-05-07 18:23:35
|
Update of /cvsroot/jake2/jake2/src/jake2/render In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25965/src/jake2/render Modified Files: glconfig_t.java Log Message: helper functions to get the OpenGL version as float value Index: glconfig_t.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/render/glconfig_t.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** glconfig_t.java 7 Jul 2004 19:59:34 -0000 1.1.1.1 --- glconfig_t.java 7 May 2005 18:23:26 -0000 1.2 *************** *** 25,29 **** public class glconfig_t { ! public int renderer; public String renderer_string; --- 25,29 ---- public class glconfig_t { ! public int renderer; public String renderer_string; *************** *** 33,35 **** --- 33,45 ---- public boolean allow_cds; + + private float version = 1.1f; + + public void parseOpenGLVersion() { + version = Float.parseFloat(version_string.substring(0, 3)); + } + + public float getOpenGLVersion() { + return version; + } } |