How do i link SDL and GL in monodevelop (C++) - c++

I am trying compile a simple program using openGL and SDL but I can't seem to link the library in monodevelop
I tried following This guide but neither SDL nor GL are on the packages list

You need to download the Tao Framework and add the SDL and OpenGL dlls to the project references.
See here for more details.

Related

freeglut_main.c not found in OPTIX 3.8

I have been working in Optix for my ray tracing project, i went through its classes and function , I know that all the display function and call backs are handled in glutmainloop() and it will never end, my question is I cannot find any function or .c file where glutmainloop() is defined? is it hidden?
Can anyone help me?
glutMainLoop is a function from the GL Utility Toolkit (GLUT). On Windows the library gets linked in and thus no source code is provided. Precisely it is provided from the open source freeglut:
GLUT
Most OptiX samples use the GLUT toolkit. Freeglut ships with the Windows OptiX distribution. GLUT is installed by default on Mac OSX. A GLUT installation is required to build samples on Linux.
Take a look at github's mirror for its code
More information here: opengl glutmainloop()

How to install OpenGL libraries linux

Where do I get the OpenGL libraries from? I am using fedora but I don't know what ones I need to get. Is it just:
sudo yum install freeglut-devel
I already have the g++ and stuff. Is there any other libraries I need to install to make a simple OpenGL application.
On various internet tutorials they are using glaux, glut etc...
Could someone advice on which one I should use. I need it to create a music visualization program.
At first you have to understand why freeglut libraries is used for, what is Opengl and which version of Opengl you are going to used. Glut is an outdated library and freeglut or GLFW is a best alternative. Freeglut/GLFW is used to create opengl window and provide many callback function to handle keyboard, mouse, joystick and timer. If you are using ancient version of opengl (version less than 2) then you can call the opengl API function just including freeglut/glut. But if you are using Modern Opengl version (upto latest version 4.x) you can't call the opengl API function just include freeglut because in modern version Opengl API function are called at run time rather than compile time. So,you need a library to handle run time access of Openg API function and best library is GLEW. In ancient version of Opengl math function like glScalef, glRotatef,glTranslatef are provided but these are absent in modern Opengl. You have to do your math by yourself or you can use GLM library to do math.
Don't use ancient version of OpenGL use modern OpenGL. You need following things to start modern opengl.
freeglut or GLFW library to create opengl window and handle keyboard,mouse, joystick and other things.
GLEW to access OpenGL API function at run time.
GLM to do math operation.
Don't get ahead of yourself stop following old tutorials. Here are the best modern OpenGL tutorials follow them.
Link 1
Link 2
Link 3

What version of OpenGL comes with Visual Studio 2012 Express?

How do you install GLUT and OpenGL in Visual Studio 2012? explains that the OpenGL headers and libraries come with VS2012. How do I determine which versions of the OpenGL standard are supported by these libraries? I recently purchased the 8th Edition of the OpenGL redbook which is based on OpenGL 4.3. Will I be able to run and compile these examples with VS2012 Express?
OpenGL implementation is brought to you by your graphics card driver, not by your OS (except really old stuff). When you install the GPU driver, appropriate library (such as nvogl32.dll on my PC with NVidia card) is placed in your System32/SysWOW64 folder.
To actually acess the functions in the driver, you need a loader library (such as GLload or GLEW) that will ask the driver dll nicely where do the functions reside. You can also do it manually, but it's extremely cumbersome.
You can access the opengl version in runtime via:
glGetString(GL_VERSION)
after opening a gl context. Other usefull information about this gl call here

how to link OpenGL with VC++

I am developing one game where I want to add OpenGL framework with VC++ 2005 express edition. But I dont know how to add OpenGL framework with VC++. So can any one guide me for this.
Please explain me in detail.
Thanks in advance
You must link with opengl32.lib and potentially glu32.lib. The headers should already be provided with the Platform SDK (which needs to be downloaded separately, if you don't already have it).
If possible, you should consider upgrading to VS2008 Express, since it's free.
You need to have a windowing toolkit before you can use opengl. GLUT is the easiest to learn/use for begining with opengl. Here is a guide to download GLUT and how to create an opengl project.
http://www.cecs.csulb.edu/~pnguyen/Using%20OpenGL%20in%20Visual%20Studio%202005.htm
You should have all of the opengl libs and headers already so you should only need to download glut.

Looking for Linux/Windows -deployable OpenGL windowing-and-OS libraries

I'd like to set up an OpenGL development environment in Linux that I can also cross-compile for Windows out of. It looks like GLFW + OpenGL will give me what I need.
I tried installing the GLFW development package for Ubuntu 8.10, but I had dependency problems. I may stick with it, though.
Has anyone used GLFW for Linux? Has anyone tried cross-compiling for Windows? Is there another solution to handle windowing with OpenGL that might be better?
I second SDL. I also suggest GLee or GLEW for extension managing as well
I would try SDL, it is very easy to use. For cross compilation, I would use MinGW or Cygwin.
I would recommend looking at using Qt and OpenGL together for your windowing needs. As of 4.5, Qt is now LGPL, and supports Linux, Windows, and Mac out of the box.