コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Renderer"/> class.
 /// </summary>
 /// <param name="mesh">The Mesh of this Renderer.</param>
 /// <param name="sp">The Shaderprogram is used to initialize the Material of the Renderer.</param>
 public Renderer(Mesh mesh, ShaderProgram sp)
 {
     this.mesh = mesh;
     material = new Material(sp);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Renderer"/> class.
 /// </summary>
 /// <param name="geo">The geo.</param>
 /// <param name="shaderProgram">The shader program.</param>
 public Renderer(Geometry geo, ShaderProgram shaderProgram)
 {
     mesh = geo.ToMesh();
     material = new Material(shaderProgram);
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Renderer"/> class.
 /// </summary>
 /// <param name="sp">The Shaderprogram is used to initialize the Material<see cref="Material"/> of this Renderer.</param>
 public Renderer(ShaderProgram sp)
 {
     material = new Material(sp);
 }