Renamed handles.
This commit is contained in:
@@ -23,8 +23,7 @@ namespace RecrownedGTK.Graphics {
|
||||
/// <param name="textureAttribName">The name of the attribute for the texture's coordinate. Default is "aTexture".</param>
|
||||
/// <param name="colorAttribName">The name of the attribute for color mixture. Default is "aColor".</param>
|
||||
/// <returns>The built <see cref="RecrownedGTK.Graphics.VertexAttributesArrayHandle"/>.</returns>
|
||||
public static VertexAttributesArrayHandle CreateBasicVA(Shader shader = null, string positionAttribName = "aPosition", string textureAttribName = "aTexture", string colorAttribName = "aColor", string transformUnifName = "transform", Matrix4 transformMat = default(Matrix4)) {
|
||||
if (shader == null) shader = Shader.CreateBasicShader();
|
||||
public static VertexAttributesArrayHandle CreateBasicVA(ref Matrix4 transformMat, Shader shader = null, string positionAttribName = "aPosition", string textureAttribName = "aTexture", string colorAttribName = "aColor", string transformUnifName = "transform") {
|
||||
VertexAttributesArrayHandle vertexAttribs = new VertexAttributesArrayHandle();
|
||||
vertexAttribs.Bind();
|
||||
if (transformMat == default(Matrix4)) transformMat = Matrix4.Identity;
|
||||
|
||||
Reference in New Issue
Block a user