Members
  • Content count

    4
  • Joined

  • Last visited

Community Reputation

97 Neutral

About

  • Rank
    Newbie
  1. thank you very much. I will do this with your help :) 
  2. ... >_> At this rate, how do you expect to complete the course?       You are right what u want to say.But you don't know why i don't understand nothing this lesson.I didn't go lessons because my family problems. I'm sorry buti just want a help thats all
  3. (Is this sentence complete?) What have you done / tried so far? dude..I'm new in this lesson in class.Just want golden rectangle codes likes    #include "stdafx.h" #include <glut.h> #include <math.h>   GLfloat G = (1 + (sqrt(float (5))))/2;   GLfloat gla1 = 0;  GLfloat glb1 = 0; GLfloat gla2;  GLfloat glb2;   bool flip = true;       void genNextRect(void) {         if (flip == false)         {                 gla2 = gla2;                 glb2 = gla2/G;                         }         else         {                 glb2 = glb2;                 gla2 = gla2/G;                         } }   void init(void) {         glClearColor(1.0, 1.0, 1.0, 0.0);         glMatrixMode(GL_PROJECTION);         glLoadIdentity();         glOrtho(0.0, 600.0, 0.0, 400.0, -15.0, 15.0);           glMatrixMode(GL_MODELVIEW);         glLoadIdentity(); }   void display() {         glClear(GL_COLOR_BUFFER_BIT); glLineWidth(4.0);                       gla2 = glutGet(GLUT_WINDOW_WIDTH) - 10;          glb2 = glutGet(GLUT_WINDOW_HEIGHT) - 10;                glBegin(GL_LINE_LOOP);                 glColor3f(0, 0, 1);                 glVertex3f(gla1, glb1, 0);                 glVertex3f(gla1, glb2, 0);                 glVertex3f(gla2, glb2, 0);                 glVertex3f(gla2, glb1, 0);         glEnd();         glutSwapBuffers(); }   void myReshape(GLsizei w, GLsizei h) {         glViewport(0,0,w,h);         glMatrixMode(GL_PROJECTION);         glLoadIdentity();         gluOrtho2D(0.0, w, 0.0, h); }   int main (int argc, char **argv) {         glutInit(&argc, argv);         glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);          glutInitWindowPosition(50, 50); glutInitWindowSize(600, 500);         glutCreateWindow("");         glutDisplayFunc(display);         glutReshapeFunc(myReshape); init();         glutMainLoop();     }
  4. Hello guys.I need help.Really.. I have homework about golden rectangle.I didn't know anything about this homework.If i won't do this i won't pass this lesson just help me please.    I need golden rectangle codes in opengl     I ATTACHED MY HOMEWORK