Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/06/2008, 19:53
Tikitios
 
Fecha de Ingreso: mayo-2008
Ubicación: Chile
Mensajes: 189
Antigüedad: 16 años
Puntos: 3
Error Comenzando OpenGl

Me sale este error y no se por que:
C:\Documents and Settings\Owner\Desktop\Como programar en C\Makefile.win [Build Error] [Triangulo.exe] Error 1
Este es el codigo, (ya tengo las librerias nesesarias)
Código:
#include <GL/glut.h>

void reshape(int width, int height)
{
    glViewport(0, 0, width, height);
    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    glOrtho(-1, 1, -1, 1, -1, 1);
    glMatrixMode(GL_MODELVIEW);
}
 
void display()
{
    glClear(GL_COLOR_BUFFER_BIT);
    glColor3f(1,1,1);
    glLoadIdentity();
    glBegin(GL_TRIANGLES);
      glVertex3f(-1,-1,0);
      glVertex3f(1,-1,0);
      glVertex3f(0,1,0);
    glEnd();
    glFlush();
}
 
void init()
{
    glClearColor(0,0,0,0);
}
 
int main(int argc, char **argv)
{
    glutInit(&argc, argv);
    glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
    glutInitWindowPosition(50, 50);
    glutInitWindowSize(500, 500);
    glutCreateWindow("Hello OpenGL");
    init();
    glutDisplayFunc(display);
    glutReshapeFunc(reshape);
    glutMainLoop();
    return 0;
}
Otra cosa: ¿Que es el makefile?