HomeGalleryRegisterLog in

Share | 
 

 @Programmers

View previous topic View next topic Go down 
AuthorMessage
Legion!

avatar

Number of posts : 804
Age : 21
Location : Milan
Registration date : 2011-04-04

PostSubject: @Programmers   Sat Apr 12, 2014 6:43 pm

Anyone know a good guide for OpenGL?or a good book that talks about it with some code as example?
Back to top Go down
View user profile
Veki

avatar

Number of posts : 1240
Registration date : 2011-04-04

PostSubject: Re: @Programmers   Sun Apr 13, 2014 9:46 am

Try these :

http://nehe.gamedev.net/
(look on the right side, under "Legacy Tutorials")

http://www.opengl-tutorial.org/

http://lazyfoo.net/tutorials/OpenGL/

Hope these will help.

If you have any questions, just ask.
What platform are you programming on? And will you be learning DirectX besides OpenGL?
Back to top Go down
View user profile
Legion!

avatar

Number of posts : 804
Age : 21
Location : Milan
Registration date : 2011-04-04

PostSubject: Re: @Programmers   Sun Apr 13, 2014 11:52 am

i'm learning at school C++ but me and my friend want to make as a project an graphical interface and maybe a simple game. For do that we need to know how to use OpenGL, but in the tutorials that i have found in internet it's very evasive as explanation.

Actually i need to know which Headers i need in way to use all the propers functions of the OpenGL.


And one more thing i have this problem when i compile my file:

01 [Linker error] undefined reference to `glClear@4'
02 [Linker error] undefined reference to `glColor3f@12'
03 [Linker error] undefined reference to `glBegin@4'
04 [Linker error] undefined reference to `glVertex3f@12'
05 [Linker error] undefined reference to `glVertex3f@12'
06 [Linker error] undefined reference to `glVertex3f@12'
07 [Linker error] undefined reference to `glVertex3f@12'
08 [Linker error] undefined reference to `glEnd@0'
09 [Linker error] undefined reference to `glFlush@0'
10 [Linker error] undefined reference to `glClearColor@16'
11 [Linker error] undefined reference to `glMatrixMode@4'
12 [Linker error] undefined reference to `glLoadIdentity@0'
13 [Linker error] undefined reference to `glOrtho@48'
14 [Linker error] undefined reference to `glutInit@8'
15 [Linker error] undefined reference to `glutInitDisplayMode@4'
16 [Linker error] undefined reference to `glutInitWindowPosition@8'
17 [Linker error] undefined reference to `glutCreateWindow@4'
18 [Linker error] undefined reference to `glutDisplayFunc@4'
19 [Linker error] undefined reference to `glutMainLoop@0'
20 ld returned 1 exit status
Back to top Go down
View user profile
Legion!

avatar

Number of posts : 804
Age : 21
Location : Milan
Registration date : 2011-04-04

PostSubject: Re: @Programmers   Sun Apr 13, 2014 5:45 pm

Veki do you have skype? i need to ask you many things Very Happy
Back to top Go down
View user profile
Veki

avatar

Number of posts : 1240
Registration date : 2011-04-04

PostSubject: Re: @Programmers   Sun Apr 13, 2014 5:58 pm

As I work with DirectX, my knowledge of OpenGL is a bit weak.

But I think you need to include gl.h header. If you want to use some helper OpenGL library, you'll need to include its header too (like GLUT, GLU, GLX, etc.)
http://www.opengl.org/resources/libraries/

Besides including header files, you need to link lib files as well.
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: @Programmers   

Back to top Go down
 
@Programmers
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» How many programmers does a game like this need?
» Design clarification for programmers
» Still need dem programmers ?

Permissions in this forum:You cannot reply to topics in this forum
 :: Off topic-
Jump to: