![]() |
ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
Include dependency graph for main.c:Go to the source code of this file.
Macros | |
| #define | DROP_MAX 1000 |
Functions | |
| void | ckb_info () |
| void | drop_add (float x, float y, int slow) |
| void | ckb_init (ckb_runctx *context) |
| void | ckb_parameter (ckb_runctx *context, const char *name, const char *value) |
| void | ckb_keypress (ckb_runctx *context, ckb_key *key, int x, int y, int state) |
| void | ckb_start (ckb_runctx *context, int state) |
| void | ckb_time (ckb_runctx *context, double delta) |
| int | ckb_frame (ckb_runctx *context) |
Variables | |
| int | spawn = 0 |
| double | period = 0.1 |
| double | maxsize = 100. |
| double | speed = 100. |
| unsigned char | ar = 255 |
| unsigned char | ag = 255 |
| unsigned char | ab = 255 |
| float | aa = 1. |
| struct { | |
| int | active |
| float | x |
| float | y |
| float | size |
| float | msize |
| } | drop [1000] |
| double | tick = -1. |
| #define DROP_MAX 1000 |
Definition at line 34 of file main.c.
Referenced by ckb_frame(), ckb_time(), and drop_add().
| int ckb_frame | ( | ckb_runctx * | context | ) |
Definition at line 120 of file main.c.
References aa, ab, ag, ar, ckb_alpha_blend(), CKB_KEYCLEAR, drop, DROP_MAX, ckb_runctx::keycount, and ckb_runctx::keys.
Here is the call graph for this function:| void ckb_info | ( | ) |
Definition at line 6 of file main.c.
References CKB_COPYRIGHT, CKB_DESCRIPTION, CKB_GUID, CKB_KP_POSITION, CKB_KPMODE, CKB_LICENSE, CKB_LIVEPARAMS, CKB_NAME, CKB_PARAM_DOUBLE, CKB_PARAM_LONG, CKB_PARAM_RGB, CKB_PRESET_END, CKB_PRESET_PARAM, CKB_PRESET_START, CKB_REPEAT, CKB_TIME_ABSOLUTE, CKB_TIMEMODE, CKB_VERSION, FALSE, and TRUE.
| void ckb_init | ( | ckb_runctx * | context | ) |
| void ckb_keypress | ( | ckb_runctx * | context, |
| ckb_key * | key, | ||
| int | x, | ||
| int | y, | ||
| int | state | ||
| ) |
Definition at line 86 of file main.c.
References drop_add().
Here is the call graph for this function:| void ckb_parameter | ( | ckb_runctx * | context, |
| const char * | name, | ||
| const char * | value | ||
| ) |
Definition at line 67 of file main.c.
References aa, ab, ag, ar, CKB_PARSE_BOOL, CKB_PARSE_DOUBLE, CKB_PARSE_LONG, CKB_PARSE_RGB, ckb_runctx::height, maxsize, period, spawn, speed, and ckb_runctx::width.
| void ckb_start | ( | ckb_runctx * | context, |
| int | state | ||
| ) |
| void ckb_time | ( | ckb_runctx * | context, |
| double | delta | ||
| ) |
Definition at line 99 of file main.c.
References drop, drop_add(), DROP_MAX, ckb_runctx::height, period, spawn, speed, tick, and ckb_runctx::width.
Here is the call graph for this function:| void drop_add | ( | float | x, |
| float | y, | ||
| int | slow | ||
| ) |
Definition at line 49 of file main.c.
References drop, DROP_MAX, maxsize, x, and y.
Referenced by ckb_keypress(), and ckb_time().
Here is the caller graph for this function:| float aa = 1. |
Definition at line 41 of file main.c.
Referenced by ckb_frame(), and ckb_parameter().
| unsigned char ab = 255 |
Definition at line 40 of file main.c.
Referenced by ckb_frame(), and ckb_parameter().
| unsigned char ag = 255 |
Definition at line 40 of file main.c.
Referenced by ckb_frame(), and ckb_parameter().
| unsigned char ar = 255 |
Definition at line 40 of file main.c.
Referenced by ckb_frame(), and ckb_parameter().
| struct { ... } drop[ 1000 ] |
Referenced by ckb_frame(), ckb_time(), and drop_add().
| double maxsize = 100. |
Definition at line 38 of file main.c.
Referenced by ckb_parameter(), ckb_time(), and drop_add().
| double period = 0.1 |
Definition at line 37 of file main.c.
Referenced by ckb_parameter(), and ckb_time().
| int spawn = 0 |
Definition at line 36 of file main.c.
Referenced by ckb_parameter(), and ckb_time().
| double speed = 100. |
Definition at line 39 of file main.c.
Referenced by ckb_parameter(), and ckb_time().
| double tick = -1. |
Definition at line 92 of file main.c.
Referenced by ckb_start(), and ckb_time().