/tutorial/vision/opengl/NeHe/lesson02/triangle.e
http://github.com/tybor/Liberty · Specman e · 25 lines · 20 code · 5 blank · 0 comment · 0 complexity · 1e568fbe16b77abf0840e039055fe9ca MD5 · raw file
- class TRIANGLE
- inherit
- GL_OBJECT
- redefine draw
- end
- creation
- make_with_position
- feature{ANY}
- build is
- do
- end
- draw is
- do
- smart_gl.begin_triangles
- smart_gl.vertex(0, 1, 0)
- smart_gl.vertex(-1, -1, 0)
- smart_gl.vertex(1, -1, 0)
- smart_gl.end_primitive
- end
-
- end