]> git.draconx.ca Git - upkg.git/blobdiff - src/engine/texture.gob
Fix VPATH builds from clean checkout.
[upkg.git] / src / engine / texture.gob
index ea5e2665a869ecd80c8bad718834fe1722160d41..630013e0f21031e3a45839715e4ed1f515759d50 100644 (file)
@@ -1,7 +1,7 @@
 %alltop{
 /*
  *  upkg: tool for manipulating Unreal Tournament packages.
- *  Copyright © 2009-2011 Nick Bowler
+ *  Copyright © 2009-2012, 2020 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
@@ -25,8 +25,8 @@
 #include <uobject/loadable.h>
 #include <uobject/exportable.h>
 #include <engine/palette.h>
-#include "pack.h"
-#include "pcx.h"
+#include <engine/pcx.h>
+#include <pack.h>
 %}
 
 %h{
@@ -117,8 +117,10 @@ class Engine:Texture from U:Object (dynamic)
        private unsigned VClamp;
        private unsigned VBits;
 
-       private Engine:Palette *Palette;
-       private Engine:Texture *DetailTexture;
+       private float DrawScale;
+
+       private Engine:Palette *Palette = NULL destroywith g_object_unref;
+       private Engine:Texture *DetailTexture = NULL destroywith g_object_unref;
 
        private struct engine_texture_data **mipmap_data;
        private unsigned char mipmap_count;
@@ -270,6 +272,12 @@ class Engine:Texture from U:Object (dynamic)
                , link
                );
 
+       property FLOAT DrawScale
+               ( nick = "Draw Scale"
+               , blurb = "Relative size to parent surface"
+               , link
+               );
+
        property OBJECT Palette
                ( nick = "Palette"
                , blurb = "Reference to the texture's palette."