• 2024-09-05ndk集成stb_image.h
    一、概述使用步骤:1.在ndk入口cpp中加入一个宏。ps:最好加最上面#include<jni.h>#include<string>#defineSTB_IMAGE_IMPLEMENTATION2.在使用的时候导入头文件//导入stb_image头文件#include"stb_image.h" 二、代码示例stbi_load
  • 2024-05-30ImGui设置程序图标
    环境:Win10,OpenGL+GLFW首先需包含stb_image.h头文件#defineSTB_IMAGE_IMPLEMENTATION#include"stb_image.h"然后添加代码://CreatewindowwithgraphicscontextGLFWwindow*window=glfwCreateWindow(1280,720,title,NULL,NULL);if(window==NULL