summaryrefslogtreecommitdiffstats
path: root/progs/vp
diff options
context:
space:
mode:
Diffstat (limited to 'progs/vp')
-rw-r--r--progs/vp/Makefile6
-rw-r--r--progs/vp/exp.txt9
-rw-r--r--progs/vp/log.txt9
-rw-r--r--progs/vp/vp-tris.c3
4 files changed, 15 insertions, 12 deletions
diff --git a/progs/vp/Makefile b/progs/vp/Makefile
index 28d63237a45..41d025c5746 100644
--- a/progs/vp/Makefile
+++ b/progs/vp/Makefile
@@ -26,13 +26,13 @@ INCLUDES = -I. -I$(TOP)/include -I../samples
.SUFFIXES: .c
.c:
- $(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
+ $(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
.c.o:
- $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
+ $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
.S.o:
- $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
+ $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
##### TARGETS #####
diff --git a/progs/vp/exp.txt b/progs/vp/exp.txt
index 601aae7d715..53ce71db965 100644
--- a/progs/vp/exp.txt
+++ b/progs/vp/exp.txt
@@ -1,5 +1,6 @@
-!!VP1.0
-EXP R0, v[COL0].x;
-ADD o[COL0], R0.z, -R0.w;
-MOV o[HPOS], v[OPOS];
+!!ARBvp1.0
+TEMP R0;
+EXP R0, vertex.color.x;
+SUB result.color, R0.z, R0.w;
+MOV result.position, vertex.position;
END
diff --git a/progs/vp/log.txt b/progs/vp/log.txt
index 9b042684335..6b4e94ed0ed 100644
--- a/progs/vp/log.txt
+++ b/progs/vp/log.txt
@@ -1,6 +1,7 @@
-!!VP1.0
-ADD R0, v[COL0], v[COL0];
+!!ARBvp1.0
+TEMP R0;
+ADD R0, vertex.color, vertex.color;
ADD R0, R0, R0;
-LOG o[COL0], R0.x;
-MOV o[HPOS], v[OPOS];
+LOG result.color, R0.x;
+MOV result.position, vertex.position;
END
diff --git a/progs/vp/vp-tris.c b/progs/vp/vp-tris.c
index 58014dd48de..e1ddb2e14d2 100644
--- a/progs/vp/vp-tris.c
+++ b/progs/vp/vp-tris.c
@@ -5,7 +5,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
-#include <GL/glut.h>
#ifndef WIN32
#include <unistd.h>
@@ -15,6 +14,8 @@
#include <GL/glext.h>
#endif
+#include <GL/glut.h>
+
#ifdef WIN32
static PFNGLBINDPROGRAMARBPROC glBindProgramARB = NULL;
static PFNGLGENPROGRAMSARBPROC glGenProgramsARB = NULL;