Commit d03a3077fb119a3ebc97df2a88731e80aa7b7bf1
authorMichel Pollet <buserror@gmail.com>
Fri, 15 Jun 2012 08:21:06 +0000 (09:21 +0100)
committerMichel Pollet <buserror@gmail.com>
Fri, 15 Jun 2012 08:21:06 +0000 (09:21 +0100)
Changes the size of the display quad

Signed-off-by: Michel Pollet <buserror@gmail.com>
2 files changed:
examples/shared/libc3/src/c3texture.c
examples/shared/libc3/src/c3texture.h

index 27ae6494d66a7b6af36dff8e856dc8e5271a2d12..e9e576d0e3db3bd57b36865ca8d2037a75546e58 100644 (file)
@@ -103,8 +103,11 @@ c3texture_init(
 }
 
 void
-c3texture_setpixels(
-               )
+c3texture_resize(
+               c3texture_p t,
+               c3vec2 size )
 {
-
+       t->size = size;
+       t->geometry.dirty = 1;
+       c3geometry_set_dirty(&t->geometry, 1);
 }
index ecaae3ec713d6e8da2317897b0b2a7dc77add7e0..6ef1477e5ea8e62e1c3fdebf4a198e42118222c3 100644 (file)
@@ -42,5 +42,9 @@ c3texture_p
 c3texture_init(
                c3texture_p t,
                struct c3object_t * parent /* = NULL */);
+void
+c3texture_resize(
+               c3texture_p t,
+               c3vec2 size );
 
 #endif /* __C3TEXTURE_H___ */