Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要保留当前的 GlBlendFunc,以便在我做一些工作后恢复它。看来这不是可以用 GLPushAttrib 保存的属性之一,还有其他类似的方法可以用来保存状态吗?
glGet和(和GL_BLEND_SRC,如果您不确定它是否已启用)。GL_BLEND_DSTglIsEnabled(GL_BLEND)
glGet
GL_BLEND_SRC
GL_BLEND_DST
glIsEnabled(GL_BLEND)