gcode-mirror / earth-api-samples

Automatically exported from code.google.com/p/earth-api-samples
0 stars 0 forks source link

Provide an AfterDraw callback to draw custom OpenGL objects on the globe display #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
- What should this feature enhancement do?

Provide a callback ("AfterDraw") after Google has finished drawing its 
frame for a developer to be able to draw in the current OpenGL context.

- Are there any known workarounds that produce the similar results?

Using the COM API which connects to Google Earth the desktop application, 
hooking of SwapBuffers can enable access to the current OpenGL Context, 
thus allowing objects to be drawn on top of display. Please note, we are 
not interested in manipulating any of the current Google UI elements or 
imagery display, only in augmenting the display with custom UI components.

This workaround does not work with the GE plugin even when it is hosted in 
a C# application.

Original issue reported on code.google.com by jlama...@gmail.com on 20 Oct 2008 at 6:13

GoogleCodeExporter commented 9 years ago
This is not a use case that we will be supporting. If you'd like to draw over 
the plugin, you'll need to composite manually or use the various overlays 
exposed by the API.

Original comment by bcke...@google.com on 28 Jun 2011 at 9:15