How to render an openGL frame in C++ builder?
easy, just use TForm::Handle as window handle … Here some ancient example of mine in BCB5 ported to BDS2006: //————————————————————————— #include <vcl.h> #pragma hdrstop #include “Unit1.h” #include <gl/gl.h> #include <gl/glu.h> //————————————————————————— #pragma package(smart_init) #pragma resource “*.dfm” TForm1 *Form1; //————————————————————————— int TForm1::ogl_init() { if (ogl_inicialized) return 1; hdc = GetDC(Form1->Handle); // get device context PIXELFORMATDESCRIPTOR pfd; … Read more