awesome site for gl beginners and other

Started by
5 comments, last by ciranmc 16 years, 1 month ago
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
Advertisement
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
what must i download to make a opengl prodject on visual c++, because it cant find one of the files to include
which file are you missing?

etc.
1>------ Build started: Project: simple_glut, Configuration: Debug Win32 ------
1>Compiling...
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
1>main.cpp
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:
GL/glut.h
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
Thanks for the tip that site was really useful,learned a lot

This topic is closed to new replies.

Advertisement