From 373961bbce0a3d25cab0fe76f87d6ec5170f6611 Mon Sep 17 00:00:00 2001 From: aap Date: Sat, 28 Mar 2026 01:09:10 +0100 Subject: [PATCH] small stuff --- src/frame.cpp | 7 +++++++ src/image.cpp | 4 ++-- src/rwobjects.h | 1 + src/texture.cpp | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/frame.cpp b/src/frame.cpp index c8dabd5..1832f00 100644 --- a/src/frame.cpp +++ b/src/frame.cpp @@ -275,6 +275,13 @@ Frame::rotate(const V3d *axis, float32 angle, CombineOp op) updateObjects(); } +void +Frame::rotate(const Quat *q, CombineOp op) +{ + this->matrix.rotate(*q, op); + updateObjects(); +} + void Frame::translate(const V3d *trans, CombineOp op) { diff --git a/src/image.cpp b/src/image.cpp index 36376fd..23877b8 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -940,7 +940,7 @@ Image::getFilename(const char *name) f = engine->filefuncs.rwfopen(s, "rb"); if(f){ engine->filefuncs.rwfclose(f); - printf("found %s\n", s); +// printf("found %s\n", s); return s; } rwFree(s); @@ -958,7 +958,7 @@ Image::getFilename(const char *name) f = engine->filefuncs.rwfopen(s, "r"); if(f){ engine->filefuncs.rwfclose(f); - printf("found %s\n", name); +// printf("found %s\n", name); return s; } rwFree(s); diff --git a/src/rwobjects.h b/src/rwobjects.h index 96394c2..da95a5c 100644 --- a/src/rwobjects.h +++ b/src/rwobjects.h @@ -71,6 +71,7 @@ struct Frame return !!(this->root->object.privateFlags & HIERARCHYSYNC); } Matrix *getLTM(void); void rotate(const V3d *axis, float32 angle, CombineOp op = rw::COMBINEPOSTCONCAT); + void rotate(const Quat *q, CombineOp op = rw::COMBINEPOSTCONCAT); void translate(const V3d *trans, CombineOp op = rw::COMBINEPOSTCONCAT); void scale(const V3d *scale, CombineOp op = rw::COMBINEPOSTCONCAT); void transform(const Matrix *mat, CombineOp op = rw::COMBINEPOSTCONCAT); diff --git a/src/texture.cpp b/src/texture.cpp index 958ae08..961649e 100644 --- a/src/texture.cpp +++ b/src/texture.cpp @@ -73,7 +73,7 @@ textureClose(void *object, int32 offset, int32 size) FORLIST(lnk, TEXTUREGLOBAL(textures)){ Texture *tex = LLLinkGetData(lnk, Texture, inGlobalList); - printf("Tex still allocated: %d %s %s\n", tex->refCount, tex->name, tex->mask); +// printf("Tex still allocated: %d %s %s\n", tex->refCount, tex->name, tex->mask); assert(tex->dict == nil); tex->destroy(); }