Integrate WebGL with game code