PDA

View Full Version : drawing cube with LWJGL



D3GAN
02-01-2011, 01:35 AM
is there(LWJGL) any command that draw cube like glutSolidCube in glut?

Scorpio
02-01-2011, 02:06 AM
glutSolidCube[radius]
glutWireCube[radius]

This is the command used in open gl for drawing cube

D3GAN
02-01-2011, 02:54 AM
i knew that but i want command that work in java with LWJGL that have no glut

mobeen
02-01-2011, 03:01 AM
i knew that but i want command that work in java with LWJGL that have no glut
It shouldn't be too difficult to roll in your own cube function.

D3GAN
02-01-2011, 03:22 AM
yes but when you use glut func you dont have any concern about normalize and texture mapping glut handle it for you ...
for example when you draw a teapot with glut and wanna map some texture on it you should only bind your texture before glut function call...