Commit Graph

5 Commits

Author SHA1 Message Date
0a4cf9fa49 Added getters and setters for all settings values and renamed some members.
Some members and functions were named in different ways, now the naming scheme is a bit more unified. Also changed some types to size_t where negative values don't make sense.
2021-08-23 18:37:57 +02:00
d8f9f6ebe1 Removed an export macro that slipped into the implementation. 2021-08-23 18:37:57 +02:00
8a1b57aa80 Added context data to event callbacks, re-enabling SDL window title change on preset switch. 2021-08-23 18:37:57 +02:00
4091cbd76b Fixed a few definitions and types in the C API.
Also added missing projectm_is_preset_locked() and projectm_pcm_get_max_samples() functions.
2021-08-23 18:37:57 +02:00
14f4bcac65 Added a C-style interface header and wrapper for projectM.
This will make it easier to integrate projectM into C applications and also removes potential issues of STL/C++ version differences between host and library.

Changed visibility of all symbols except the C API to "hidden". This effectively prevents the C++ API from being used in the shared library.

Added an option "ENABLE_CXX_INTERFACE" to re-enable the old export behaviour, displaying a prominent author warning after configuring the build if enabled.
2021-08-23 18:37:57 +02:00