【C++/OpenGL】NO.4 イベント処理(Callback関数)一覧

プログラム 実行結果 解説 プログラム サンプルプログラムです。このプログラムにイベント処理の内容を付け加えただけです #include <GL/glew.h> #include <GLFW/glfw3.h> #include <Windows.h> #include <stdio.h> #include <iostream> GLint makeShader() { const char* vertex_shader = "#version 400\n" "in vec3 vp;" "void main() {" " gl_Position = vec4(vp, 1.0);" "}"; c</iostream></stdio.h></windows.h></glfw/glfw3.h></gl/glew.h>…