MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / obj3d_setData

Function obj3d_setData

TheForceEngine/TFE_Jedi/Level/robject.cpp:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 void obj3d_setData(SecObject* obj, JediModel* pod)
62 {
63 obj->model = pod;
64 obj->type = OBJ_TYPE_3D;
65 obj->flags |= OBJ_FLAG_NEEDS_TRANSFORM;
66 if (obj->worldWidth == -1) // the initial value.
67 {
68 obj->worldWidth = 0;
69 }
70 if (obj->worldHeight == -1)
71 {
72 obj->worldHeight = 0;
73 }
74 }
75
76 void obj3d_computeTransform(SecObject* obj)
77 {

Callers 2

level_loadObjectsFunction · 0.85
setProjectileObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected