hw01
hw01 copied to clipboard
finish hw01
步骤
- 添加一个stb_image_write.cpp文件
- 修改stbiw目录下的CMakeLists文件(静态or动态编译成stbiw库)
- 添加一个run.sh脚本执行cmake构建任务
疑问 (求解答)
- stb_image_write.h中既然已经实现了函数定义,为什么不直接使用.hpp后缀,反而要重新定义一个stb_image_write.cpp?
- 为什么要在stb_image_write.cpp中定义宏?