24 lines
328 B
C#
24 lines
328 B
C#
using System;
|
|
|
|
using OpenTK;
|
|
using org.budnhead.graphics;
|
|
|
|
namespace org.budnhead.graphics.primitives
|
|
{
|
|
public class Triangle : GLObject
|
|
{
|
|
public Triangle(Vector3 a,Vector3 b,Vector3 c)
|
|
:base(3)
|
|
{
|
|
normalsEnabled = true;
|
|
|
|
setTriangle(0, a, b, c);
|
|
setColor(new Vector4(0, 1, 0, 1));
|
|
|
|
updateGL();
|
|
|
|
|
|
}
|
|
}
|
|
}
|