mirror of
https://github.com/aap/librw.git
synced 2026-04-16 19:39:02 +01:00
small stuff
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user