Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~46 People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for Hafte201

#include<GL/glut.h> #include<Math.h> #include<iostream> using namespace std; int direction=0; void drawRectangle(GLfloat x1,GLfloat y1,GLfloat x2,GLfloat y2) { glBegin(GL_LINES); glVertex2f(x1,y1); glVertex2f(x1,y2); glVertex2f(x1,y1); glVertex2f(x2,y1); glVertex2f(x2,y1); glVertex2f(x2,y2); glVertex2f(x1,y2); glVertex2f(x2,y2); glEnd(); } void drawQuadrants() { glLoadIdentity(); glBegin(GL_LINES); glVertex2f(0.0,-1.0); glVertex2f(0.0,1.0); glVertex2f(-1.0,0.0); glVertex2f(1.0,0.0); glEnd(); } void display() { glPushMatrix(); glLoadIdentity(); glClearColor(0.0f,0.0f,0.0f,0.0f); glClear(GL_COLOR_BUFFER_BIT); glDisable(GL_DEPTH_TEST); glColor3f(1.0f,1.0f,1.0f); drawQuadrants(); glPopMatrix(); if(direction==1) { …

0
46