darketernal
07-23-2002, 11:04 AM
Can anyone help me in setting up a OpenGL application in Borland 5.0 Enterprise Edition
* Please don't redirect me to some other site
* Please putting a simple additional h.header file and cpp.code for Borland C++ 5.0 enterprise in here,will mean a lot more to me.
Now, im sorry if i sound demanding, but let's not hesitate and show what it is all about.
#include <whateverYouNeed.h>
InitializeAWindowPlease();
glClearColor(0.0, 0.0, 0.0, 0.0);
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0, 1.0, 1.0);
glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0);
glBegin(GL_POLYGON);
glVertex3f(0.25, 0.25, 0.0);
glVertex3f(0.75, 0.25, 0.0);
glVertex3f(0.75, 0.75, 0.0);
glVertex3f(0.25, 0.75, 0.0);
glEnd();
glFlush();
UpdateTheWindowAndCheckForEvents();
}
Now the OpenGl book swears by high and dry that if i just include glut/glu/gl/windows.h etc that it will see a black screen with a white rectangle in it. But if i compile i will just get the standard output. I don't understand what i am doing wrong http://www.opengl.org/discussion_boards/ubb/frown.gif
It seems i need a Borland Basecode of some sort.
Any feedback would be greatly appreciated
* Please don't redirect me to some other site
* Please putting a simple additional h.header file and cpp.code for Borland C++ 5.0 enterprise in here,will mean a lot more to me.
Now, im sorry if i sound demanding, but let's not hesitate and show what it is all about.
#include <whateverYouNeed.h>
InitializeAWindowPlease();
glClearColor(0.0, 0.0, 0.0, 0.0);
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0, 1.0, 1.0);
glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0);
glBegin(GL_POLYGON);
glVertex3f(0.25, 0.25, 0.0);
glVertex3f(0.75, 0.25, 0.0);
glVertex3f(0.75, 0.75, 0.0);
glVertex3f(0.25, 0.75, 0.0);
glEnd();
glFlush();
UpdateTheWindowAndCheckForEvents();
}
Now the OpenGl book swears by high and dry that if i just include glut/glu/gl/windows.h etc that it will see a black screen with a white rectangle in it. But if i compile i will just get the standard output. I don't understand what i am doing wrong http://www.opengl.org/discussion_boards/ubb/frown.gif
It seems i need a Borland Basecode of some sort.
Any feedback would be greatly appreciated