Jump to content
  • Advertisement
Sign in to follow this  

awesome site for gl beginners and other

This topic is 3736 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

stumbled on this site today, it probably covers everything i wanted to learn at first with opengl, just check it out to see, http://www.robthebloke.org/opengl_programming.html

Share this post

Link to post
Share on other sites
That's looking very good. Funnily enough, I had it in my bookmarks for ages already but somehow completely forgot about the site...

Thanks for the reminder! :P

Share this post

Link to post
Share on other sites
1>------ Build started: Project: simple_glut, Configuration: Debug Win32 ------
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
1>c:\user\me\desktop\simpleglut\simpleglut\main.cpp(9) : fatal error C1083: Cannot open include file: 'GL/glut.h': No such file or directory
1>Build log was saved at "file://c:\user\me\Desktop\simpleGlut\simpleGlut\Debug\BuildLog.htm"
1>simple_glut - 1 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

its sais it cant include this:

Share this post

Link to post
Share on other sites
you need to download "glut-3.7.6-bin.zip" files, just google to find a download point,
i dont use VC compiler so not so sure how links would work,

i use CODE::BLOCKS and did the following,

extract glut files,

copy glut.h into "COMPILERFOLDER"/Mingw/includes/GL

copy glut32.lib into "COMPILERFOLDER"/Mingw/lib

copy the glut32.dll into your WINDOWS/system/

but as i said not sure how VC links up,

but just googled and found this, give it a try

# Start Visual Studio .NET * File -> New -> Project * Select Visual C++ Projects -> Win32 -> Win32 Console Project
# Give your project a name and choose where to store it
# Click Finish
# Disable support for precompiled headers (you need to do this to run the example code)
# Remove the '#include "stdafx.h"' line from your project1.cpp
# Open Project -> projectname Properties (last option)
# Go to C++ -> Precompiled Headers
# Change "Create/Use Precompiled Header" field to "Not using precompiled headers"
# Add glut32.lib to your linking settings
# You should still be in the project settings window
# Choose Linker -> Input
# Add 'glut32.lib' to your Additional Dependencies
# Click OK to return to your main project window
# Now we need to load the glut files
# Put the glut32.dll in the same directory as your executable
# Download glut-3.7.6-bin.zip (117 KB)
# When the zip folder opens, copy glut32.lib glut32.dll, and glut.h to the directory you stored your project in
# Now, any time you see '#include <gl/glut.h>' replace it with '#include "glut.h"'
# You should now be able to build your project
# Also, if you paste in code from any of the examples it should work

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!