How to get an EGL display/context to a specific GLSurfaceView

后端 未结 1 1349
温柔的废话
温柔的废话 2021-02-06 15:57

This is a follow up to my original Question, which was probably too broad (whereas this one is probably too specific but maybe I can apply Newton\'s Method).

My specifi

1条回答
  •  迷失自我
    2021-02-06 16:27

    There is nothing Android specific to EGL really. When you create an EGL window surface (eglCreateWindowSurface) you give it a Surface or a SurfaceHolder (which a SurfaceView will give you.) This means you can pretty much copy/paste an EGL example from C, C++ or any other language and have it work on Android in minutes. That's how I do it ;-)

    Update: I just read your other message. You need EGL to initialize a GLES context.

    0 讨论(0)
提交回复
热议问题