small stuff

This commit is contained in:
aap
2026-03-28 01:09:10 +01:00
parent 1499b9660c
commit 373961bbce
4 changed files with 11 additions and 3 deletions

View File

@@ -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)
{

View File

@@ -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);

View File

@@ -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);

View File

@@ -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();
}