This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "UNNAMED PROJECT".
The branch, master has been updated
via 4db5606797c628c29fdf9c97acf28988ac46edf9 (commit)
from 9e70727da97a2dc7919a759d5b937c8011461551 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4db5606797c628c29fdf9c97acf28988ac46edf9
Author: Lawrence Sebald <ljs...@us...>
Date: Sat Oct 25 10:59:28 2014 -0400
Add Jim Ursetto's old parallax specular patch.
-----------------------------------------------------------------------
Summary of changes:
include/context.h | 10 +++++++++-
src/context.c | 6 +++++-
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/include/context.h b/include/context.h
index e058291..844b310 100644
--- a/include/context.h
+++ b/include/context.h
@@ -70,6 +70,15 @@ void plx_cxt_fog(int type);
#define PLX_FOG_TABLE PVR_FOG_TABLE
/**
+ Set the specular highlight mode.
+ */
+void plx_cxt_specular(int type);
+
+/* Constants for specular modes */
+#define PLX_SPECULAR_NONE PVR_SPECULAR_DISABLE
+#define PLX_SPECULAR PVR_SPECULAR_ENABLE
+
+/**
Submit the selected context for rendering.
*/
void plx_cxt_send(int list);
@@ -77,4 +86,3 @@ void plx_cxt_send(int list);
__END_DECLS
#endif /* __PARALLAX_TEXTURE */
-
diff --git a/src/context.c b/src/context.c
index ed617a7..3b3de60 100644
--- a/src/context.c
+++ b/src/context.c
@@ -68,6 +68,11 @@ void plx_cxt_fog(int type) {
compile_cxts();
}
+void plx_cxt_specular(int type) {
+ cxt_working.gen.specular = type;
+ compile_cxts();
+}
+
void plx_cxt_send(int type) {
switch (type) {
case PVR_LIST_OP_POLY:
@@ -83,4 +88,3 @@ void plx_cxt_send(int type) {
assert_msg( 0, "List type not handled by plx_cxt_send" );
}
}
-
hooks/post-receive
--
UNNAMED PROJECT
|