Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 127 → Rev 128

/shark/trunk/ports/mesa/src-glut.dos/state.c
30,41 → 30,15
#include "GL/glut.h"
#include "internal.h"
 
 
#define FREQUENCY 100
 
 
static int timer_installed=0; //SHARK
static volatile int ticks;
 
static void ticks_timer (void *p)
{
(void)p;
ticks++;
} ENDOFUNC(ticks_timer)
 
 
 
int APIENTRY glutGet (GLenum type)
{
/* switch (type) { //SHARK
case GLUT_WINDOW_RGBA:
return 1;
case GLUT_ELAPSED_TIME:
if (!timer_installed) {
timer_installed = !timer_installed;
LOCKDATA(ticks);
LOCKFUNC(ticks_timer);
pc_install_int(ticks_timer, NULL, FREQUENCY);
}
return ticks*1000/FREQUENCY;
default:
return 0;
}*/
return 0;
}
 
 
int APIENTRY glutDeviceGet (GLenum type)
{
return 0;
return 0;
}
/shark/trunk/ports/mesa/src-glu/glu.c
1,4 → 1,4
/* $Id: glu.c,v 1.1 2003-02-28 11:42:07 pj Exp $ */
/* $Id: glu.c,v 1.2 2003-04-23 09:05:11 giacomo Exp $ */
 
/*
* Mesa 3-D graphics library
398,20 → 398,8
{
assert(extName);
assert(extString);
{
const int len = strlen((const char *) extName);
const char *start = (const char *) extString;
 
/*while (1) {
const char *c = strstr(start, (const char *) extName);
if (!c)
return GL_FALSE;
 
if ((c == start || c[-1] == ' ') && (c[len] == ' ' || c[len] == 0))
return GL_TRUE;
 
start = c + len;
}*/ return GL_TRUE;
}
return GL_TRUE;
}
#endif