Real-Time 3D Graphics with WebGL 2
上QQ阅读APP看书,第一时间看更新

State Machine

A WebGL context can be understood as a state machine: once you modify attributes, the modifications persist until later modifications. At any point, you can query the state of these attributes to determine the current state of your WebGL context. Let's analyze this behavior with an example.