mirror of
https://github.com/aap/librw.git
synced 2026-04-17 03:51:08 +01:00
small stuff
This commit is contained in:
@@ -275,6 +275,13 @@ Frame::rotate(const V3d *axis, float32 angle, CombineOp op)
|
|||||||
updateObjects();
|
updateObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Frame::rotate(const Quat *q, CombineOp op)
|
||||||
|
{
|
||||||
|
this->matrix.rotate(*q, op);
|
||||||
|
updateObjects();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Frame::translate(const V3d *trans, CombineOp op)
|
Frame::translate(const V3d *trans, CombineOp op)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -940,7 +940,7 @@ Image::getFilename(const char *name)
|
|||||||
f = engine->filefuncs.rwfopen(s, "rb");
|
f = engine->filefuncs.rwfopen(s, "rb");
|
||||||
if(f){
|
if(f){
|
||||||
engine->filefuncs.rwfclose(f);
|
engine->filefuncs.rwfclose(f);
|
||||||
printf("found %s\n", s);
|
// printf("found %s\n", s);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
rwFree(s);
|
rwFree(s);
|
||||||
@@ -958,7 +958,7 @@ Image::getFilename(const char *name)
|
|||||||
f = engine->filefuncs.rwfopen(s, "r");
|
f = engine->filefuncs.rwfopen(s, "r");
|
||||||
if(f){
|
if(f){
|
||||||
engine->filefuncs.rwfclose(f);
|
engine->filefuncs.rwfclose(f);
|
||||||
printf("found %s\n", name);
|
// printf("found %s\n", name);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
rwFree(s);
|
rwFree(s);
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ struct Frame
|
|||||||
return !!(this->root->object.privateFlags & HIERARCHYSYNC); }
|
return !!(this->root->object.privateFlags & HIERARCHYSYNC); }
|
||||||
Matrix *getLTM(void);
|
Matrix *getLTM(void);
|
||||||
void rotate(const V3d *axis, float32 angle, CombineOp op = rw::COMBINEPOSTCONCAT);
|
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 translate(const V3d *trans, CombineOp op = rw::COMBINEPOSTCONCAT);
|
||||||
void scale(const V3d *scale, CombineOp op = rw::COMBINEPOSTCONCAT);
|
void scale(const V3d *scale, CombineOp op = rw::COMBINEPOSTCONCAT);
|
||||||
void transform(const Matrix *mat, 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)){
|
FORLIST(lnk, TEXTUREGLOBAL(textures)){
|
||||||
Texture *tex = LLLinkGetData(lnk, Texture, inGlobalList);
|
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);
|
assert(tex->dict == nil);
|
||||||
tex->destroy();
|
tex->destroy();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user