OpenGL and C++

I would like to start a new project using OpenGL (my first use). And I would like this project to be written in C++.

Since, with some C API, I experienced some conflict between the memory model from the C API (malloc) and the memory model of C++ (new), I would like to know what about OpenGL in a C++ environment.

Hi !

There is no problem, and there is none with C/C++ either as long as you don’t try to use free on a C++ (new) object or delete on a malloc’d object.

Mikael