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