TriEngine  v0.0.16
General-purpose engine in C#/OpenGL
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
TriDevs.TriEngine.Graphics.Triangle Class Reference

A primitive 2D Triangle shape. More...

Inheritance diagram for TriDevs.TriEngine.Graphics.Triangle:
[legend]
Collaboration diagram for TriDevs.TriEngine.Graphics.Triangle:
[legend]

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...
 

Detailed Description

A primitive 2D Triangle shape.

Constructor & Destructor Documentation

TriDevs.TriEngine.Graphics.Triangle.Triangle ( Point< int >  top,
Point< int >  left,
Point< int >  right 
)

Creates a new 2D Triangle with the specified points.

Parameters
topCoordinate of the top edge of this triangle.
leftCoordinate of the lower left edge of this triangle.
rightCoordinate of the lower right edge of this triangle.
40  : base(new ushort[] {0, 1, 2},

The documentation for this class was generated from the following file: