I’m trying to hack glut inorder to get the MS-windows HDC.
I can’t get this code to go on:
in file glut_win.c
HDC APIENTRY myglutGetHDC(int win)
{
GLUTwindow *window;
window = __glutWindowList[win - 1];
return window->renderDc;
}
and adding the prototype to glut.h.
GLUTAPI HDC APIENTRY myglutGetHDC(int win);
if you can help me
- retrieving HDC without hacking code
- tell me what’s wrong with my code
I’ll be more than thankful.
Yoav