[vbox-dev] Confusion about windowed OpenGL application coordinates in offscreen rendering mode.

Rūdolfs Bundulis rudolfs.bundulis at gmail.com
Sun May 14 22:55:31 UTC 2017


I am using crVBoxServerOutputRedirectSet and
crVBoxServerSetOffscreenRendering in my custom framebuffer to get the
offscreen rendered OpenGL data but have a little confusion about the
coordinates when running windowed OpenGL applications. Lets say I have a
640x480 window in the center of the desktop - in that case I get
0,0,640,480 in both callbacks - CRORGeometry and CRORVisibleRegion
(although I assume one of them should be offset to the real screen
coordinates, but I am not sure which one). Do I need to do any other
special calls like crVBoxServerSetScreenViewport to give some additional
info to the OpenGL service, and it seems that the renderspu.c contains
calls to CrVrScrCompositorEntryRegionsGet where it actually retrieves the
destination rectanges, but I don't see such stuff in the vrdp code, but
then again - maybe I am just missing something, like a call to tell the
service something it needs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20170515/11932b09/attachment.html>

More information about the vbox-dev mailing list