texImage2D 中边框的用途是什么?
What is the purpose of border in texImage2D?
docs for texImage2D() 关于 border
的陈述:
A GLint specifying the width of the border. Must be 0.
如果边框必须为0...这个参数的作用是什么?
正如 visibleman 所提到的,它主要是旧的已弃用的 OpenGL 遗留下来的。它在现代 OpenGL 中已弃用
来自 OpenGL 4.5 spec 部分 8.5.3
An INVALID_VALUE error is generated if border is non-zero.
docs for texImage2D() 关于 border
的陈述:
A GLint specifying the width of the border. Must be 0.
如果边框必须为0...这个参数的作用是什么?
正如 visibleman 所提到的,它主要是旧的已弃用的 OpenGL 遗留下来的。它在现代 OpenGL 中已弃用
来自 OpenGL 4.5 spec 部分 8.5.3
An INVALID_VALUE error is generated if border is non-zero.