From: Jean-Yves B. <jea...@wa...> - 2000-09-01 15:39:40
|
Hello, Be carefull: parameter of glGenLists(param) is the number of display list you want to create. The return value is an id used to call and delete the display list. In you code, it seems to be the same parameter. I think this code would be better: nName = gl.glGenLists (1); // generate one new list gl.glNewList (nName, gl.GL_COMPILE); // start of display list definition ...<opengl calls>... // I'm currently just using lines & quads gl.glEnd(); // end of display list definition ... gl.glCallList (nName); // draw display list I can't say about linux, but on macintosh and windows (as you said), it runs very well. regards. Jean-Yves. Thorsten Roemer a *crit : > Hi *, > > did someone tried to use Display Lists under Linux ? > On Windows it works, on Linux there's just a black window ?!?!?! > > - Red Hat 6.2 > - Kernel 2.2.14 > - XFree 4.01 > - NVidea GeForce2 Driver 0.94 > > It's something like that: > > int nName = 1; > gl.glDeleteLists (nName, 1); // delete old list > nName = gl.glGenLists (nName); // generate one new list > gl.glNewList (nName, gl.GL_COMPILE); // start of display list definition > > ...<opengl calls>... // I'm currently just using lines & quads > > gl.glEnd(); // end of display list definition > > ... > > gl.glCallList (nName); // draw display list > > Any ideas's, comments ??? > > regards, Thorsten > > -- > Thorsten Roemer > IVISTAR Kommunikationssysteme AG > Ehrenbergstr. 19 / 10245 Berlin > http://www.ivistar.de > > _______________________________________________ > gl4java-usergroup mailing list > gl4...@li... > http://lists.sourceforge.net/mailman/listinfo/gl4java-usergroup -- -------------------------------------- Jean-Yves BRUD POLYQUARK - Ingenierie & Creation 3D Palahou - 31330 LARRA France Tel: 05.62.79.03.33 Fax: 05.62.79.03.38 Mail: jea...@wa... -------------------------------------- |