1
0
Fork 0

Trying to stub in support for standard OpenGL.

This commit is contained in:
curt 1997-05-17 00:17:34 +00:00
parent 57c5b4ec95
commit cc15d5ad43
3 changed files with 30 additions and 13 deletions

View file

@ -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 <GL/gl.h>
#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.
*
*/

View file

@ -13,8 +13,13 @@
#include <stdlib.h>
#include <sys/time.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 <GL/gl.h>
/* #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.
*
*/

View file

@ -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.
*
*/