GL
- Begin
- ClearWithSkybox
- Clear
- Color
- End
- InvalidateState
- LINES
- LoadIdentity
- LoadOrtho
- LoadPixelMatrix
- LoadProjectionMatrix
- modelview
- MultiTexCoord2
- MultiTexCoord3
- MultiTexCoord
- MultMatrix
- PopMatrix
- PushMatrix
- QUADS
- SetRevertBackfacing
- TexCoord2
- TexCoord3
- TexCoord
- TRIANGLE_STRIP
- TRIANGLES
- Vertex3
- Vertex
- Viewport
GL.InvalidateState 无效状态
static function InvalidateState () : void
Description描述
Invalidate the internally cached renderstates.
使内部渲染绘制状态无效。用来刷新内部绘制状态的统一缓存。这主要是编写本地代码时非常有用的插件,访问三维器件。
This invalidates any cached renderstates tied to the GL context. If for example a (native) plugin alters the renderstate settings then Unity's rendering architecture must be made aware of that to not assume the GL context is preserved.
使GL中的缓存渲染状态无效。例如,如果GL中的插件改变了渲染状态,Unity的渲染架构必须知道不采用GL中的渲染。
最后修改:2011年3月22日 Tuesday 15:04