I'm currently trying to make a function that creates and positions a sphere that you can pickup for health or whatever. I thought I would need to create 2 functions, 1 for outside the loop and 1 for inside the loop. This is the first function -
void pickup(int xPosition,int yPosition,int zPosition)
{
dbMakeObjectSphere(32,20);
dbPositionObject(32,xPosition,yPosition, zPosition);
dbTextureObject(32,31);
}
I then call pickup(100,0,100); out side the loop
this is the second function
void pickup_loop()
{
dbRotateObject(32,5,5,5);
}
I then call pickup_loop() in the main loop but it does not appear to be looping, only rotating by 5 degrees once when I run the program instead of rotating by 5 degrees every frame. Anyone tell me why? thanks