- Real-Time 3D Graphics with WebGL 2
- Farhad Ghayour Diego Cantor
- 50字
- 2021-06-10 19:42:51
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.