X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fplat%2FOpenGL.java;h=c5be9bfb3764a01cb1fc07f2056755d78e7cf943;hp=cea181adbfd584220ed2bf7ae47067e06ce44411;hb=01732f3955ae92c0520283b44f52d1ec69f9f9f2;hpb=c04af3bec88e6cbaf461700900d00d1e4d096d26 diff --git a/src/org/ibex/plat/OpenGL.java b/src/org/ibex/plat/OpenGL.java index cea181a..c5be9bf 100644 --- a/src/org/ibex/plat/OpenGL.java +++ b/src/org/ibex/plat/OpenGL.java @@ -2,9 +2,11 @@ // Author: Brian Alliet package org.ibex.plat; -import org.ibex.*; import org.ibex.js.*; import org.ibex.util.*; +import org.ibex.graphics.*; +import org.ibex.core.*; +import org.ibex.net.*; abstract class OpenGL { static final boolean pretendToBeACrappyVideoCard = false; @@ -81,8 +83,8 @@ abstract class OpenGL { //System.out.println("drawString(): " + text); } - public void drawGlyph(org.ibex.Font.Glyph source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int rgb) { - drawPicture_(((org.ibex.Platform.DefaultGlyph)source).getPicture(), dx, dy, cx1, cy1, cx2, cy2, rgb); + public void drawGlyph(org.ibex.graphics.Font.Glyph source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int rgb) { + drawPicture_(((org.ibex.plat.Platform.DefaultGlyph)source).getPicture(), dx, dy, cx1, cy1, cx2, cy2, rgb); } public void drawPicture(Picture source, int dx, int dy, int cx1, int cy1, int cx2, int cy2) { drawPicture_(source, dx, dy, cx1, cy1, cx2, cy2, 0xffffffff); @@ -127,13 +129,13 @@ abstract class OpenGL { GLPicture realPicture = null; } - public Font.Glyph _createGlyph(org.ibex.Font f, char c) { return new org.ibex.Platform.DefaultGlyph(f, c); } + public Font.Glyph _createGlyph(org.ibex.graphics.Font f, char c) { return new org.ibex.plat.Platform.DefaultGlyph(f, c); } private native void natDeleteTexture(int tex); public void deleteTexture(final int tex) { // CHECKME: Is this safe to do from finalize()? // natDeleteTexture MUST be run from the message queue thread - Scheduler.add(new Scheduler.Task() { public void perform() { natDeleteTexture(tex); }}); + Scheduler.add(new Task() { public void perform() { natDeleteTexture(tex); }}); } private static abstract class GLPicture { @@ -190,8 +192,6 @@ abstract class OpenGL { } private static class MosaicGLPicture extends GLPicture { - private static final int overlap = 8; - int psize; GLPicture[][] pics;