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

Author Topic: open gl  (Read 3657 times)

0 Members and 1 Guest are viewing this topic.

ravenheart

  • Full Member
  • ***
  • Posts: 148
    • View Profile
open gl
« on: September 07, 2008, 12:44:39 pm »
hi i just wanna try out opengl with sfml, but what do i need to download?

the example doesnt work it says:
C:\Programme\CodeBlocks\MEINS\SMFL TEST\main.cpp|23|undefined reference to `_glClearDepth@8'|

and so on ...

do i need some opengl headers?

whatever plz tell me

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
open gl
« Reply #1 on: September 07, 2008, 02:39:42 pm »
You need to link to libopengl32.a.
Laurent Gomila - SFML developer

ravenheart

  • Full Member
  • ***
  • Posts: 148
    • View Profile
open gl
« Reply #2 on: September 07, 2008, 03:22:19 pm »
where can i find it?

and how do i link it with code::blocks?
(maybe i could answer this by myself but im just too lazy to think now)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
open gl
« Reply #3 on: September 07, 2008, 03:43:10 pm »
Quote
where can i find it?

It should be delivered with any standard distribution of MinGW (in other words : you already have it in your standard library path).

Quote
and how do i link it with code::blocks?

-lopengl32 in the linker options.
Laurent Gomila - SFML developer

ravenheart

  • Full Member
  • ***
  • Posts: 148
    • View Profile
open gl
« Reply #4 on: September 07, 2008, 03:56:42 pm »
ok the main errors seems gone when i put it in further linker option (global compiler/linker options) but now i got

C:\Programme\CodeBlocks\MEINS\SMFL TEST\main.cpp|32|undefined reference to `_gluPerspective@32'|


? im a newbie

what to do now?

something like lglu.a?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
open gl
« Reply #5 on: September 07, 2008, 03:58:59 pm »
Almost ;)

-lglu32

PS : before trying to use OpenGL with SFML, you'd better start to learn using OpenGL itself...
Laurent Gomila - SFML developer

ravenheart

  • Full Member
  • ***
  • Posts: 148
    • View Profile
open gl
« Reply #6 on: September 07, 2008, 04:01:45 pm »
thanks now it works =)

 

anything