-2

I would like to use an accelerated 2d Graphics (OpenGL) together with standard android controls widgets in order to interact with objects in OpenGL.

RayPicking is already implemented. Though I can select the objects.

But how does it work with views etc in order to use the standard controls of Android such as button, slider etc.?

genpfault
  • 51,148
  • 11
  • 85
  • 139
Pamp
  • 69
  • 8

1 Answers1

0

OpenGL doesn't really interact at all with android widgets.

If you want to utilize both, you can use a FrameLayout and layout android widgets overtop of a GLSurfaceView, but they don't really interact. OpenGL has no idea about the widgets, and the widgets aren't controlled in any way by OpenGL.

Tim
  • 35,413
  • 11
  • 95
  • 121