public VertexShader(string path, ShaderProgram program)
        {
            Type = ShaderType.VertexShader;
            Shader = GL.CreateShader(Type);
            LoadAndCompileShader(path);

            AttachToProgram(program);
        }
 static GeneralGraphics()
 {
     SimulatedLighting = new ShaderProgram("data/effects/SimulatedLighting.vert",
         "data/effects/SimulatedLighting.frag");
     ExclamationTexture = new Texture("data/img/icons/exclamation.png");
     ExclamationMask = new Texture("data/img/icons/mask.png");
     BackgroundTexture = new Texture("data/img/bck.bmp");
     InfoBoxFrame = new Texture("data/img/icons/frame.png");
 }
 public void AttachToProgram(ShaderProgram program)
 {
     program.AttachShader(this);
 }
 public ButtonWobbleEffect(Button target)
 {
     Target = target;
     Program = new ShaderProgram("data/effects/WobbleVertex.vert", "data/effects/WobbleFragment.frag");
 }