摘要:
环境:Win10, OpenGL+GLFW 首先需包含stb_image.h头文件 #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" 然后添加代码: // Create window with graphics context GLFWw 阅读全文
摘要:
用法: int my_image_width = 0; int my_image_height = 0; GLuint my_image_texture = 0; bool ret = LoadTextureFromFile("background.png", &my_image_texture, 阅读全文