Re: [Openrm-users] Initializing OpenRM
Brought to you by:
wbethel
From: Luke C. <lu...@ba...> - 2010-04-13 20:28:17
|
On Mon, Apr 12, 2010 at 1:37 PM, Wes Bethel <ewb...@r3...> wrote: > > Hi, > > This business of initializing OpenRM under Windows with 3rd party libraries is one of those boundary cases that I never really had the opportunity to test. Some guesses/answers below... I'm still investigating. This time I used RM_PIPE_WGL which forces OpenRM to create the OpenGL context. >> If in #3 above I assign hglrc as the OpenGL context to the pipe using >> rmPipeSetContext, then I experience intermittent crashes. I'm a little >> confused as to why this is. > > I'm wondering if there's a bug or some doc confusion with SDL...like maybe the window (hwnd) and OpenGL context are reversed somehow? > When using RM_PIPE_WGL, rmPipeSetContext has to be called or the window remains blank. However, rmPipeSetContext has to be called using hwnd. (I pass the result of CreateWindow to rmPipeSetContext). I fact, calling rmPipeSetContext using hwnd and not hglrc makes sense as I'm not sure how to get hold of hglrc when OpenRM creates the OpenGL context internally using RM_PIPE_WGL. - Luke |