Need Code Coffee Mug Opengl Using C Provided Code Kettle Coffee Cup Attached Code Already Q37018470

I need to code a coffee mug in OpenGL using c++. I was providedthe code below but it is a kettle not a coffee cup. I have attachedboth the code I already have and the image I need it to look like.Any help would be greatly appreciated as I am stumped on thisone.

#include <GLglut.h>

GLfloat xRotated, yRotated, zRotated;
GLdouble size=1;

void display(void)
{

    glMatrixMode(GL_MODELVIEW);
    // clear the drawing buffer.
    glClear(GL_COLOR_BUFFER_BIT);
    // clear the identity matrix.
    glLoadIdentity();
    // traslate the draw by z = -4.0
    // Note this when you decrease z like -8.0the drawing will looks far , or smaller.
    glTranslatef(0.0,0.0,-2,5);

Red color used to draw.
    glColor3f(0.8, 0.2, 0.1);
    // changing in

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.