al2950
20-05-2014 10:43:35
Hi
I have a slight issue with MyGui in that it takes a render window as a init parameter, and extracts the viewport from it. However I just implemented support for the oculus rift and therefore I never render direct to the render window back buffer. However MyGui expects there to be a viewport on the render window, if not it crashes. Would it not be better to pass MyGui the viewport you want to render to instead of passing it the render window? Or even better a list of viewports you want it to render to?
To get round this issue for now I have created a dummy camera & viewport on the render window, which is very hacky and I dont like!!
Cheers
Gus
I have a slight issue with MyGui in that it takes a render window as a init parameter, and extracts the viewport from it. However I just implemented support for the oculus rift and therefore I never render direct to the render window back buffer. However MyGui expects there to be a viewport on the render window, if not it crashes. Would it not be better to pass MyGui the viewport you want to render to instead of passing it the render window? Or even better a list of viewports you want it to render to?
To get round this issue for now I have created a dummy camera & viewport on the render window, which is very hacky and I dont like!!
Cheers
Gus