35 |
* provide. |
* provide. |
36 |
* This is currently a singleton class but that may change in the future. |
* This is currently a singleton class but that may change in the future. |
37 |
* <p> |
* <p> |
38 |
* The System property <code>gzzclient</code> sets the API type: either "awt" or "gl" |
* The System property <code>vob.api</code> sets the API type: either "awt" or "gl" |
39 |
* should be used. |
* should be used. |
40 |
*/ |
*/ |
41 |
public abstract class GraphicsAPI { |
public abstract class GraphicsAPI { |
45 |
private static String type; |
private static String type; |
46 |
|
|
47 |
static private void init() { |
static private void init() { |
48 |
String cl = System.getProperty("gzzclient"); |
String cl = System.getProperty("vob.api"); |
49 |
if(cl == null || cl.equals("awt")) { |
if(cl == null || cl.equals("awt")) { |
50 |
gfxapi = new org.nongnu.libvob.impl.awt.AWTAPI(); |
gfxapi = new org.nongnu.libvob.impl.awt.AWTAPI(); |
51 |
type = "awt"; |
type = "awt"; |