Skip to content

Commit

Permalink
Update JOGL library to current version.
Browse files Browse the repository at this point in the history
  • Loading branch information
winder committed Feb 22, 2015
1 parent d1d2515 commit c239697
Show file tree
Hide file tree
Showing 87 changed files with 10 additions and 10 deletions.
Binary file modified lib/gluegen-rt-natives-linux-amd64.jar
Binary file not shown.
Binary file modified lib/gluegen-rt-natives-linux-armv6.jar
Binary file not shown.
Binary file modified lib/gluegen-rt-natives-linux-armv6hf.jar
Binary file not shown.
Binary file modified lib/gluegen-rt-natives-linux-i586.jar
Binary file not shown.
Binary file modified lib/gluegen-rt-natives-macosx-universal.jar
Binary file not shown.
Binary file modified lib/gluegen-rt-natives-windows-amd64.jar
Binary file not shown.
Binary file modified lib/gluegen-rt-natives-windows-i586.jar
Binary file not shown.
Binary file modified lib/gluegen-rt.jar
Binary file not shown.
Binary file added lib/gluegen.jar
Binary file not shown.
Binary file modified lib/jogl-all-natives-linux-amd64.jar
Binary file not shown.
Binary file modified lib/jogl-all-natives-linux-armv6.jar
Binary file not shown.
Binary file added lib/jogl-all-natives-linux-armv6hf.jar
Binary file not shown.
Binary file modified lib/jogl-all-natives-linux-i586.jar
Binary file not shown.
Binary file modified lib/jogl-all-natives-macosx-universal.jar
Binary file not shown.
Binary file modified lib/jogl-all-natives-windows-amd64.jar
Binary file not shown.
Binary file modified lib/jogl-all-natives-windows-i586.jar
Binary file not shown.
Binary file modified lib/jogl-all.jar
Binary file not shown.
Binary file modified lib/natives/arm/libgluegen-rt.so
Binary file not shown.
Binary file modified lib/natives/arm/libjoal.so
Binary file not shown.
Binary file modified lib/natives/arm/libjocl.so
Binary file not shown.
Binary file modified lib/natives/arm/libjogl_cg.so
Binary file not shown.
Binary file modified lib/natives/arm/libjogl_desktop.so
Binary file not shown.
Binary file modified lib/natives/arm/libjogl_mobile.so
Binary file not shown.
Binary file modified lib/natives/arm/libnativewindow_awt.so
Binary file not shown.
Binary file modified lib/natives/arm/libnativewindow_x11.so
Binary file not shown.
Binary file modified lib/natives/arm/libnewt.so
Binary file not shown.
Binary file added lib/natives/arm/libopenal.so
Binary file not shown.
Binary file modified lib/natives/linux32/libgluegen-rt.so
Binary file not shown.
Binary file added lib/natives/linux32/libjoal.so
Binary file not shown.
Binary file added lib/natives/linux32/libjocl.so
Binary file not shown.
Binary file added lib/natives/linux32/libjogl_cg.so
Binary file not shown.
Binary file modified lib/natives/linux32/libjogl_desktop.so
Binary file not shown.
Binary file modified lib/natives/linux32/libjogl_mobile.so
Binary file not shown.
Binary file modified lib/natives/linux32/libnativewindow_awt.so
Binary file not shown.
Binary file modified lib/natives/linux32/libnativewindow_x11.so
Binary file not shown.
Binary file modified lib/natives/linux32/libnewt.so
Binary file not shown.
Binary file added lib/natives/linux32/libopenal.so
Binary file not shown.
Binary file modified lib/natives/linux64/libgluegen-rt.so
Binary file not shown.
Binary file added lib/natives/linux64/libjoal.so
Binary file not shown.
Binary file added lib/natives/linux64/libjocl.so
Binary file not shown.
Binary file added lib/natives/linux64/libjogl_cg.so
Binary file not shown.
Binary file modified lib/natives/linux64/libjogl_desktop.so
Binary file not shown.
Binary file modified lib/natives/linux64/libjogl_mobile.so
Binary file not shown.
Binary file modified lib/natives/linux64/libnativewindow_awt.so
Binary file not shown.
Binary file modified lib/natives/linux64/libnativewindow_x11.so
Binary file not shown.
Binary file modified lib/natives/linux64/libnewt.so
Binary file not shown.
Binary file added lib/natives/linux64/libopenal.so
Binary file not shown.
Binary file removed lib/natives/macosx/libgluegen-rt.dylib
Binary file not shown.
Binary file modified lib/natives/macosx/libgluegen-rt.jnilib
Binary file not shown.
Binary file added lib/natives/macosx/libjoal.jnilib
Binary file not shown.
Binary file added lib/natives/macosx/libjocl.jnilib
Binary file not shown.
Binary file added lib/natives/macosx/libjogl_cg.jnilib
Binary file not shown.
Binary file removed lib/natives/macosx/libjogl_desktop.dylib
Binary file not shown.
Binary file modified lib/natives/macosx/libjogl_desktop.jnilib
Binary file not shown.
Binary file removed lib/natives/macosx/libjogl_mobile.dylib
Binary file not shown.
Binary file modified lib/natives/macosx/libjogl_mobile.jnilib
Binary file not shown.
Binary file removed lib/natives/macosx/libnativewindow_awt.dylib
Binary file not shown.
Binary file modified lib/natives/macosx/libnativewindow_awt.jnilib
Binary file not shown.
Binary file removed lib/natives/macosx/libnativewindow_macosx.dylib
Binary file not shown.
Binary file modified lib/natives/macosx/libnativewindow_macosx.jnilib
Binary file not shown.
Binary file removed lib/natives/macosx/libnewt.dylib
Binary file not shown.
Binary file modified lib/natives/macosx/libnewt.jnilib
Binary file not shown.
Binary file added lib/natives/macosx/libopenal.1.15.1.dylib
Binary file not shown.
Binary file added lib/natives/macosx/libopenal.1.dylib
Binary file not shown.
Binary file added lib/natives/macosx/libopenal.dylib
Binary file not shown.
Binary file modified lib/natives/windows32/gluegen-rt.dll
Binary file not shown.
Binary file added lib/natives/windows32/joal.dll
Binary file not shown.
Binary file added lib/natives/windows32/jocl.dll
Binary file not shown.
Binary file added lib/natives/windows32/jogl_cg.dll
Binary file not shown.
Binary file modified lib/natives/windows32/jogl_desktop.dll
Binary file not shown.
Binary file modified lib/natives/windows32/jogl_mobile.dll
Binary file not shown.
Binary file modified lib/natives/windows32/nativewindow_awt.dll
Binary file not shown.
Binary file modified lib/natives/windows32/nativewindow_win32.dll
Binary file not shown.
Binary file modified lib/natives/windows32/newt.dll
Binary file not shown.
Binary file added lib/natives/windows32/soft_oal.dll
Binary file not shown.
Binary file modified lib/natives/windows64/gluegen-rt.dll
Binary file not shown.
Binary file added lib/natives/windows64/joal.dll
Binary file not shown.
Binary file added lib/natives/windows64/jocl.dll
Binary file not shown.
Binary file added lib/natives/windows64/jogl_cg.dll
Binary file not shown.
Binary file modified lib/natives/windows64/jogl_desktop.dll
Binary file not shown.
Binary file modified lib/natives/windows64/jogl_mobile.dll
Binary file not shown.
Binary file modified lib/natives/windows64/nativewindow_awt.dll
Binary file not shown.
Binary file modified lib/natives/windows64/nativewindow_win32.dll
Binary file not shown.
Binary file modified lib/natives/windows64/newt.dll
Binary file not shown.
Binary file added lib/natives/windows64/soft_oal.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -166,19 +166,19 @@ public void draw() {
}

if (fpsText != null) {
renderer.beginRendering(drawable.getWidth(), drawable.getHeight());
renderer.beginRendering(drawable.getSurfaceWidth(), drawable.getSurfaceHeight());
// Figure out the location at which to draw the text
int x = 0;
int y = 0;
switch (textLocation) {
case UPPER_LEFT:
x = fpsOffset;
y = drawable.getHeight() - fpsHeight - fpsOffset;
y = drawable.getSurfaceHeight() - fpsHeight - fpsOffset;
break;

case UPPER_RIGHT:
x = drawable.getWidth() - fpsWidth - fpsOffset;
y = drawable.getHeight() - fpsHeight - fpsOffset;
x = drawable.getSurfaceWidth() - fpsWidth - fpsOffset;
y = drawable.getSurfaceHeight() - fpsHeight - fpsOffset;
break;

case LOWER_LEFT:
Expand All @@ -187,7 +187,7 @@ public void draw() {
break;

case LOWER_RIGHT:
x = drawable.getWidth() - fpsWidth - fpsOffset;
x = drawable.getSurfaceWidth() - fpsWidth - fpsOffset;
y = fpsOffset;
break;
}
Expand Down
10 changes: 5 additions & 5 deletions src/com/willwinder/universalgcodesender/uielements/Overlay.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public void setColor(float r, float g, float b, float a) throws GLException {
public void draw(String text) {
text = text.trim();
if (text != null || text != "") {
renderer.beginRendering(drawable.getWidth(), drawable.getHeight());
renderer.beginRendering(drawable.getSurfaceWidth(), drawable.getSurfaceHeight());

Rectangle2D bounds = renderer.getBounds(text);
width = (int) bounds.getWidth();
Expand All @@ -159,12 +159,12 @@ public void draw(String text) {
switch (textLocation) {
case UPPER_LEFT:
x = offset;
y = drawable.getHeight() - height - offset;
y = drawable.getSurfaceHeight() - height - offset;
break;

case UPPER_RIGHT:
x = drawable.getWidth() - width - offset;
y = drawable.getHeight() - height - offset;
x = drawable.getSurfaceWidth() - width - offset;
y = drawable.getSurfaceHeight() - height - offset;
break;

case LOWER_LEFT:
Expand All @@ -173,7 +173,7 @@ public void draw(String text) {
break;

case LOWER_RIGHT:
x = drawable.getWidth() - width - offset;
x = drawable.getSurfaceWidth() - width - offset;
y = offset;
break;
}
Expand Down

0 comments on commit c239697

Please sign in to comment.