libsxbp  v0.27
Experimental generation of 2D spiralling lines based on input binary data.
initialise.h
Go to the documentation of this file.
1 /*
2  * This source file forms part of libsxbp, a library which generates
3  * experimental 2D spiral-like shapes based on input binary data.
4  */
5 
21 #ifndef SAXBOPHONE_SAXBOSPIRAL_INITIALISE_H
22 #define SAXBOPHONE_SAXBOSPIRAL_INITIALISE_H
23 
24 #include "saxbospiral.h"
25 
26 
27 #ifdef __cplusplus
28 extern "C"{
29 #endif
30 
43  sxbp_direction_t current, sxbp_rotation_t turn
44 );
45 
55 
74 
75 #ifdef __cplusplus
76 } // extern "C"
77 #endif
78 
79 // end of header file
80 #endif
uint8_t sxbp_direction_t
Type for representing one of the cartesian directions.
Definition: saxbospiral.h:101
This compilation unit provides most of the data types used by the library, as well as defining some l...
A simple buffer type for storing arrays of bytes.
Definition: saxbospiral.h:236
sxbp_status_t sxbp_init_spiral(sxbp_buffer_t buffer, sxbp_spiral_t *spiral)
Builds a partially-complete spiral from binary input data stored in a buffer.
Definition: initialise.c:33
Struct type representing a Spiral figure, in any state of completion.
Definition: saxbospiral.h:189
int8_t sxbp_rotation_t
Type for representing a rotational direction.
Definition: saxbospiral.h:113
sxbp_spiral_t sxbp_blank_spiral(void)
Builds a blank spiral struct.
Definition: initialise.c:29
sxbp_status_t
Represents the success or failure status of an executed function.
Definition: saxbospiral.h:87
sxbp_direction_t sxbp_change_direction(sxbp_direction_t current, sxbp_rotation_t turn)
Gets the direction which is clockwise or anti-clockwise to the current direction. ...
Definition: initialise.c:23