XOpenGL入门教程2:版本信息
系列索引:XOpenGL入门教程索引
和上一篇一样的函数处理流程图
flowchart TB
  D --> initializeEGL
  E --> mainloop
  F --> destroyEGL
  subgraph init
    direction TB
    A[XOpenDisplay] --> B[XCreateSimpleWindow]
    B --> C[XMapWindow]
    C --> D[initializeEGL]
    D --> E[mainloop]
    E --> F[destroyEGL]
    F --> G[XDestroyWindow]
    G --> H[XCloseDisplay]
  end
  subgraph initializeEGL
    direction TB
    I[eglGetDisplay] --> J[eglInitialize]
    J --> K[eglChooseConfig]
    K --> L[eglCreateContext]
    L --> M[eglCreateWindowSurface]
    M --> N[eglMakeCurrent]
  end
  subgraph mainloop
    direction TB
    O[XPending] --> P[eglSwapBuffers]
  end
  subgraph destroyEGL
    direction TB
    Q[eglDestroyContext] --> R[eglDestroySurface]
    R --> S[eglTerminate]
  end
核心
界面显示部分和之前一样,版本信息显示要在EGL初始化之后。
1  |  | 
显示
编译运行,输出为
1  |  | 
XOpenGL入门教程2:版本信息
https://blog.jackeylea.com/xopengl/xopengl-version/

