Slick Forums

Discuss the Slick 2D Library
It is currently Tue May 21, 2013 11:01 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Unsupported: glGenLists
PostPosted: Wed Apr 25, 2012 12:00 pm 
Offline
Regular

Joined: Thu Sep 22, 2011 4:39 pm
Posts: 165
Location: Belgium
ok slick sui is history but when i load my gdxgamecontainer as desktop i get this errors for the fonts;

Wed Apr 25 13:54:40 CEST 2012 ERROR:Creating application: com.badlogic.gdx.backends.lwjgl.LwjglApplication@1503a3
Wed Apr 25 13:54:42 CEST 2012 ERROR:Fail: Unsupported: glGenLists
Wed Apr 25 13:54:42 CEST 2012 ERROR:Fail: Unsupported: glGenLists
Wed Apr 25 13:54:42 CEST 2012 ERROR:Fail: Unsupported: glGenLists

also, now i use the slick/gui/textfields, but when i run it in the gdxgamecontainer it crashes on this line
g.setWorldClip(x,y,width, height);
when i comment it, it works but i see that the font is completely different mapped to my keys on the keyboard
maybe these are linked to the error above?

private static final int DISPLAY_LIST_CACHE_SIZE = 600;

/** The highest character that AngelCodeFont will support. */
private static final int MAX_CHAR = 800;

so at the end why are my characters mixed up when i run it on the android and not on slick desktop?

<edit>
so on my labels the characters are correct, but if i type in the textbox they are different
seems like i use a different keyboard or something..

i think it is because of the differences in the Input class

for slick you have the translation of the key in the keyboard but not for android..
(on the poll method)

Code:
  while (org.lwjgl.input.Keyboard.next()) {
            if (org.lwjgl.input.Keyboard.getEventKeyState()) {
                int eventKey = resolveEventKey(org.lwjgl.input.Keyboard.getEventKey(), org.lwjgl.input.Keyboard.getEventCharacter());

                keys[eventKey] = org.lwjgl.input.Keyboard.getEventCharacter();
                pressed[eventKey] = true;
                nextRepeat[eventKey] = System.currentTimeMillis() + keyRepeatInitial;

                consumed = false;
                for (Object keyListener : keyListeners) {
                    KeyListener listener = (KeyListener) keyListener;

                    if (listener.isAcceptingInput()) {
                        listener.keyPressed(eventKey, org.lwjgl.input.Keyboard.getEventCharacter());
                        if (consumed) {
                            break;
                        }
                    }
                }
            } else {
                int eventKey = resolveEventKey(org.lwjgl.input.Keyboard.getEventKey(), org.lwjgl.input.Keyboard.getEventCharacter());
                nextRepeat[eventKey] = 0;

                consumed = false;
                for (Object keyListener : keyListeners) {
                    KeyListener listener = (KeyListener) keyListener;
                    if (listener.isAcceptingInput()) {
                        listener.keyReleased(eventKey, keys[eventKey]);
                        if (consumed) {
                            break;
                        }
                    }
                }
            }
        }


tx


Top
 Profile  
 
PostPosted: Wed Apr 25, 2012 4:06 pm 
Offline
Regular

Joined: Thu Sep 22, 2011 4:39 pm
Posts: 165
Location: Belgium
never mind i'll post the solution in a different thread


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group