Difference between revisions of "Render Part A Assignment"
Jump to navigation
Jump to search
(→OpenGL) |
(→GLUT) |
||
Line 23: | Line 23: | ||
=GLUT= | =GLUT= | ||
− | : [https://www.opengl.org/resources/libraries/glut/spec3/node76. | + | : [https://www.opengl.org/resources/libraries/glut/spec3/node76.html glutBitmapCharacter] |
=Code to Investigate= | =Code to Investigate= |
Revision as of 01:48, 12 July 2019
Contents
OpenGL
GLUT
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: | ||
Quadratic (Third Order) Curve: | ||
Fourth Order Curve: |