aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/x11/glx
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-08-31 03:25:48 +0200
committerSven Gothel <[email protected]>2011-08-31 03:25:48 +0200
commitc75785dcc4758b3d865c5ccf6677389ab112d2fb (patch)
treed3c035106df01c6116c6c70f1479f8c352d74a07 /src/jogl/classes/jogamp/opengl/x11/glx
parent490a6ebf64d767f5395554da78dda96ebb59b0fc (diff)
DynamicLibraryBundle*: Use generics for better spec - following gluegen commit cfb9e118e020707842e6b5136b07f5ab149540c1
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/x11/glx')
-rw-r--r--src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDynamicLibraryBundleInfo.java30
1 files changed, 14 insertions, 16 deletions
diff --git a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDynamicLibraryBundleInfo.java b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDynamicLibraryBundleInfo.java
index aa6e3e849..eb6c17cf6 100644
--- a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDynamicLibraryBundleInfo.java
+++ b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDynamicLibraryBundleInfo.java
@@ -36,11 +36,10 @@ public class X11GLXDynamicLibraryBundleInfo extends DesktopGLDynamicLibraryBundl
super();
}
- public List getToolLibNames() {
- List/*<List>*/ libNamesList = new ArrayList();
-
- List/*<String>*/ glLibNames = new ArrayList();
-
+ public List<List<String>> getToolLibNames() {
+ final List<List<String>> libsList = new ArrayList<List<String>>();
+ final List<String> libsGL = new ArrayList<String>();
+
// Be aware that on DRI systems, eg ATI fglrx, etc,
// you have to set LIBGL_DRIVERS_PATH env variable.
// Eg on Ubuntu 64bit systems this is:
@@ -48,19 +47,18 @@ public class X11GLXDynamicLibraryBundleInfo extends DesktopGLDynamicLibraryBundl
//
// this is the default lib name, according to the spec
- glLibNames.add("libGL.so.1");
+ libsGL.add("libGL.so.1");
// try this one as well, if spec fails
- glLibNames.add("libGL.so");
+ libsGL.add("libGL.so");
// last but not least .. the generic one
- glLibNames.add("GL");
-
- libNamesList.add(glLibNames);
-
- return libNamesList;
- }
-
+ libsGL.add("GL");
+
+ libsList.add(libsGL);
+ return libsList;
+ }
+
/**
* This respects old DRI requirements:<br>
* <pre>
@@ -69,8 +67,8 @@ public class X11GLXDynamicLibraryBundleInfo extends DesktopGLDynamicLibraryBundl
*/
public boolean shallLinkGlobal() { return true; }
- public final List getToolGetProcAddressFuncNameList() {
- List res = new ArrayList();
+ public final List<String> getToolGetProcAddressFuncNameList() {
+ List<String> res = new ArrayList<String>();
res.add("glXGetProcAddressARB");
res.add("glXGetProcAddress");
return res;