Multi-thread + OpenGL on win32
Hello, I have a beginner question wanna to ask:
Can i do multi-thread with OpenGL (on win32, win9x platform) ?
I''ve done hWnd=CreateWindowEX(...) , GetDC(hWnd), setpixelformat, wglMakeCurrent( hDC, win_stats.hRC ) in the parent thread. And then i put the gl_ stuff in the child thread. But what i get is a black window, with no object in it (where it should have a triangle object).
So, where i got wrong? Should i CreateWindow in the child thread instead of the parent? or I can''t do that at all? or ... ?
Please help me, i''m just a beginner...
Thanks very much for any help~~~ (^_^)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement