[sdljava-users] Required GLEW Version?
Status: Beta
Brought to you by:
ivan_ganza
From: Harry W. <fre...@gm...> - 2010-03-10 06:29:11
|
I'm currently trying to use some simple openGL to draw a shape: SDLMain.init(SDLMain.SDL_INIT_EVERYTHING); mainSurface = SDLVideo.setVideoMode(640, 480, 24, SDLVideo.SDL_HWACCEL | SDLVideo.SDL_OPENGL); mainGL = mainSurface.getGL(); mainGL.glEnable(GL.GL_TEXTURE_2D); mainGL.glClearColor(0f, 0f, 0f, 0f); mainGL.glViewport(0, 0, 640, 480); mainGL.glClear(GL.GL_COLOR_BUFFER_BIT); mainGL.glMatrixMode(GL.GL_PROJECTION); mainGL.glLoadIdentity(); mainGL.glOrtho(0f, 640, 480, 0f, -1f, 1f); mainGL.glMatrixMode(GL.GL_MODELVIEW); mainGL.glLoadIdentity(); mainGL.glColor3f(255, 255, 0); mainGL.glBegin(GL.GL_QUADS); { mainGL.glVertex2d(50, 150); mainGL.glVertex2d(150, 150); mainGL.glVertex2d(50, 50); mainGL.glVertex2d(50, 550); } mainGL.glEnd(); mainSurface.flip(); However, when I run the code I get an error: java.lang.UnsatisfiedLinkError: ... libgljava.so: libGLEW.so.2: cannot open shared object file: No such file or directory I notice that the latest version of GLEW available is 1.5.3, which I have, but it still doesn't seem to work. Is there some way to fix this so that I can use openGL? Thanks, Harry Wagstaff |