OpenGL과 GLFW, GLEW 설명과 마름모 생성 튜토리얼
OpenGL과 GLFW, GLEW 설명과 마름모 생성 튜토리얼 #include #include #include //OpenGL 확장팩 #include #include using namespace glm; GLFWwindow* window; void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) { if (key == GLFW_KEY_E && action == GLFW_PRESS) { printf("E Pressed\n"); } if (key == GLFW_KEY_Q && action == GLFW_RELEASE) { printf("Q Released\n"); } } int main() { // Initialise..
프로그래밍
2020. 8. 11. 10:17