*/}}
Kaynağa Gözat

Root object change

YimingWu 1 yıl önce
ebeveyn
işleme
2d842a6df5
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 1 1
      fruits.c
  2. 2 2
      modelling_main.c

+ 1 - 1
fruits.c

@@ -303,7 +303,7 @@ int RegisterEverything(){
     
     laSaveProp("basket");
 
-    tnsObject* s=tnsCreateRootObject("My Root");
+    tnsObject* s=tnsCreateRootObject("My Root", 0);
     tnsObject* o=tnsCreateLight(s,"Sun",100,100,100,1,1);
     tnsVector3d target={0,0,0}, up={0,0,1};
     tnsLookAt(o,target,up);

+ 2 - 2
modelling_main.c

@@ -31,7 +31,7 @@ void DataPanel(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laCol
 int RegisterEverything(){
     laRegisterUiTemplate("panel_data", "Data", DataPanel, 0, 0,0, 0,0,20);
 
-    tnsObject* s=tnsCreateRootObject("My Root");
+    tnsObject* s=tnsCreateRootObject("My Root",0);
     tnsObject* o=tnsCreateLight(s,"Sun",10,10,10,1,1);
     tnsVector3d target={0,0,0}, up={0,0,1};
     tnsLookAt(o,target,up);
@@ -42,7 +42,7 @@ int RegisterEverything(){
 
     //tnsCreateMeshPlane(s,"Plane", 0,0,10, 10);
 
-    s=tnsCreateRootObject("My Root 0");
+    s=tnsCreateRootObject("My Root 0", 0);
     mo=tnsCreateMeshPlane(s,"Plane", 0,0,0, 1);
 }