-
Hello
I'm using sdljava to my project http://jojsticken.sourceforge.net. It works well and all but I don't know how I would go about to include sdljava in a jar file when I'm exporting it with eclipse. I tried changing the MANIFEST.INF to
Manifest-Version: 1.0
Main-Class: gui.GUIMain
Class-Path: sdljava.jar
This didn't work though, giving:
Exception in thread "main"...
2008-10-17 14:37:43 UTC by samel_tvom
-
The wrapper class for openGL textures has no destructor that would free the OpenGL resource.
A glDeleteTextures call should be executed in the close method of the texture class.
I know that this is a bug of gljava, but the gljava package can be downloaded from this project.
2008-01-26 19:53:40 UTC by rizsi
-
I realise that code isn't very easy to read.
I've uploaded the example code here:
http://www.jaldus.com/danny/files/SDLJava.java
Furthermore, it seems the swigActiveEvent object in the SDLActiveEvent is null.
2007-08-29 15:04:24 UTC by jaldus_1126
-
As the summary entails, the SDLEvent.pollEvent() method is throwing a NullPointerException. Here is some code:
[code]
public void start() {
boolean running = true;
do {
try {
SDLEvent event = SDLEvent.waitEvent();
if(event != null && event.getType() == SDLEvent.SDL_QUIT) {
running = false;
}
} catch(NullPointerException npe) {
System.out.println("Null pointer...
2007-08-28 19:15:38 UTC by nobody
-
This method always returs false.
public boolean isSrcAlphaBlit() {
return ((getFlags() & SDLVideo.SDL_SRCCOLORKEY) == SDLVideo.SDL_SRCALPHA);
}
It does a bitwise AND with 0x00001000 and comparison with 0x00010000, which is always false.
I suggest using
(getFlags() & SDLVideo.SDL_SRCCOLORKEY) != 0
Shorter, correct and less error-prone.
2007-05-06 02:17:01 UTC by nobody
-
ivan_ganza committed patchset 464 of module sdljava to the Java Binding for SDL CVS repository, changing 1 files.
2006-12-03 23:54:48 UTC by ivan_ganza
-
ivan_ganza committed patchset 463 of module sdljava to the Java Binding for SDL CVS repository, changing 9 files.
2006-09-24 17:23:37 UTC by ivan_ganza
-
ivan_ganza committed patchset 462 of module sdljava to the Java Binding for SDL CVS repository, changing 2 files.
2006-09-14 00:18:20 UTC by ivan_ganza
-
ivan_ganza committed patchset 461 of module sdljava to the Java Binding for SDL CVS repository, changing 12 files.
2006-03-14 03:41:54 UTC by ivan_ganza
-
ivan_ganza committed patchset 460 of module sdljava to the Java Binding for SDL CVS repository, changing 1 files.
2006-02-09 02:19:55 UTC by ivan_ganza