示例#1
0
        public static void LoadEssentials(ContentManager content)
        {
            if (EssentialsLoaded)
            {
                return;
            }

            Fonts.LoadFontContent(content);
            Cursors.LoadCursorContent(content);
            Pixel = content.Load <Texture2D>("Images/pixel");

            ScissorRasterizerState = new RasterizerState {
                ScissorTestEnable = true
            };
            SamplerState = SamplerState.AnisotropicClamp;

            EssentialsLoaded = true;
        }