#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <glut.h>
#define drawOneLine(x1,y1,x2,y2)glBegin(GL_LINES);\
glVertex2f((x1),(y1)); glVertex2f((x2),(y2)); glEnd();
void garis(){
glClear(GL_COLOR_BUFFER_BIT);
glLineWidth(10);
glEnable(GL_LINE_STIPPLE);
glLineStipple(1,0x00ff);
glBegin(GL_LINES);
glColor3f(1,1,0);
drawOneLine(-0.1,0.0,0.5,0.0);
glEnd();
glFlush();
}
int main(int argc, char** argv)
{
printf("saya mau buat garis gaes");
glutCreateWindow("Garis Suci");
glutDisplayFunc(garis);
glutMainLoop();
}