摘要: 环境:Win10, OpenGL+GLFW 首先需包含stb_image.h头文件 #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" 然后添加代码: // Create window with graphics context GLFWw 阅读全文
posted @ 2024-05-30 11:41 yinsua 阅读(365) 评论(0) 推荐(0)
摘要: 用法: int my_image_width = 0; int my_image_height = 0; GLuint my_image_texture = 0; bool ret = LoadTextureFromFile("background.png", &my_image_texture, 阅读全文
posted @ 2024-05-30 10:30 yinsua 阅读(240) 评论(0) 推荐(0)