RaydiumWikiNi

ApiTimecallsDetails

PagePrincipale :: DerniersChangements :: ParametresUtilisateur :: Vous êtes ec2-18-221-165-246.us-east-2.compute.amazonaws.com
Ceci est une version archivée de ApiTimecallsDetails à 2005-01-16 00:23:52.

27.2 Details


27.2.1 void raydium_timecall_add(void *funct, GLint hz)


There is two sort of timecalls with Raydium:

1. Standard ones:

raydium_timecall_add(function,800);

void function(void) will be called 800 times per second.

2. Elastic timed ones:

raydium_timecall_add(function,-80);


void function(float step) will be called for each frame, with a "step factor" as argument. In the above example, a 160 Hz game will call function with step = 0.5, but step = 2.0 for a 40 Hz game.

A standard timecall will use void(void) function and a positive hertz argument, as an elasitc one will use void(float) and negative hertz argument.



Return to RaydiumApiReference index.