mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-16 19:40:18 -07:00
Initial deob and project structure
This commit is contained in:
commit
e2d5c0a1e0
671 changed files with 108157 additions and 0 deletions
28
gl/src/main/java/javax/media/opengl/GLDrawableFactory.java
Normal file
28
gl/src/main/java/javax/media/opengl/GLDrawableFactory.java
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
package javax.media.opengl;
|
||||
|
||||
import com.sun.opengl.impl.macosx.MacOSXGLDrawableFactory;
|
||||
import com.sun.opengl.impl.windows.WindowsGLDrawableFactory;
|
||||
import com.sun.opengl.impl.x11.X11GLDrawableFactory;
|
||||
|
||||
public abstract class GLDrawableFactory {
|
||||
|
||||
private static GLDrawableFactory factory;
|
||||
|
||||
public static GLDrawableFactory getFactory() {
|
||||
if (factory == null) {
|
||||
String var0 = System.getProperty("os.name").toLowerCase();
|
||||
if (var0.startsWith("win")) {
|
||||
factory = new WindowsGLDrawableFactory();
|
||||
}
|
||||
if (var0.startsWith("mac")) {
|
||||
factory = new MacOSXGLDrawableFactory();
|
||||
}
|
||||
if (var0.startsWith("linux") || var0.startsWith("sunos")) {
|
||||
factory = new X11GLDrawableFactory();
|
||||
}
|
||||
}
|
||||
return factory;
|
||||
}
|
||||
|
||||
public abstract GLDrawable getGLDrawable(Object arg0, GLCapabilities arg1, GLCapabilitiesChooser arg2) throws IllegalArgumentException, GLException;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue