Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

782 lines
23KB

  1. /*
  2. * DISTRHO Plugin Framework (DPF)
  3. * Copyright (C) 2012-2021 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any purpose with
  6. * or without fee is hereby granted, provided that the above copyright notice and this
  7. * permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
  10. * TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
  11. * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  12. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
  13. * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  14. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #ifdef DOXYGEN
  17. #include "src/DistrhoDefines.h"
  18. START_NAMESPACE_DISTRHO
  19. /* ------------------------------------------------------------------------------------------------------------
  20. * Intro */
  21. /**
  22. @mainpage DISTRHO %Plugin Framework
  23. DISTRHO %Plugin Framework (or @b DPF for short)
  24. is a plugin framework designed to make development of new plugins an easy and enjoyable task.@n
  25. It allows developers to create plugins with custom UIs using a simple C++ API.@n
  26. The framework facilitates exporting various different plugin formats from the same code-base.
  27. DPF can build for LADSPA, DSSI, LV2 and VST2 formats.@n
  28. A JACK/Standalone mode is also available, allowing you to quickly test plugins.
  29. @section Macros
  30. You start by creating a "DistrhoPluginInfo.h" file describing the plugin via macros, see @ref PluginMacros.@n
  31. This file is included in the main DPF code to select which features to activate for each plugin format.
  32. For example, a plugin (with %UI) that use states will require LV2 hosts to support Atom and Worker extensions for
  33. message passing from the %UI to the plugin.@n
  34. If your plugin does not make use of states, the Worker extension is not set as a required feature.
  35. @section Plugin
  36. The next step is to create your plugin code by subclassing DPF's Plugin class.@n
  37. You need to pass the number of parameters in the constructor and also the number of programs and states, if any.
  38. Here's an example of an audio plugin that simply mutes the host output:
  39. @code
  40. class MutePlugin : public Plugin
  41. {
  42. public:
  43. /**
  44. Plugin class constructor.
  45. */
  46. MutePlugin()
  47. : Plugin(0, 0, 0) // 0 parameters, 0 programs and 0 states
  48. {
  49. }
  50. protected:
  51. /* ----------------------------------------------------------------------------------------
  52. * Information */
  53. /**
  54. Get the plugin label.
  55. This label is a short restricted name consisting of only _, a-z, A-Z and 0-9 characters.
  56. */
  57. const char* getLabel() const override
  58. {
  59. return "Mute";
  60. }
  61. /**
  62. Get the plugin author/maker.
  63. */
  64. const char* getMaker() const override
  65. {
  66. return "DPF";
  67. }
  68. /**
  69. Get the plugin license name (a single line of text).
  70. For commercial plugins this should return some short copyright information.
  71. */
  72. const char* getLicense() const override
  73. {
  74. return "MIT";
  75. }
  76. /**
  77. Get the plugin version, in hexadecimal.
  78. */
  79. uint32_t getVersion() const override
  80. {
  81. return d_version(1, 0, 0);
  82. }
  83. /**
  84. Get the plugin unique Id.
  85. This value is used by LADSPA, DSSI and VST plugin formats.
  86. */
  87. int64_t getUniqueId() const override
  88. {
  89. return d_cconst('M', 'u', 't', 'e');
  90. }
  91. /* ----------------------------------------------------------------------------------------
  92. * Audio/MIDI Processing */
  93. /**
  94. Run/process function for plugins without MIDI input.
  95. NOTE: Some parameters might be null if there are no audio inputs or outputs.
  96. */
  97. void run(const float**, float** outputs, uint32_t frames) override
  98. {
  99. // get the left and right audio outputs
  100. float* const outL = outputs[0];
  101. float* const outR = outputs[1];
  102. // mute audio
  103. std::memset(outL, 0, sizeof(float)*frames);
  104. std::memset(outR, 0, sizeof(float)*frames);
  105. }
  106. };
  107. @endcode
  108. See the Plugin class for more information and to understand what each function does.
  109. @section Parameters
  110. A plugin is nothing without parameters.@n
  111. In DPF parameters can be inputs or outputs.@n
  112. They have hints to describe how they behave plus a name and a symbol identifying them.@n
  113. Parameters also have 'ranges' – a minimum, maximum and default value.
  114. Input parameters are "read-only": the plugin can read them but not change them.
  115. (the exception being when changing programs, more on that below)@n
  116. It's the host responsibility to save, restore and set input parameters.
  117. Output parameters can be changed at anytime by the plugin.@n
  118. The host will simply read their values and not change them.
  119. Here's an example of an audio plugin that has 1 input parameter:
  120. @code
  121. class GainPlugin : public Plugin
  122. {
  123. public:
  124. /**
  125. Plugin class constructor.
  126. You must set all parameter values to their defaults, matching ParameterRanges::def.
  127. */
  128. GainPlugin()
  129. : Plugin(1, 0, 0), // 1 parameter, 0 programs and 0 states
  130. fGain(1.0f)
  131. {
  132. }
  133. protected:
  134. /* ----------------------------------------------------------------------------------------
  135. * Information */
  136. const char* getLabel() const override
  137. {
  138. return "Gain";
  139. }
  140. const char* getMaker() const override
  141. {
  142. return "DPF";
  143. }
  144. const char* getLicense() const override
  145. {
  146. return "MIT";
  147. }
  148. uint32_t getVersion() const override
  149. {
  150. return d_version(1, 0, 0);
  151. }
  152. int64_t getUniqueId() const override
  153. {
  154. return d_cconst('G', 'a', 'i', 'n');
  155. }
  156. /* ----------------------------------------------------------------------------------------
  157. * Init */
  158. /**
  159. Initialize a parameter.
  160. This function will be called once, shortly after the plugin is created.
  161. */
  162. void initParameter(uint32_t index, Parameter& parameter) override
  163. {
  164. // we only have one parameter so we can skip checking the index
  165. parameter.hints = kParameterIsAutomable;
  166. parameter.name = "Gain";
  167. parameter.symbol = "gain";
  168. parameter.ranges.min = 0.0f;
  169. parameter.ranges.max = 2.0f;
  170. parameter.ranges.def = 1.0f;
  171. }
  172. /* ----------------------------------------------------------------------------------------
  173. * Internal data */
  174. /**
  175. Get the current value of a parameter.
  176. */
  177. float getParameterValue(uint32_t index) const override
  178. {
  179. // same as before, ignore index check
  180. return fGain;
  181. }
  182. /**
  183. Change a parameter value.
  184. */
  185. void setParameterValue(uint32_t index, float value) override
  186. {
  187. // same as before, ignore index check
  188. fGain = value;
  189. }
  190. /* ----------------------------------------------------------------------------------------
  191. * Audio/MIDI Processing */
  192. void run(const float**, float** outputs, uint32_t frames) override
  193. {
  194. // get the mono input and output
  195. const float* const in = inputs[0];
  196. /* */ float* const out = outputs[0];
  197. // apply gain against all samples
  198. for (uint32_t i=0; i < frames; ++i)
  199. out[i] = in[i] * fGain;
  200. }
  201. private:
  202. float fGain;
  203. };
  204. @endcode
  205. See the Parameter struct for more information about parameters.
  206. @section Programs
  207. Programs in DPF refer to plugin-side presets (usually called "factory presets"),
  208. an initial set of presets provided by plugin authors included in the actual plugin.
  209. To use programs you must first enable them by setting @ref DISTRHO_PLUGIN_WANT_PROGRAMS to 1 in your DistrhoPluginInfo.h file.@n
  210. When enabled you'll need to override 2 new function in your plugin code,
  211. Plugin::initProgramName(uint32_t, String&) and Plugin::loadProgram(uint32_t).
  212. Here's an example of a plugin with a "default" program:
  213. @code
  214. class PluginWithPresets : public Plugin
  215. {
  216. public:
  217. PluginWithPresets()
  218. : Plugin(2, 1, 0), // 2 parameters, 1 program and 0 states
  219. fGainL(1.0f),
  220. fGainR(1.0f),
  221. {
  222. }
  223. protected:
  224. /* ----------------------------------------------------------------------------------------
  225. * Information */
  226. const char* getLabel() const override
  227. {
  228. return "Prog";
  229. }
  230. const char* getMaker() const override
  231. {
  232. return "DPF";
  233. }
  234. const char* getLicense() const override
  235. {
  236. return "MIT";
  237. }
  238. uint32_t getVersion() const override
  239. {
  240. return d_version(1, 0, 0);
  241. }
  242. int64_t getUniqueId() const override
  243. {
  244. return d_cconst('P', 'r', 'o', 'g');
  245. }
  246. /* ----------------------------------------------------------------------------------------
  247. * Init */
  248. /**
  249. Initialize a parameter.
  250. This function will be called once, shortly after the plugin is created.
  251. */
  252. void initParameter(uint32_t index, Parameter& parameter) override
  253. {
  254. parameter.hints = kParameterIsAutomable;
  255. parameter.ranges.min = 0.0f;
  256. parameter.ranges.max = 2.0f;
  257. parameter.ranges.def = 1.0f;
  258. switch (index)
  259. {
  260. case 0;
  261. parameter.name = "Gain Right";
  262. parameter.symbol = "gainR";
  263. break;
  264. case 1;
  265. parameter.name = "Gain Left";
  266. parameter.symbol = "gainL";
  267. break;
  268. }
  269. }
  270. /**
  271. Set the name of the program @a index.
  272. This function will be called once, shortly after the plugin is created.
  273. */
  274. void initProgramName(uint32_t index, String& programName)
  275. {
  276. switch(index)
  277. {
  278. case 0:
  279. programName = "Default";
  280. break;
  281. }
  282. }
  283. /* ----------------------------------------------------------------------------------------
  284. * Internal data */
  285. /**
  286. Get the current value of a parameter.
  287. */
  288. float getParameterValue(uint32_t index) const override
  289. {
  290. switch (index)
  291. {
  292. case 0;
  293. return fGainL;
  294. case 1;
  295. return fGainR;
  296. }
  297. }
  298. /**
  299. Change a parameter value.
  300. */
  301. void setParameterValue(uint32_t index, float value) override
  302. {
  303. switch (index)
  304. {
  305. case 0;
  306. fGainL = value;
  307. break;
  308. case 1;
  309. fGainR = value;
  310. break;
  311. }
  312. }
  313. /**
  314. Load a program.
  315. */
  316. void loadProgram(uint32_t index)
  317. {
  318. switch(index)
  319. {
  320. case 0:
  321. fGainL = 1.0f;
  322. fGainR = 1.0f;
  323. break;
  324. }
  325. }
  326. /* ----------------------------------------------------------------------------------------
  327. * Audio/MIDI Processing */
  328. void run(const float**, float** outputs, uint32_t frames) override
  329. {
  330. // get the left and right audio buffers
  331. const float* const inL = inputs[0];
  332. const float* const inR = inputs[0];
  333. /* */ float* const outL = outputs[0];
  334. /* */ float* const outR = outputs[0];
  335. // apply gain against all samples
  336. for (uint32_t i=0; i < frames; ++i)
  337. {
  338. outL[i] = inL[i] * fGainL;
  339. outR[i] = inR[i] * fGainR;
  340. }
  341. }
  342. private:
  343. float fGainL, fGainR;
  344. };
  345. @endcode
  346. This is a work-in-progress documentation page. States, MIDI, Latency, Time-Position and UI are still TODO.
  347. */
  348. #if 0
  349. @section States
  350. describe them
  351. @section MIDI
  352. describe them
  353. @section Latency
  354. describe it
  355. @section Time-Position
  356. describe it
  357. @section UI
  358. describe them
  359. #endif
  360. /* ------------------------------------------------------------------------------------------------------------
  361. * Plugin Macros */
  362. /**
  363. @defgroup PluginMacros Plugin Macros
  364. C Macros that describe your plugin. (defined in the "DistrhoPluginInfo.h" file)
  365. With these macros you can tell the host what features your plugin requires.@n
  366. Depending on which macros you enable, new functions will be available to call and/or override.
  367. All values are either integer or strings.@n
  368. For boolean-like values 1 means 'on' and 0 means 'off'.
  369. The values defined in this group are for documentation purposes only.@n
  370. All macros are disabled by default.
  371. Only 4 macros are required, they are:
  372. - @ref DISTRHO_PLUGIN_NAME
  373. - @ref DISTRHO_PLUGIN_NUM_INPUTS
  374. - @ref DISTRHO_PLUGIN_NUM_OUTPUTS
  375. - @ref DISTRHO_PLUGIN_URI
  376. @{
  377. */
  378. /**
  379. The plugin name.@n
  380. This is used to identify your plugin before a Plugin instance can be created.
  381. @note This macro is required.
  382. */
  383. #define DISTRHO_PLUGIN_NAME "Plugin Name"
  384. /**
  385. Number of audio inputs the plugin has.
  386. @note This macro is required.
  387. */
  388. #define DISTRHO_PLUGIN_NUM_INPUTS 2
  389. /**
  390. Number of audio outputs the plugin has.
  391. @note This macro is required.
  392. */
  393. #define DISTRHO_PLUGIN_NUM_OUTPUTS 2
  394. /**
  395. The plugin URI when exporting in LV2 format.
  396. @note This macro is required.
  397. */
  398. #define DISTRHO_PLUGIN_URI "urn:distrho:name"
  399. /**
  400. Whether the plugin has a custom %UI.
  401. @see DISTRHO_UI_USE_NANOVG
  402. @see UI
  403. */
  404. #define DISTRHO_PLUGIN_HAS_UI 1
  405. /**
  406. Whether the plugin processing is realtime-safe.@n
  407. TODO - list rtsafe requirements
  408. */
  409. #define DISTRHO_PLUGIN_IS_RT_SAFE 1
  410. /**
  411. Whether the plugin is a synth.@n
  412. @ref DISTRHO_PLUGIN_WANT_MIDI_INPUT is automatically enabled when this is too.
  413. @see DISTRHO_PLUGIN_WANT_MIDI_INPUT
  414. */
  415. #define DISTRHO_PLUGIN_IS_SYNTH 1
  416. /**
  417. Request the minimum buffer size for the input and output event ports.@n
  418. Currently only used in LV2, with a default value of 2048 if unset.
  419. */
  420. #define DISTRHO_PLUGIN_MINIMUM_BUFFER_SIZE 2048
  421. /**
  422. Whether the plugin has an LV2 modgui.
  423. This will simply add a "rdfs:seeAlso <modgui.ttl>" on the LV2 manifest.@n
  424. It is up to you to create this file.
  425. */
  426. #define DISTRHO_PLUGIN_USES_MODGUI 0
  427. /**
  428. Enable direct access between the %UI and plugin code.
  429. @see UI::getPluginInstancePointer()
  430. @note DO NOT USE THIS UNLESS STRICTLY NECESSARY!!
  431. Try to avoid it at all costs!
  432. */
  433. #define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 0
  434. /**
  435. Whether the plugin introduces latency during audio or midi processing.
  436. @see Plugin::setLatency(uint32_t)
  437. */
  438. #define DISTRHO_PLUGIN_WANT_LATENCY 1
  439. /**
  440. Whether the plugin wants MIDI input.@n
  441. This is automatically enabled if @ref DISTRHO_PLUGIN_IS_SYNTH is true.
  442. */
  443. #define DISTRHO_PLUGIN_WANT_MIDI_INPUT 1
  444. /**
  445. Whether the plugin wants MIDI output.
  446. @see Plugin::writeMidiEvent(const MidiEvent&)
  447. */
  448. #define DISTRHO_PLUGIN_WANT_MIDI_OUTPUT 1
  449. /**
  450. Whether the plugin wants to change its own parameter inputs.@n
  451. Not all hosts or plugin formats support this,
  452. so Plugin::canRequestParameterValueChanges() can be used to query support at runtime.
  453. @see Plugin::requestParameterValueChange(uint32_t, float)
  454. */
  455. #define DISTRHO_PLUGIN_WANT_PARAMETER_VALUE_CHANGE_REQUEST 1
  456. /**
  457. Whether the plugin provides its own internal programs.
  458. @see Plugin::initProgramName(uint32_t, String&)
  459. @see Plugin::loadProgram(uint32_t)
  460. */
  461. #define DISTRHO_PLUGIN_WANT_PROGRAMS 1
  462. /**
  463. Whether the plugin uses internal non-parameter data.
  464. @see Plugin::initState(uint32_t, String&, String&)
  465. @see Plugin::setState(const char*, const char*)
  466. */
  467. #define DISTRHO_PLUGIN_WANT_STATE 1
  468. /**
  469. Whether the plugin implements the full state API.
  470. When this macro is enabled, the plugin must implement a new getState(const char* key) function, which the host calls when saving its session/project.
  471. This is useful for plugins that have custom internal values not exposed to the host as key-value state pairs or parameters.
  472. Most simple effects and synths will not need this.
  473. @note this macro is automatically enabled if a plugin has programs and state, as the key-value state pairs need to be updated when the current program changes.
  474. @see Plugin::getState(const char*)
  475. */
  476. #define DISTRHO_PLUGIN_WANT_FULL_STATE 1
  477. /**
  478. Whether the plugin wants time position information from the host.
  479. @see Plugin::getTimePosition()
  480. */
  481. #define DISTRHO_PLUGIN_WANT_TIMEPOS 1
  482. /**
  483. Whether the %UI uses a custom toolkit implementation based on OpenGL.@n
  484. When enabled, the macros @ref DISTRHO_UI_CUSTOM_INCLUDE_PATH and @ref DISTRHO_UI_CUSTOM_WIDGET_TYPE are required.
  485. */
  486. #define DISTRHO_UI_USE_CUSTOM 1
  487. /**
  488. The include path to the header file used by the custom toolkit implementation.
  489. This path must be relative to dpf/distrho/DistrhoUI.hpp
  490. @see DISTRHO_UI_USE_CUSTOM
  491. */
  492. #define DISTRHO_UI_CUSTOM_INCLUDE_PATH
  493. /**
  494. The top-level-widget typedef to use for the custom toolkit.
  495. This widget class MUST be a subclass of DGL TopLevelWindow class.
  496. It is recommended that you keep this widget class inside the DGL namespace,
  497. and define widget type as e.g. DGL_NAMESPACE::MyCustomTopLevelWidget.
  498. @see DISTRHO_UI_USE_CUSTOM
  499. */
  500. #define DISTRHO_UI_CUSTOM_WIDGET_TYPE
  501. /**
  502. Whether the %UI uses NanoVG for drawing instead of the default raw OpenGL calls.@n
  503. When enabled your %UI instance will subclass @ref NanoWidget instead of @ref Widget.
  504. */
  505. #define DISTRHO_UI_USE_NANOVG 1
  506. /**
  507. Whether the %UI is resizable to any size by the user.@n
  508. By default this is false, and resizing is only allowed under the plugin UI control,@n
  509. Enabling this options makes it possible for the user to resize the plugin UI at anytime.
  510. @see UI::setGeometryConstraints(uint, uint, bool, bool)
  511. */
  512. #define DISTRHO_UI_USER_RESIZABLE 1
  513. /**
  514. The %UI URI when exporting in LV2 format.@n
  515. By default this is set to @ref DISTRHO_PLUGIN_URI with "#UI" as suffix.
  516. */
  517. #define DISTRHO_UI_URI DISTRHO_PLUGIN_URI "#UI"
  518. /**
  519. Custom LV2 category for the plugin.@n
  520. This can be one of the following values:
  521. - lv2:Plugin
  522. - lv2:AllpassPlugin
  523. - lv2:AmplifierPlugin
  524. - lv2:AnalyserPlugin
  525. - lv2:BandpassPlugin
  526. - lv2:ChorusPlugin
  527. - lv2:CombPlugin
  528. - lv2:CompressorPlugin
  529. - lv2:ConstantPlugin
  530. - lv2:ConverterPlugin
  531. - lv2:DelayPlugin
  532. - lv2:DistortionPlugin
  533. - lv2:DynamicsPlugin
  534. - lv2:EQPlugin
  535. - lv2:EnvelopePlugin
  536. - lv2:ExpanderPlugin
  537. - lv2:FilterPlugin
  538. - lv2:FlangerPlugin
  539. - lv2:FunctionPlugin
  540. - lv2:GatePlugin
  541. - lv2:GeneratorPlugin
  542. - lv2:HighpassPlugin
  543. - lv2:InstrumentPlugin
  544. - lv2:LimiterPlugin
  545. - lv2:LowpassPlugin
  546. - lv2:MIDIPlugin
  547. - lv2:MixerPlugin
  548. - lv2:ModulatorPlugin
  549. - lv2:MultiEQPlugin
  550. - lv2:OscillatorPlugin
  551. - lv2:ParaEQPlugin
  552. - lv2:PhaserPlugin
  553. - lv2:PitchPlugin
  554. - lv2:ReverbPlugin
  555. - lv2:SimulatorPlugin
  556. - lv2:SpatialPlugin
  557. - lv2:SpectralPlugin
  558. - lv2:UtilityPlugin
  559. - lv2:WaveshaperPlugin
  560. See http://lv2plug.in/ns/lv2core for more information.
  561. */
  562. #define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:Plugin"
  563. /**
  564. Custom VST3 categories for the plugin.@n
  565. This is a list of categories, separated by a @c |.
  566. Each effect category can be one of the following values:
  567. - Fx
  568. - Fx|Ambisonics
  569. - Fx|Analyzer
  570. - Fx|Delay
  571. - Fx|Distortion
  572. - Fx|Dynamics
  573. - Fx|EQ
  574. - Fx|Filter
  575. - Fx|Instrument
  576. - Fx|Instrument|External
  577. - Fx|Spatial
  578. - Fx|Generator
  579. - Fx|Mastering
  580. - Fx|Modulation
  581. - Fx|Network
  582. - Fx|Pitch Shift
  583. - Fx|Restoration
  584. - Fx|Reverb
  585. - Fx|Surround
  586. - Fx|Tools
  587. Each instrument category can be one of the following values:
  588. - Instrument
  589. - Instrument|Drum
  590. - Instrument|External
  591. - Instrument|Piano
  592. - Instrument|Sampler
  593. - Instrument|Synth
  594. - Instrument|Synth|Sampler
  595. @note DPF will automatically set Mono and Stereo categories when appropriate.
  596. */
  597. #define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx"
  598. /** @} */
  599. /* ------------------------------------------------------------------------------------------------------------
  600. * Plugin Macros */
  601. /**
  602. @defgroup ExtraPluginMacros Extra Plugin Macros
  603. C Macros to customize DPF behaviour.
  604. These are macros that do not set plugin features or information, but instead change DPF internals.
  605. They are all optional.
  606. Unless stated otherwise, values are assumed to be a simple/empty define.
  607. @{
  608. */
  609. /**
  610. Whether to enable runtime plugin tests.@n
  611. This will check, during initialization of the plugin, if parameters, programs and states are setup properly.@n
  612. Useful to enable as part of CI, can safely be skipped.@n
  613. Under DPF makefiles this can be enabled by using `make DPF_RUNTIME_TESTING=true`.
  614. @note Some checks are only available with the GCC compiler,
  615. for detecting if a virtual function has been reimplemented.
  616. */
  617. #define DPF_RUNTIME_TESTING
  618. /**
  619. Whether to show parameter outputs in the VST2 plugins.@n
  620. This is disabled (unset) by default, as the VST2 format has no notion of read-only parameters.
  621. */
  622. #define DPF_VST_SHOW_PARAMETER_OUTPUTS
  623. /**
  624. Disable all file browser related code.@n
  625. Must be set as compiler macro when building DGL. (e.g. `CXXFLAGS="-DDGL_FILE_BROWSER_DISABLED"`)
  626. */
  627. #define DGL_FILE_BROWSER_DISABLED
  628. /**
  629. Disable resource files, like internally used fonts.@n
  630. Must be set as compiler macro when building DGL. (e.g. `CXXFLAGS="-DDGL_NO_SHARED_RESOURCES"`)
  631. */
  632. #define DGL_NO_SHARED_RESOURCES
  633. /**
  634. Whether to use OpenGL3 instead of the default OpenGL2 compatility profile.
  635. Under DPF makefiles this can be enabled by using `make USE_OPENGL3=true` on the dgl build step.
  636. @note This is experimental and incomplete, contributions are welcome and appreciated.
  637. */
  638. #define DGL_USE_OPENGL3
  639. /**
  640. Whether to use the GPLv2+ vestige header instead of the official Steinberg VST2 SDK.@n
  641. This is a boolean, and enabled (set to 1) by default.@n
  642. Set this to 0 in order to create non-GPL binaries.
  643. (but then at your own discretion in regards to Steinberg licensing)@n
  644. When set to 0, DPF will import the VST2 definitions from `"vst/aeffectx.h"` (not shipped with DPF).
  645. */
  646. #define VESTIGE_HEADER 1
  647. /** @} */
  648. // -----------------------------------------------------------------------------------------------------------
  649. END_NAMESPACE_DISTRHO
  650. #endif // DOXYGEN