Re: Setting render loop without using FPSAnimator
Posted by sasmaster on Jun 05, 2012; 9:25am
URL: https://forum.jogamp.org/Setting-render-loop-without-using-FPSAnimator-tp4025143p4025146.html
Also ,yes , for now I put the Animator into the View3d as well. But that means I am going to add gl calls also inside view and not in the Main. I don't want the end user do it inside View3d as it is meant to abstract all the init internals .
I want him to call and add calls to view from the Main .Smth like this :
Main() {
View3D view-new View3D()
Object3D cube=new Cube();
cube.setMaterial(new ColorMaterial(0xff0000));
view.addChild(cube);
while(true){
view.render();
}
}
That is it .I want all the init of context and the rest of JOGL specific done in the View3D .