]> git.draconx.ca Git - upkg.git/blob - src/engine/texture.gob
texture: Migrate to GOB2.
[upkg.git] / src / engine / texture.gob
1 %alltop{
2 /*
3  *  upkg: tool for manipulating Unreal Tournament packages.
4  *  Copyright © 2009-2011 Nick Bowler
5  *
6  *  This program is free software: you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation, either version 3 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  */
19 %}
20
21 %{
22 #include <stdio.h>
23 #include <string.h>
24 #include <engine/palette.h>
25 %}
26
27 %h{
28 #include <uobject/uobject.h>
29 %}
30
31 class Engine:Texture from U:Object (dynamic)
32 {
33         private unsigned USize;
34         private unsigned UClamp;
35         private unsigned UBits;
36         private unsigned VSize;
37         private unsigned VClamp;
38         private unsigned VBits;
39
40         private Engine:Palette *Palette;
41
42         property UINT USize
43                 ( nick = "USize"
44                 , blurb = "Width of the texture."
45                 , minimum = 0
46                 , maximum = 2048
47                 , default_value = 0
48                 , link
49                 );
50         property UINT UClamp
51                 ( nick = "UClamp"
52                 , blurb = "???"
53                 , minimum = 0
54                 , maximum = 2048
55                 , default_value = 0
56                 , link
57                 );
58         property UINT UBits
59                 ( nick = "UBits"
60                 , blurb = "???"
61                 , minimum = 0
62                 , maximum = 64
63                 , default_value = 0
64                 , link
65                 );
66         property UINT VSize
67                 ( nick = "VSize"
68                 , blurb = "Height of the texture."
69                 , minimum = 0
70                 , maximum = 2048
71                 , default_value = 0
72                 , link
73                 );
74         property UINT VClamp
75                 ( nick = "VClamp"
76                 , blurb = "???"
77                 , minimum = 0
78                 , maximum = 2048
79                 , default_value = 0
80                 , link
81                 );
82         property UINT VBits
83                 ( nick = "VBits"
84                 , blurb = "???"
85                 , minimum = 0
86                 , maximum = 64
87                 , default_value = 0
88                 , link
89                 );
90
91         property OBJECT Palette
92                 ( nick = "Palette"
93                 , blurb = "Reference to the texture's palette."
94                 , object_type = Engine:Palette
95                 , link
96                 );
97 }