Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
stbi为什么使用了
STB_IMAGE_WRITE_IMPLEMENTATION
和'INCLUDE_STB_IMAGE_WRITE_H'这两个宏进行条件编译?我个人理解,这是一种“解耦”的设计,提高编译速度、减少可执行文件大小----试想一下,如果不通过宏控制函数定义,每个#include <stb_image_write.h>都要编译一遍(虽然函数是static的,可重复定义),每个都要编译一遍,会增加编译时间,同时增加可执行文件的体积。这个有些像是PIMPL的思想。其他的,就是根据小彭老师课程内容,完成的常规的操作。