summaryrefslogtreecommitdiff
path: root/src/sad-node.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-10-20 23:23:40 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-10-20 23:23:40 -0700
commit624b0a06edf7114950476a8ce79fff9927b1fc62 (patch)
tree159c9570df9c0bfdafe8f04c6b039fa8290b09a8 /src/sad-node.h
parent90ce0330f586dd7c0114beed6775ea6d47cf7c67 (diff)
pig: show sad face on shader errors
Introduces sad-node.[ch] implementing a simple sad face shader node, normally inactive but made active when the shader files fail to reload.
Diffstat (limited to 'src/sad-node.h')
-rw-r--r--src/sad-node.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/sad-node.h b/src/sad-node.h
new file mode 100644
index 0000000..8bbfd9c
--- /dev/null
+++ b/src/sad-node.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2018-2020 - Vito Caputo - <vcaputo@pengaru.com>
+ *
+ * This program is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 3 as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _SAD_NODE_H
+#define _SAD_NODE_H
+
+typedef struct stage_t stage_t;
+typedef struct stage_conf_t stage_conf_t;
+typedef struct m4f_t m4f_t;
+typedef struct v3f_t v3f_t;
+
+stage_t * sad_node_new(const stage_conf_t *conf, const m4f_t *model_x, const v3f_t *color);
+
+#endif
© All Rights Reserved