The traditional way to do a camera preview with OpenGL on the front panel is to take two SurfaceViews (one for the camera the other for OpenGL) and lay them on top of each other. The problem is that laying SurfaceViews is not recommended:
http://groups.google.com/group/android-developers/browse_thread/thread/4850fe5c314a3dc6
So what are the alternatives? I considered the following:
Iβm not sure if this is even possible or makes sense, since it involves displaying the cameraβs preview on a surface mount and at the same time drawing OpenGL on the same surface. Is there any other reasonable alternative to solving the problem without using two SurfaceViews?
Thank!
, , opengl. Google Maps, , API .
, , , , bindtexture 20-30 , , .
: GL GlSurfaceView, EGL .
: OpenGL. OpenGL , - .
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); draw_bottom_layer(); glClear(GL_DEPTH_BUFFER_BIT | stencil_used_as_mask ? GL_STENCIL_BUFFER_BIT : 0 ); draw_mid_layer(); glClear(GL_DEPTH_BUFFER_BIT | stencil_used_as_mask ? GL_STENCIL_BUFFER_BIT : 0 ); draw_top_layer();
"" OpenGL-, . , , , _ * _ layer().
I haven't used it yet, so I don't know much about it, but you may find SurfaceTexture useful.
Source: https://habr.com/ru/post/1783505/More articles:tracking confidential data in memory from my WPF application and C # libraries - debuggingFree conformance checking for Entity Framework 4 - entity-framework-4Foreach & Arrays in PHP - phpFree matching entity forms - c #Installing a special assembly on a PC - iphoneASP.NET - custom validator with dynamic ErrorMessage - javascriptSpring Web stream without "Web" - springcode exchange between separate projects / repositories? - gitJAXB unmarshalling exception: unexpected element when spring webservice 1.0.4 - springhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1783510/how-to-use-an-eclipselink-converter-to-serialize-a-list-of-objects-to-json&usg=ALkJrhiAJDsprrJNdftvS8gsXb01ELHVrAAll Articles