Class: Meshes::Square
- Inherits:
-
Mesh
- Object
- Mesh
- Meshes::Square
- Defined in:
- lib/belts_opengl/assets/meshes/square.rb
Instance Method Summary collapse
-
#initialize ⇒ Square
constructor
A new instance of Square.
Constructor Details
#initialize ⇒ Square
Returns a new instance of Square.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/belts_opengl/assets/meshes/square.rb', line 3 def initialize vertices = [ -HU, HU, 0, *Vec3.back, -HU, -HU, 0, *Vec3.back, HU, -HU, 0, *Vec3.back, HU, HU, 0, *Vec3.back ] indexes = [ 0, 1, 2, 2, 3, 0 ] super(vertices, indexes) end |