| Current Path : /var/www/html/venkat/check3/file/cg2013/pawan/ |
| Current File : /var/www/html/venkat/check3/file/cg2013/pawan/1.1.cpp |
#include <GL/glut.h>
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
void point(float a, float b)
{
glColor3f(1.0,0.0,0.0);
glptSize(32);
glBegin(GL_ptS);
glVertex3f(a,b,0.0);
glEnd();
}
/*
void draw()
{
//background color
glClearColor(1.0,1.0,1.0,0);
glClear(GL_COLOR_BUFFER_BIT);
// draw
line(0.0,0.4,0.75,0.75, 10000);
glFlush();
}
*/
void draw()
{
glClearColor(1.0,1.0,1.0,1);
glClear(GL_COLOR_BUFFER_BIT);
point(0.0,0.0);
glFlush();
}
int main(int argc1, char **argv)
{
glutInit(&argc1, argv);
glutInitDisplayMode(GLUT_SINGLE|GLUT_RGB);
glutInitWindowSize(400,400);
glutInitWindowPosition(0, 0);
glutCreateWindow("pts");
glutDisplayFunc(draw);
glutMainLoop();
return 0;
}