From: curt Date: Sat, 17 May 1997 00:17:34 +0000 (+0000) Subject: Trying to stub in support for standard OpenGL. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cc15d5ad436d1a34007323fe101de5ad6a1e39a4;p=flightgear.git Trying to stub in support for standard OpenGL. --- diff --git a/Main/gltkkey.h b/Main/gltkkey.h index 4c055836b..51bb7ebac 100644 --- a/Main/gltkkey.h +++ b/Main/gltkkey.h @@ -12,9 +12,12 @@ #define TKGLKEY_H -/* assumes -I/usr/include/mesa in compile command */ -#include "gltk.h" - +#ifdef MESA + /* assumes -I/usr/include/mesa in compile command */ + #include "gltk.h" +#else + #include +#endif /* Handle keyboard events */ GLenum key(int k, GLenum mask); @@ -24,7 +27,10 @@ GLenum key(int k, GLenum mask); /* $Log$ -/* Revision 1.1 1997/05/16 16:05:53 curt -/* Initial revision. +/* Revision 1.2 1997/05/17 00:17:34 curt +/* Trying to stub in support for standard OpenGL. /* + * Revision 1.1 1997/05/16 16:05:53 curt + * Initial revision. + * */ diff --git a/Main/gltkmain.c b/Main/gltkmain.c index 4214b585c..49f55a3d2 100644 --- a/Main/gltkmain.c +++ b/Main/gltkmain.c @@ -13,8 +13,13 @@ #include #include -/* assumes -I/usr/include/mesa in compile command */ -#include "gltk.h" +#ifdef MESA + /* assumes -I/usr/include/mesa in compile command */ + #include "gltk.h" +#else + #include +/* #include "aux.h" */ +#endif #include "gltkkey.h" #include "../aircraft/aircraft.h" @@ -207,7 +212,7 @@ int main( int argc, char *argv[] ) { parse_scenery(argv[1]); /* Define initial window size */ - tkInitPosition(0, 0, 400, 400); + tkInitPosition(0, 0, 640, 400); /* Define Display Parameters */ tkInitDisplayMode( TK_RGB | TK_DEPTH | TK_DOUBLE | TK_DIRECT ); @@ -249,7 +254,10 @@ int main( int argc, char *argv[] ) { /* $Log$ -/* Revision 1.1 1997/05/16 16:05:52 curt -/* Initial revision. +/* Revision 1.2 1997/05/17 00:17:34 curt +/* Trying to stub in support for standard OpenGL. /* + * Revision 1.1 1997/05/16 16:05:52 curt + * Initial revision. + * */ diff --git a/Main/mesh2ogl.c b/Main/mesh2ogl.c index 90a8b8dcf..5c6b3ad9b 100644 --- a/Main/mesh2ogl.c +++ b/Main/mesh2ogl.c @@ -40,7 +40,7 @@ GLint mesh_to_ogl(struct mesh *m) { int i, j, istep, jstep, iend, jend; float temp; - istep = jstep = 50; /* Detail level 1 -- 1200 ... */ + istep = jstep = 150; /* Detail level 1 -- 1200 ... */ mesh = glGenLists(1); glNewList(mesh, GL_COMPILE); @@ -109,7 +109,10 @@ GLint mesh_to_ogl(struct mesh *m) { /* $Log$ -/* Revision 1.1 1997/05/16 16:05:52 curt -/* Initial revision. +/* Revision 1.2 1997/05/17 00:17:35 curt +/* Trying to stub in support for standard OpenGL. /* + * Revision 1.1 1997/05/16 16:05:52 curt + * Initial revision. + * */