blob: 7f621add642816e592c776cc9fc3ab5b573ff7f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Set up the GUI.
GLCapabilities caps = new GLCapabilities();
Canvas cvs = null;
GLDrawableFactory gldf = GLDrawableFactory.getFactory();
if(gldf instanceof SunJDK13GLDrawableFactory)
{
SunJDK13GLDrawableFactory sgldf =
(SunJDK13GLDrawableFactory)gldf;
GraphicsConfiguration grcfg =
sgldf.getGraphicsConfiguration(caps);
cvs = new Canvas (grcfg);
} else {
cvs = new Canvas ();
}
cvs.
|