Exemplo n.º 1
0
 public void CreateShaderPrograms(Action callback)
 {
     _colorShaderProgram   = new ColorShaderProgram(_vColorShaderName, _fColorShaderName);
     _textureShaderProgram = new TextureShaderProgram(_vTextureShaderName, _fTextureShaderName);
     _spriteShaderProgram  = new SpriteShaderProgram(_vTextureShaderName, _fTextureShaderName);
     callback();
 }
Exemplo n.º 2
0
 public Renderable()
 {
     _shaderProgram = DefaultResources.Instance.ColorShaderProgram;
     Color          = Color4.White;
     XForm          = new Transform();
 }