Commit Graph

41 Commits

Author SHA1 Message Date
b23b5ce25c Deleted all playlist-related code from libprojectM.
Note: SDL test UI won't compile after this commit. Will be fixed in a later commit, when the playlist library is done.
2022-11-21 19:56:28 +01:00
b6dfb6e195 Moved public API headers into an INTERFACE library 2022-11-21 19:54:56 +01:00
75f802e261 Remove the "d" hotkey for debug image output. 2022-10-23 18:00:00 +02:00
cb0bbfa860 Removed all text-related code from the core lib.
This removes:
- "Toast" messages
- The help text
- Statistics
- Preset name and (unimplemented) song title display
- Preset selection list and search menu

Some of the above functionality might later be added as an optional library, in a separate repository and with proper UTF-8 support.
2022-09-20 22:46:03 +02:00
33523ffe63 Class Renderer: Made internally used member private, removed a few unused members. 2022-09-09 00:45:58 +02:00
1e25e2119c Removed unused "interface" enum. 2022-06-06 18:50:50 +02:00
db6959c3ab Cleaned up member function parameters. 2022-06-06 18:50:50 +02:00
73c6d2793c Fixed member casing in ProjectM class. 2022-06-06 18:50:50 +02:00
c9b8d5e76a Renamed ProjectM class members to have m_ prefix. 2022-06-06 18:50:50 +02:00
f2b04480c0 Renamed projectM class to ProjectM 2022-06-06 18:50:50 +02:00
3ff81ad574 Remove unnecessary dependents 2022-05-29 15:29:54 +02:00
e2d265f038 Issue#130 (#546)
* Fixes issue projectM-visualizer/projectm#130

Adds functionality of writing a rendered frame to file
as requested by the issue https://github.com/projectM-visualizer/projectm/issues/130.

Keyhandler.cpp has been updated to handle the keydown of 'd',
which triggers writeNextFrameToFile to be set to true, which means
at the end of Renderer::FinishPass1 we write the texture contents to file.

Renderer::debugWriteMainTextureToFile() const contains the functionality
of writing the contents of the main texture.

* Addition to commit that fixes projectM-visualizer/projectm#130

Safe file write, making sure we don't overflow while creating
the filename. If c++20 features was enabled, this could
look so, so much better.

* Added keybinding to README doc

* Formatting
Fixed snake_case to camelCase
Changed delete to delete[]
Turned magic constant to a named variable
2021-10-23 22:22:49 +03:00
61b1646b24 Minor menu changes (#490) 2021-06-19 16:46:07 +03:00
fd1d235a05 Fix various warnings (#436)
* Fix Wreorder warnings

* Fix various unused variable/parameter warnings

* Fix Wparentheses warnings

* Fix Wignored-qualifiers warning

* Fix uninitialized variable warnings

* Fix Wshadow warnings

* Fix Wsign-compare warnings

* Fix miscellaneous warnings
2020-11-26 11:05:40 +02:00
05d41d21af reset search function, and start to handle / key 2020-09-01 10:20:27 +04:00
15230781e1 comments 2020-09-01 10:20:16 +04:00
9f37e97b2f showsearch 2020-09-01 10:18:38 +04:00
45adbba0ad toggleSearchText 2020-09-01 10:18:38 +04:00
ef6800cfcd Disable most keybinds if search menu is up.
Return enters search menu.
Return/Escape exits search menu.
2020-09-01 10:17:57 +04:00
c1f40eb0d5 tweak beat sensitivity to be more sensitive / granular 2020-08-16 19:59:36 +04:00
0937f3959c Allow home / end to jump to top / bottom of preset list. 2020-08-11 20:33:00 +04:00
c05c457ad4 Rename & expected random handling. 2020-08-09 14:07:27 +04:00
c2a232f6fd Handle keys: m, page up, and page down. 2020-08-07 15:44:31 +04:00
4c180cb0aa Toast for shuffle enable/disable and beat sensitivity +/- 2020-07-28 22:26:43 +04:00
758348f25a Beat sensitivity implemented (#348)
* Beat detect sensitivity fix.

* Default: 1.0

* ReadMe beat sensitivity min/max.

* Beat sensitivity from config or settings isn't initialized.

* Smarter position.

* Make PCMScale (vol_history) also impacted by beat_sensitivity.

* Enhance and clarify Hard Cuts and better separate beat sensitivity.

* Forgot one config.

* Consistency with defaults.

* Even more clear about the default for Beat Sensitivity.
2020-05-15 17:49:28 +03:00
9760ae934f Implement toast messages (#351)
* Bette

* Removing test message.

* New timing functions. Handle drawing text that's too big.

* SDL space and switch libprojectM to use setPresetLock for L.
2020-05-14 22:08:50 +03:00
a24dcca470 Display status (#347)
* Display some useful stats.

* Document F4 key in README
2020-05-07 23:31:44 +03:00
260a0285b0 Milkdrop keys (#279) 2020-01-19 12:54:58 +02:00
b4a3fd6d0f Menu and FPS changes (#303)
* Set build target to 10 (generic) instead the specific build the original author used.

* Move help menu down a line and indent to align with preset title and FPS.

* More accurate FPS:
 - by resetting timers whenever F5 is pushed.
 - by performing math based on percise seconds that passed, rather than assuming it will trigger exactly 250 milliseconds.

* Set idle preset name so it's displayed with F3.
2020-01-18 12:57:57 +02:00
8c4763e79a Display FPS (#297)
* Display FPS

* Updates based on feedback from Mischa.

* Quick typo fix.
2020-01-09 15:26:44 +02:00
72cff7c94e Updated the keybindings similar to MilkDrop (#124)
1. Updated keybinding for previous preset to BACKSPACE
2. Updated keybinding for hard cut next preset to H
2019-11-16 08:22:39 +02:00
4af1ca5d0f support for +/- keys to edit ratings.
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1362 6778bc44-b910-0410-a7a0-be141de4315d
2011-10-28 02:57:24 +00:00
d08a9648e7 context menu for preset switching. bug fix selecting presets from
projectM.  moved preset change related code from key handler to 
projectm. 


git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1262 6778bc44-b910-0410-a7a0-be141de4315d
2009-08-16 22:47:22 +00:00
2bb3c84649 smooth preset switching hot keys of N/P/R.
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1257 6778bc44-b910-0410-a7a0-be141de4315d
2009-08-03 03:57:23 +00:00
308e797deb oops reverting some files
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1255 6778bc44-b910-0410-a7a0-be141de4315d
2009-08-03 02:11:45 +00:00
1925d77549 even better composite renderitem smoothing
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1254 6778bc44-b910-0410-a7a0-be141de4315d
2009-08-03 02:10:06 +00:00
9a8318ee22 Bug #1849729. Adding class DLLEXPORT attributes, removing method-specific ones.
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1249 6778bc44-b910-0410-a7a0-be141de4315d
2009-07-25 11:18:57 +00:00
32932550ef took out preset outputs / inputs references from projectm. chaos ensued.
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/personal/carm/represet@1153 6778bc44-b910-0410-a7a0-be141de4315d
2008-09-13 04:40:32 +00:00
ece669b505 partial preset factory integration
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/personal/carm/represet@1137 6778bc44-b910-0410-a7a0-be141de4315d
2008-09-07 16:35:30 +00:00
191c790cf3 preset refactoring grunt work
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/personal/carm/represet@1133 6778bc44-b910-0410-a7a0-be141de4315d
2008-09-05 04:33:01 +00:00
aa87726bb2 renamed projectM-engin libprojectM
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1116 6778bc44-b910-0410-a7a0-be141de4315d
2008-07-22 01:08:53 +00:00