TriEngine
v0.0.16
General-purpose engine in C#/OpenGL
|
A primitive 2D Rectangle shape. More...
Public Member Functions | |
Rectangle (TriEngine.Rectangle rect) | |
Creates a new 2D Rectangle with the specified settings. 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 Rectangle shape.
TriDevs.TriEngine.Graphics.Rectangle.Rectangle | ( | TriEngine.Rectangle | rect | ) |
Creates a new 2D Rectangle with the specified settings.
rect | The rectangle defining the position and size of this primitive. |