HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SYS_Flicks.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: SYS_Flicks.h (SYS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __SYS_Flicks__
12 #define __SYS_Flicks__
13 
14 #include <flicks.h>
15 
16 // Define SYS_Flicks
18 
19 // Extract constants for flicks
20 // 0 seconds
21 constexpr SYS_Flicks SYS_FLICKS_0S = util::k_flicks_zero_seconds;
22 // 1 second
24 // 0.5 seconds
25 constexpr SYS_Flicks SYS_FLICKS_1_2S{
26  std::chrono::duration_cast<SYS_Flicks>(
27  std::chrono::duration<SYS_Flicks::rep, std::ratio<1, 2>>{1})};
28 // 1/24th of a second
30 // 1/90th of a second
32 // The minimum unit of time that can be expressed in flicks
34 
35 constexpr double SYStoSeconds(const SYS_Flicks f)
36 {
37  return util::to_seconds(f);
38 }
39 constexpr SYS_Flicks SYStoFlicks(double seconds)
40 {
41  return util::to_flicks(seconds);
42 }
43 
45 
46 #endif
constexpr flicks k_flicks_one_ninetieth_of_second
Definition: flicks.h:95
constexpr SYS_Flicks SYStoFlicks(double seconds)
Definition: SYS_Flicks.h:39
constexpr double SYStoSeconds(const SYS_Flicks f)
Definition: SYS_Flicks.h:35
constexpr flicks k_flicks_one_twenty_fourth_of_second
Definition: flicks.h:92
std::chrono::duration< std::chrono::nanoseconds::rep, std::ratio< 1, 705600000 >> flicks
Definition: flicks.h:85
GLfloat f
Definition: glcorearb.h:1926
constexpr SYS_Flicks SYS_FLICKS_1S
Definition: SYS_Flicks.h:23
constexpr flicks k_flicks_one_second
Definition: flicks.h:90
constexpr SYS_Flicks SYS_FLICKS_1_24S
Definition: SYS_Flicks.h:29
constexpr double to_seconds(const flicks ns)
Definition: flicks.h:102
util::flicks SYS_Flicks
Definition: SYS_Flicks.h:17
constexpr SYS_Flicks SYS_FLICKS_1_90S
Definition: SYS_Flicks.h:31
constexpr flicks to_flicks(const double s)
Definition: flicks.h:108
constexpr SYS_Flicks SYS_FLICKS_MIN
Definition: SYS_Flicks.h:33
constexpr SYS_Flicks SYS_FLICKS_0S
Definition: SYS_Flicks.h:21
constexpr flicks k_flicks_min_time
Definition: flicks.h:98