]> git.draconx.ca Git - upkg.git/blobdiff - src/engine/texture.gob
texture: Migrate to GOB2.
[upkg.git] / src / engine / texture.gob
diff --git a/src/engine/texture.gob b/src/engine/texture.gob
new file mode 100644 (file)
index 0000000..35dd739
--- /dev/null
@@ -0,0 +1,97 @@
+%alltop{
+/*
+ *  upkg: tool for manipulating Unreal Tournament packages.
+ *  Copyright © 2009-2011 Nick Bowler
+ *
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  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/>.
+ */
+%}
+
+%{
+#include <stdio.h>
+#include <string.h>
+#include <engine/palette.h>
+%}
+
+%h{
+#include <uobject/uobject.h>
+%}
+
+class Engine:Texture from U:Object (dynamic)
+{
+       private unsigned USize;
+       private unsigned UClamp;
+       private unsigned UBits;
+       private unsigned VSize;
+       private unsigned VClamp;
+       private unsigned VBits;
+
+       private Engine:Palette *Palette;
+
+       property UINT USize
+               ( nick = "USize"
+               , blurb = "Width of the texture."
+               , minimum = 0
+               , maximum = 2048
+               , default_value = 0
+               , link
+               );
+       property UINT UClamp
+               ( nick = "UClamp"
+               , blurb = "???"
+               , minimum = 0
+               , maximum = 2048
+               , default_value = 0
+               , link
+               );
+       property UINT UBits
+               ( nick = "UBits"
+               , blurb = "???"
+               , minimum = 0
+               , maximum = 64
+               , default_value = 0
+               , link
+               );
+       property UINT VSize
+               ( nick = "VSize"
+               , blurb = "Height of the texture."
+               , minimum = 0
+               , maximum = 2048
+               , default_value = 0
+               , link
+               );
+       property UINT VClamp
+               ( nick = "VClamp"
+               , blurb = "???"
+               , minimum = 0
+               , maximum = 2048
+               , default_value = 0
+               , link
+               );
+       property UINT VBits
+               ( nick = "VBits"
+               , blurb = "???"
+               , minimum = 0
+               , maximum = 64
+               , default_value = 0
+               , link
+               );
+
+       property OBJECT Palette
+               ( nick = "Palette"
+               , blurb = "Reference to the texture's palette."
+               , object_type = Engine:Palette
+               , link
+               );
+}