summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/render.c8
-rw-r--r--render/render.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/render/render.c b/render/render.c
index ecb07ada..b357f8a3 100644
--- a/render/render.c
+++ b/render/render.c
@@ -194,6 +194,14 @@ RrAppearance *RrAppearanceNew(const RrInstance *inst, gint numtex)
return out;
}
+void RrAppearanceAddTextures(RrAppearance *a, gint numtex)
+{
+ g_assert(a->textures == 0);
+
+ a->textures = numtex;
+ if (numtex) a->texture = g_new0(RrTexture, numtex);
+}
+
RrAppearance *RrAppearanceCopy(RrAppearance *orig)
{
RrSurface *spo, *spc;
diff --git a/render/render.h b/render/render.h
index ad638ae8..ac1deb4b 100644
--- a/render/render.h
+++ b/render/render.h
@@ -230,6 +230,7 @@ GC RrColorGC (RrColor *c);
RrAppearance *RrAppearanceNew (const RrInstance *inst, gint numtex);
RrAppearance *RrAppearanceCopy (RrAppearance *a);
void RrAppearanceFree (RrAppearance *a);
+void RrAppearanceAddTextures(RrAppearance *a, gint numtex);
RrFont *RrFontOpen (const RrInstance *inst, const gchar *name, gint size,
RrFontWeight weight, RrFontSlant slant);