[Openrm-users] Initializing OpenRM
Brought to you by:
wbethel
|
From: Luke C. <lu...@ba...> - 2010-04-12 18:59:02
|
Hi Wes, I have a question regarding the steps necessary to initialize OpenRM in win32 using RM_PIPE_NOPLATFORM, specifically Page 367 "Overview of RM Initialization", step 3. I'm trying to figure out why everything works without me having to set the OpenGL context using rmPipeSetContext. These are the steps my code performs; #1 - Initialize OpenRM #2 - Create a new pipe #3 - Use the SDL library to create a new window. Internally SDL performs wglCreateContext, and wglMakeCurrent. I do not assign the OpenGL context to the pipe. #4 - Use rmPipeSetWindow to assign the window handle and dimensions to the pipe. #5 - Use rmPipeMakeCurrent to make the OpenGL context current. If in #3 above I don't assign the OpenGL context to the pipe using rmPipeSetContext, then everything works. If in #3 above I assign a null pointer as theOpenGL context to the pipe using rmPipeSetContext, then everything works. If in #3 above I assign hwnd as the OpenGL context to the pipe using rmPipeSetContext, then everything works. 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. So it seems that it is not necessary to use rmPipeSetContext with RM_PIPE_NOPLATFORM, is this correct? - Luke |