Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using the code below how can I make more letters? I want to spell out a word but not sure how to do it #include
using the code below how can I make more letters? I want to spell out a word but not sure how to do it
#include
#includevoid init(void) { /* Sets background color to white*/ glClearColor(1, 1, 1, 1); glClear(GL_COLOR_BUFFER_BIT); } void display(void) { glClearColor(1, 1, 1, 1); glColor3f(1.0, 0.0, 0.0); glBegin(GL_LINES); // // Start of the letter F glVertex2d(-0.8, 0.6); glVertex2d(-0.8, 0.9); // Top glVertex2d(-0.81, 0.9); glVertex2d(-0.65, 0.9); // Mid glVertex2d(-0.8, 0.75); glVertex2d(-0.65, 0.75); // glEnd(); glFlush(); } int main(int argc, char** argv) { int mode = GLUT_RGBA | GLUT_SINGLE; glutInit(&argc, argv); glutInitDisplayMode(mode); glutInitWindowPosition(100, 200); glutInitWindowSize(500, 500); glutCreateWindow("CSIT462 Computer Graphics"); init(); glutDisplayFunc(display); glutMainLoop(); }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started