Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Lwjgl - Drawing ???  (Read 2790 times)
0 Members and 1 Guest are viewing this topic.
Offline javatypo

Junior Devvie

« Posted 2003-02-02 20:33:14 »

import org.lwjgl.*;
import org.lwjgl.input.*;
public class lwjgltest {      
public static void main(String args[]) throws Exception {            DisplayMode[] modes = Display.getAvailableDisplayModes();            Display.create(modes[modes.length-1],true);            Keyboard.create();            while (true) {                  Keyboard.poll();                  if (Keyboard.isKeyDown(Keyboard.KEY_Q)) {                        break;                  }            }      }}

How do i make this code beable to draw something like a square on the screen?? Itried but i keep getting native code errors..
Offline Matzon

JGO Knight

Medals: 19
Projects: 1

I'm gonna wring your pants!

« Reply #1 - Posted 2003-02-03 03:57:36 »

Take a look at in the bottom is a skelton example of drawing a box.

8: Undefined index: online
File: /home/jgo/public_html/Themes/default/Display.template.php (main sub template - eval?)
Line: 161