1SDL::GFX::FPSManager(3)User Contributed Perl DocumentatioSnDL::GFX::FPSManager(3)
2
3
4

NAME

6       SDL::GFX::FPSManager - data structure used by SDL::GFX::Framerate
7

CATEGORY

9       GFX, Structure
10

METHODS

12   new
13        use SDL;
14        use SDL::GFX::Framerate;
15        use SDL::GFX::FPSManager;
16
17        my $fps = SDL::GFX::FPSManager->new(0, 0, 0, 0);
18
19       Initialize the framerate manager object. Arguments: framecount,
20       rateticks, lastticks, rate.
21
22   framecount
23        my $fc = $fps->framecount;
24
25       Returns the "framecount".
26
27   rateticks
28        my $rt = $fps->rateticks;
29
30       Returns the "rateticks".
31
32   lastticks
33        my $lt = $fps->lastticks;
34
35       Returns the "lastticks".
36
37   rate
38        my $r = $fps->rate;
39
40       Returns the "rate".
41

AUTHORS

43       See "AUTHORS" in SDL.
44
45
46
47perl v5.34.0                      2021-07-22           SDL::GFX::FPSManager(3)
Impressum