PDA

View Full Version : opengl 4 initialization and show in c# panel



giuseppe500
08-19-2015, 07:42 AM
hello.
where i can found an opengl graphics initialization for opengl 4 without glut and other tools?
I would to create a wrapper in c++ cli for connect it to a c# application.
for now is an experiment,
Thanks.
because i found this:
http://nehe.gamedev.net/tutorial/creating_an_opengl_window_win32/13001/
but i don't know if it is for opengl 4 is from nehe.
what is the best solution for draw a scene written in c++ and that reside in c++ code to a c# panel with opengl 4?
i must grab the hiwd and set to the panel?
how?
thanks , what is sdl and other tools?
if i can i won't use they.
thanks.

I find this:
http://www.codeproject.com/Articles/127141/Unmanaged-C-OpenGL-Drawing-and-C-WinForms-WPF-inte
but i don't know how set pixel description and version for opengl 4

GClements
08-19-2015, 09:38 AM
hello.
where i can found an opengl graphics initialization for opengl 4 without glut and other tools?

Look at the source code for FreeGLUT, OpenGLUT, GLFW or SDL.