[retro-gtk/wip/aplazas/gl-display: 2/2] truc



commit c79fa27198c6d1321e7c05fc8e1fe163cadeef2f
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Mon Oct 16 19:23:12 2017 +0200

    truc

 retro-gtk/glarea-vertex.glsl   |   13 +++++++++++++
 retro-gtk/glarea.gresource.xml |    2 --
 2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/retro-gtk/glarea-vertex.glsl b/retro-gtk/glarea-vertex.glsl
new file mode 100644
index 0000000..83dda48
--- /dev/null
+++ b/retro-gtk/glarea-vertex.glsl
@@ -0,0 +1,13 @@
+#version 130
+
+in vec3 position;
+in vec3 color;
+
+uniform mat4 mvp;
+
+smooth out vec4 vertexColor;
+
+void main() {
+  gl_Position = mvp * vec4(position, 1.0);
+  vertexColor = vec4(color, 1.0);
+}
diff --git a/retro-gtk/glarea.gresource.xml b/retro-gtk/glarea.gresource.xml
index d6c29c6..b5a23bc 100644
--- a/retro-gtk/glarea.gresource.xml
+++ b/retro-gtk/glarea.gresource.xml
@@ -1,8 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <gresources>
   <gresource prefix="/io/bassi/glarea">
-    <file preprocess="xml-stripblanks">glarea-app-window.ui</file>
-    <file preprocess="xml-stripblanks">glarea-app-menu.ui</file>
     <file>glarea-fragment.glsl</file>
     <file>glarea-vertex.glsl</file>
   </gresource>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]