/opengl-create-context

Create an opengl context manually without framework

Primary LanguageC

Create OpenGL context without framework on Windows

I learn from this blog and he's project. You can read detail from that blog.

The below are OpenGL documents:

What's inside this project

  • absolutely model OpenGL with version 4.x and use <GL/glcorearb.h> instead of <GL/gl.h> and <GL/glext.h>.
  • compared to the project above, this project use draw commands to draw an triangle.
  • this project is based on msys2, sorry now, I don't provide solution for visual studio.

How to compile

  • download msys2, need gcc.
  • then just make.
  • run main.exe.

This is the runtime screenshot:

runtime