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

A primitive 2D Rectangle shape. More...

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

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

Detailed Description

A primitive 2D Rectangle shape.

Constructor & Destructor Documentation

TriDevs.TriEngine.Graphics.Rectangle.Rectangle ( TriEngine.Rectangle  rect)

Creates a new 2D Rectangle with the specified settings.

Parameters
rectThe rectangle defining the position and size of this primitive.
38  : base(new ushort[]
39  {
40  // First triangle
41  0, 1, 2,
42 
43  // Second triangle
44  0, 2, 3
45  },

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