#include <stdio.h> #include <osmesa.h> #define W 640 #define H 480 int main(void) { int buffer[W*H*4]; // OSMESA_RGBA = 4 OSMesaContext om = OSMesaCreateContext(OSMESA_RGBA, NULL); OSMesaMakeCurrent(om, (void *) buffer, GL_UNSIGNED_BYTE,W, H); //from now on, how can i do for create a window, or from now on, how culd i integrate //with which library, for create a window and start render things in it //AND like a question, how can i link that window with stdout & stdin memory buffers? return 0; }