ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/util.h
(Generate patch)

Comparing libgender/util.h (file contents):
Revision 1.6 by root, Sun Oct 3 23:32:57 2004 UTC vs.
Revision 1.7 by root, Sun Oct 3 23:59:30 2004 UTC

1#ifndef UTIL_H 1#ifndef UTIL_H
2#define UTIL_H 2#define UTIL_H
3 3
4#include <GL/gl.h> 4#include <cmath>
5
6#include <vector> 5#include <vector>
7 6
8using namespace std; 7using namespace std;
8
9#include <GL/gl.h>
9 10
10typedef int soffs; // 32 bit 11typedef int soffs; // 32 bit
11typedef unsigned int uoffs; 12typedef unsigned int uoffs;
12#define OFFS_BITS 31 13#define OFFS_BITS 31
13#define SOFFS_MIN (soffs)-(1 << (OFFS_BITS - 1)) 14#define SOFFS_MIN (soffs)-(1 << (OFFS_BITS - 1))
141}; 142};
142 143
143struct entity_base; 144struct entity_base;
144struct draw_context; 145struct draw_context;
145 146
147extern struct timer {
148 static double now;
149 static double diff;
150
151 static void frame ();
152 timer ();
153} timer;
154
146#endif 155#endif
147 156

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines