Esempio n. 1
0
        public static void SetViewport(int x, int y, int width, int height)
        {
            GL.Viewport(x, y, width, height);

            //Bind basic shader program
            TextureProgram.Bind();
            //Initialize projection
            TextureProgram.SetProjection(Matrix4.CreateOrthographicOffCenter(0, width, height, 0, 1, -1));
            TextureProgram.UpdateProjection();
        }
Esempio n. 2
0
        public static void Exit()
        {
            Picker.Dispose();
            MenuBack.Dispose();

            tileCache.Clear();
            objectCache.Clear();
            itemCache.Clear();
            statusCache.Clear();
            spellCache.Clear();
            mugshotCache.Clear();
            spriteCache.Clear();

            BlankTexture.Dispose();
            ErrorTexture.Dispose();

            SingleFont.Dispose();

            TextureProgram.Dispose();
        }
Esempio n. 3
0
 public static void SetTextureProgram(TextureProgram program)
 {
     //Set class rendering program
     mTextureProgram = program;
 }
Esempio n. 4
0
 public static void SetTextureProgram( TextureProgram program )
 {
     //Set class rendering program
     mTextureProgram = program;
 }