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
~101 People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for gali01

#include <stdafx.h> #include <stdlib.h> #include <windows.h> #include <GL/glut.h> using namespace std; int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0; int rumus(int x1, int y1, int x2, int y2, int x){ int y=(x*(y2-y1)+x2*y1-x1*y2)/(x2-x1); return y; } void tampilkan() { glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glClearColor(0,0,0,0); glLoadIdentity(); glBegin(GL_QUADS); glColor3f(0.0,0.0,1.0); glVertex2d(2,2); glVertex2d(5,2); glVertex2d(8+c,11); glVertex2d(7+d,rumus(7,14,2,11,7+d)); glEnd(); glBegin(GL_QUADS); glVertex2d(7+e,rumus(7,14,5,11,7+e)); glVertex2d(9+f,rumus(9,14,2,11,9+f)); glVertex2d(14+g,rumus(14,2,2,14,14+g)); glVertex2d(11+h,rumus(11,2,5,14,11+h)); …

Member Avatar for m4ster_r0shi
0
101