浏览代码

Added radio_button_gui geom

Gyedo Jeon 17 年之前
父节点
当前提交
148952aa5b
共有 3 个文件被更改,包括 36 次插入0 次删除
  1. 3 0
      dmodels/src/gui/Sources.pp
  2. 33 0
      dmodels/src/gui/radio_button_gui.egg
  3. 二进制
      dmodels/src/maps/circle.png

+ 3 - 0
dmodels/src/gui/Sources.pp

@@ -9,3 +9,6 @@
   #define SOURCES $[patsubst %.flt,%.egg,$[wildcard *.flt]]
   #define SOURCES $[patsubst %.flt,%.egg,$[wildcard *.flt]]
 #end install_egg
 #end install_egg
 
 
+#begin install_egg
+  #define SOURCES radio_button_gui.egg
+#end install_egg

+ 33 - 0
dmodels/src/gui/radio_button_gui.egg

@@ -0,0 +1,33 @@
+<Comment> {
+  "egg-texture-cards ../maps/circle.png -o radio_button_gui.egg"
+}
+<Texture> circle {
+  "../maps/circle.png"
+}
+<Group> {
+  <VertexPool> vpool {
+    <Vertex> 0 {
+      -0.5 0.5 0
+      <UV> { 0 1 }
+    }
+    <Vertex> 1 {
+      -0.5 -0.5 0
+      <UV> { 0 0 }
+    }
+    <Vertex> 2 {
+      0.5 -0.5 0
+      <UV> { 1 0 }
+    }
+    <Vertex> 3 {
+      0.5 0.5 0
+      <UV> { 1 1 }
+    }
+  }
+  <Group> circle {
+    <Polygon> {
+      <RGBA> { 1 1 1 1 }
+      <TRef> { circle }
+      <VertexRef> { 0 1 2 3 <Ref> { vpool } }
+    }
+  }
+}

二进制
dmodels/src/maps/circle.png