*/}}
Browse Source

Multiple root objects

YimingWu 1 year ago
parent
commit
204e4b8f80
1 changed files with 3 additions and 0 deletions
  1. 3 0
      modelling_main.c

+ 3 - 0
modelling_main.c

@@ -49,6 +49,9 @@ int RegisterEverything(){
     //tnsMeshLeaveEditMode(mo);
     //tnsMeshLeaveEditMode(mo);
 
 
     //tnsCreateMeshPlane(s,"Plane", 0,0,10, 10);
     //tnsCreateMeshPlane(s,"Plane", 0,0,10, 10);
+
+    s=tnsCreateRootObject("My Root 0");
+    mo=tnsCreateMeshPlane(s,"Plane", 0,0,0, 10);
 }
 }
 
 
 int main(int argc, char *argv[]){
 int main(int argc, char *argv[]){