TriEngine
v0.0.16
General-purpose engine in C#/OpenGL
|
A primitive 2D Triangle shape. More...
Public Member Functions | |
Triangle (Point< int > top, Point< int > left, Point< int > right) | |
Creates a new 2D Triangle with the specified points. More... | |
Public Member Functions inherited from TriDevs.TriEngine.Graphics.Primitive | |
void | Draw () |
Draw the object to screen. More... | |
void | Dispose () |
Additional Inherited Members | |
Protected Member Functions inherited from TriDevs.TriEngine.Graphics.Primitive | |
Primitive (ushort[] indices, Vector3[] vectors, Color[] colors=null) | |
Primitive (ushort[] indices, float[] vertices, Color[] colors=null) | |
Protected Attributes inherited from TriDevs.TriEngine.Graphics.Primitive | |
uint[] | Ids |
uint | ColorId |
ushort[] | Indices |
float[] | Vertices |
int[] | Colors |
Properties inherited from TriDevs.TriEngine.Graphics.Primitive | |
uint | IndicesID [get] |
Indices buffer ID assigned to this primitive by GL.BindBuffer. More... | |
uint | VerticesID [get] |
Vertices buffer ID assigned to this primitive by GL.BindBuffer. More... | |
uint | ColorID [get] |
Color buffer ID assigned to this primitive by GL.BindBuffer. More... | |
A primitive 2D Triangle shape.
TriDevs.TriEngine.Graphics.Triangle.Triangle | ( | Point< int > | top, |
Point< int > | left, | ||
Point< int > | right | ||
) |
Creates a new 2D Triangle with the specified points.
top | Coordinate of the top edge of this triangle. |
left | Coordinate of the lower left edge of this triangle. |
right | Coordinate of the lower right edge of this triangle. |