Question: C++ Get OpenGL up and Running Create a new project in Dev C++ using multimedia->OPENGL Compile and Run the project which should show rotating triangle
C++
Get OpenGL up and Running
Create a new project in Dev C++ using multimedia->OPENGL
Compile and Run the project which should show rotating triangle
Triangle {add some functions to draw with} (7.5pt)Add the following drawLine() function
// ######### drawLine() ####### void drawLine(float x1, float y1, float x2, float y2) { glBegin(GL_LINES); glVertex2f(x1,y1); glVertex2f(x2,y2); glEnd(); } Use the drawLine()function to draw the three sides of an ISOSCELES triangle that is not "rotating"
Draw each of the lines in a specific different color
Plot a Function-
Using points plot 4 full cycles of the cosine function
Draw the 0 axis x or horizontal center line
Draw the 0 axis y or vertical center line
set the background color, 0 axis lines and drawn function to 3 different colors
Draw a Picture-
Draw a primitive Festive Holiday (choose your holiday), etc G rated!!.
a minimum of 4 colors in total should be used
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
