public DrawColor ( float r, float g, float b, float a = 1 ) : void | ||
r | float | |
g | float | |
b | float | |
a | float | |
리턴 | void |
public virtual void DrawColor(float r, float g, float b, float a = 1)
{
this.shader.SetUniform("color", new Vector4(r, g, b, a));
this.Draw();
// always reset the color
this.shader.SetUniform("color", Vector4.Zero);
}
Mesh::DrawColor ( int r, int g, int b, int a = 255 ) : void |