projects
/
simavr
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
c3texture: Added a resize() function
[simavr]
/
examples
/
shared
/
libc3
/
src
/
c3texture.c
diff --git
a/examples/shared/libc3/src/c3texture.c
b/examples/shared/libc3/src/c3texture.c
index
27ae649
..
e9e576d
100644
(file)
--- a/
examples/shared/libc3/src/c3texture.c
+++ b/
examples/shared/libc3/src/c3texture.c
@@
-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);
}