Exemplo n.º 1
0
        void ApplyShader <T>(ref T[] array, VertexShaderHandler <T> shader)
        {
            if (array == null)
            {
                array = new T[Glyphs.Length];
            }

            for (int i = 0; i < Glyphs.Length; i++)
            {
                array[i] = shader(Glyphs[i]);
            }
        }
Exemplo n.º 2
0
 public void ApplyTextureShader(VertexShaderHandler <GlyphTexCoords> textureShader)
 {
     ApplyShader(ref TextureCoordinates, textureShader);
 }
Exemplo n.º 3
0
 public void ApplyColorShader(VertexShaderHandler <GlyphColors> colorShader)
 {
     ApplyShader(ref Colors, colorShader);
 }