22 * @file core.h
33 * @copyright 2003-2024 projectM Team
44 * @brief Core functions to instantiate, destroy and control projectM.
5+ * @since 4.0.0
56 *
67 * projectM -- Milkdrop-esque visualisation SDK
78 * Copyright (C)2003-2024 projectM Team
@@ -39,6 +40,7 @@ extern "C" {
3940 *
4041 * @return A projectM handle for the newly created instance that must be used in subsequent API calls.
4142 * NULL if the instance could not be created successfully.
43+ * @since 4.0.0
4244 */
4345PROJECTM_EXPORT projectm_handle projectm_create ();
4446
@@ -48,6 +50,7 @@ PROJECTM_EXPORT projectm_handle projectm_create();
4850 * After destroying the handle, it must not be used for any other calls to the API.
4951 *
5052 * @param instance A handle returned by projectm_create() or projectm_create_settings().
53+ * @since 4.0.0
5154 */
5255PROJECTM_EXPORT void projectm_destroy (projectm_handle instance );
5356
@@ -67,6 +70,7 @@ PROJECTM_EXPORT void projectm_destroy(projectm_handle instance);
6770 * @param instance The projectM instance handle.
6871 * @param filename The preset filename or URL to load.
6972 * @param smooth_transition If true, the new preset is smoothly blended over.
73+ * @since 4.0.0
7074 */
7175PROJECTM_EXPORT void projectm_load_preset_file (projectm_handle instance , const char * filename ,
7276 bool smooth_transition );
@@ -83,6 +87,7 @@ PROJECTM_EXPORT void projectm_load_preset_file(projectm_handle instance, const c
8387 * @param instance The projectM instance handle.
8488 * @param data The preset contents to load.
8589 * @param smooth_transition If true, the new preset is smoothly blended over.
90+ * @since 4.0.0
8691 */
8792PROJECTM_EXPORT void projectm_load_preset_data (projectm_handle instance , const char * data ,
8893 bool smooth_transition );
@@ -94,6 +99,7 @@ PROJECTM_EXPORT void projectm_load_preset_data(projectm_handle instance, const c
9499 * Can cause a small delay/lag in rendering. Only use if texture paths were changed.
95100 *
96101 * @param instance The projectM instance handle.
102+ * @since 4.0.0
97103 */
98104PROJECTM_EXPORT void projectm_reset_textures (projectm_handle instance );
99105
@@ -105,6 +111,7 @@ PROJECTM_EXPORT void projectm_reset_textures(projectm_handle instance);
105111 * @param major A pointer to an int that will be set to the major version.
106112 * @param minor A pointer to an int that will be set to the minor version.
107113 * @param patch A pointer to an int that will be set to the patch version.
114+ * @since 4.0.0
108115 */
109116PROJECTM_EXPORT void projectm_get_version_components (int * major , int * minor , int * patch );
110117
@@ -115,6 +122,7 @@ PROJECTM_EXPORT void projectm_get_version_components(int* major, int* minor, int
115122 * needed.
116123 *
117124 * @return The library version in the format major.minor.patch.
125+ * @since 4.0.0
118126 */
119127PROJECTM_EXPORT char * projectm_get_version_string ();
120128
@@ -127,6 +135,7 @@ PROJECTM_EXPORT char* projectm_get_version_string();
127135 * needed.
128136 *
129137 * @return The VCS revision number the projectM library was built from.
138+ * @since 4.0.0
130139 */
131140PROJECTM_EXPORT char * projectm_get_vcs_version_string ();
132141
0 commit comments