LoginSignup
2
2

More than 5 years have passed since last update.

Android NDK C++ で OpenGL ES 3.0

Posted at

概要

Visual Studio 2017OpenGLES アプリケーション(Android, iOS)で、C++のみでNDKを使用してOpenGL ES 3.0を使用するメモ

環境

  • Visual Studio 2017
  • Visual C++ > クロスプラットフォーム > OpenGLES アプリケーション(Android, iOS)
  • android-23

内容

eglCreateContextのattribにEGL_CONTEXT_CLIENT_VERSIONを3と指定する

const EGLint ContextAttribList[] = {
    EGL_CONTEXT_CLIENT_VERSION, 3,
    EGL_NONE
};

context = eglCreateContext(display, config, EGL_NO_CONTEXT, ContextAttribList);
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2