Render Part A Assignment
Revision as of 15:21, 10 July 2019 by Dennis.cosgrove (talk | contribs)
Contents
OpenGL
Code to Investigate
ruby/examples/cavalcade_of_graphics.rb
Code to Implement
Components
Each of the renderable components has its own file in the ruby/render/assignment directory.
Equilateral Triangle
Rectangle
Ellipse
Chord
Image
Text
Bézier Curve
Point2
To support Bézier curves you will want to implement the point2.rb. You may wish to use Ruby's convenient Struct construct.
You should be able to construct a Point2 with an x and a y and be able to access those values.
Component
Quadratic (Second Order) Curve: