static TextExtensions() { if (textShader == null) { textShader = new Shader(vshader, fshader); textShader.Compile(); } }
static SpriteBatch() { if (spriteShader == null) { spriteShader = new Shader(vshader, fshader); spriteShader.Compile(); } // Create the default camera for the first time Default_Camera_Resize_Hook(null, EventArgs.Empty); Game.Resize += Default_Camera_Resize_Hook; }