How can I use Multiple GLSurfaceView components in the same Layout?

后端 未结 6 1848
挽巷
挽巷 2020-12-29 23:07

I\'m writing an Information Visualization API for Android and ran into a problem trying to place two units of a custom GLSurfaceView into a Layout. The Custom <

6条回答
  •  没有蜡笔的小新
    2020-12-29 23:52

    You may may want to investigate overlaying/under-laying your models in the 'correct' area of the screen using a full screen GLSurfaceView. You may want to put together some sort of layout framework to make this simpler, or perhaps using multiple Viewports on the full screen GLSurfaceView. Haven't tried these in OpenGL ES, but generally either of these methods would be the used to render multiple views of the same or even many different models in a single application on a desktop system rather than using multiple GLContexts (if that is what is going on behind the scenes here).

提交回复
热议问题