Inheritance: ShaderBase
Example #1
0
 private void InitializeShaderProgram()
 {
     Shader = new SpriteShader(Layer.DrawEngine2d);
 }
Example #2
0
 private void CleanupShaderProgram()
 {
     Shader.Dispose();
     Shader = null;
 }
Example #3
0
 private void InitializeShaderProgram()
 {
     Shader = DrawEngine2d.SpriteShader;
 }
Example #4
0
 private void CleanupShaderProgram()
 {
     Shader = null;
 }
Example #5
0
 //TODO: Rework this. Hardcode common shaders and also turn it into a list so other shaders can be added.
 private void InitializeShaders()
 {
     SpriteShader = new SpriteShader(this);
     FontShader = new FontShader(this);
 }
Example #6
0
        private void CleanupShaders()
        {
            SpriteShader.Dispose();
            SpriteShader = null;

            FontShader.Dispose();
            FontShader = null;
        }