2023-09-01から1ヶ月間の記事一覧

Raspberrypi 4でOpenGLES(ウィンドウの表示)

開発環境 Raspberry Pi 4 8GB Raspberry Pi OS(32bit) 環境構築 ライブラリのインストール sudo apt install libgles2-mesa-dev libegl1-mesa-dev xorg-dev ソースコード main.cpp #include <X11/Xlib.h> #include <X11/Xutil.h> #include <GLES2/gl2.h> #include <EGL/egl.h> #include <EGL/eglext.h> #include <iostream> #include <unistd.h> b</unistd.h></iostream></egl/eglext.h></egl/egl.h></gles2/gl2.h></x11/xutil.h></x11/xlib.h>…