Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - aXyde

Pages: [1]
1
Window / Creating OpenGL 3.2 Context
« on: November 07, 2009, 01:15:01 pm »
Hi,

As the topic says: How do i create an OpenGL 3.2 Context with SFML. I saw in some tutorial[1] that for SDL you would just have to call SDL_GL_SetAttribute(). Is there an equivalent way for doing this with SFML?

Greets

[1] http://www.opengl.org/wiki/Tutorial1:_Creating_a_Cross_Platform_OpenGL_3.2_Context_in_SDL_(C_/_SDL)

2
Window / [solved] cant compile: Tutorial - Window - Using OpenGL
« on: October 03, 2009, 01:32:20 pm »
Hi,

As the title says im not able to compile the code in the "Tutorial - Window - Using OpenGL" tutorial on this website (http://www.sfml-dev.org/tutorials/1.5/window-opengl.php).

Build messages:
Code: [Select]
In function `main':
undefined reference to `gluPerspective@32'
=== Build finished: 1 errors, 0 warnings ===


I guess this is related to the linker settings which are for me:
Code: [Select]
-lsfml-window
-lsfml-system
-lopengl32


By the way when i try to compile the OpenGL sample of the SDK i get the same error so i figure i do something wrong, what is it?

Edit: Solved now just had to add -lglu32

Pages: [1]