summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-01-09 17:39:06 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-01-09 17:39:06 +0000
commit2d84ed83c421cb472f4fce5cdcd6191a49345f51 (patch)
tree7ed0554dc2f7448670e01a025d7e3602c53257ba /progs
parent92eddb0fd404624ca198f19e4088927701eec7f5 (diff)
include readtex.h
Diffstat (limited to 'progs')
-rw-r--r--progs/demos/drawpix.c3
-rw-r--r--progs/demos/fogcoord.c2
-rw-r--r--progs/demos/multiarb.c3
-rw-r--r--progs/demos/readpix.c1
-rw-r--r--progs/demos/teapot.c1
5 files changed, 6 insertions, 4 deletions
diff --git a/progs/demos/drawpix.c b/progs/demos/drawpix.c
index faa98ee2fb..82d32b0705 100644
--- a/progs/demos/drawpix.c
+++ b/progs/demos/drawpix.c
@@ -8,9 +8,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
+#include <string.h>
#include <GL/glut.h>
-#include "readtex.c"
+#include "readtex.h"
#define IMAGE_FILE "../images/girl.rgb"
diff --git a/progs/demos/fogcoord.c b/progs/demos/fogcoord.c
index f4f8199efa..19a15f05b8 100644
--- a/progs/demos/fogcoord.c
+++ b/progs/demos/fogcoord.c
@@ -13,7 +13,7 @@
#include <math.h>
#include <GL/glut.h>
-#include "readtex.c" /* the compulsory hack */
+#include "readtex.h"
#define TEXTURE_FILE "../images/bw.rgb"
diff --git a/progs/demos/multiarb.c b/progs/demos/multiarb.c
index 6fe35e7fdd..d963985c69 100644
--- a/progs/demos/multiarb.c
+++ b/progs/demos/multiarb.c
@@ -17,7 +17,7 @@
#include <string.h>
#include <GL/glut.h>
-#include "readtex.c" /* I know, this is a hack. */
+#include "readtex.h"
#define TEXTURE_1_FILE "../images/girl.rgb"
#define TEXTURE_2_FILE "../images/reflect.rgb"
@@ -36,7 +36,6 @@ static GLfloat drift_increment = 0.005;
static GLfloat Xrot = 20.0, Yrot = 30.0, Zrot = 0.0;
-
static void Idle( void )
{
if (Animate) {
diff --git a/progs/demos/readpix.c b/progs/demos/readpix.c
index 71ce972354..2dc92f93fc 100644
--- a/progs/demos/readpix.c
+++ b/progs/demos/readpix.c
@@ -9,6 +9,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
+#include <string.h>
#include <GL/glut.h>
#include "readtex.h"
diff --git a/progs/demos/teapot.c b/progs/demos/teapot.c
index 67a64f9937..5a50447227 100644
--- a/progs/demos/teapot.c
+++ b/progs/demos/teapot.c
@@ -10,6 +10,7 @@
#include <stdlib.h>
#include <math.h>
#include <time.h>
+#include <string.h>
#ifdef WIN32
#include <windows.h>