Commit Graph

24 Commits

Author SHA1 Message Date
c547489feb ProjectM.{hpp,cpp}: Move event function stubs
This will avoid -Wunused-parameter warnings in client applications.
2022-09-15 16:57:40 +02:00
0d047407dc ProjectM.hpp: Use #pragma warning on MSVC only
Fixes multiple "warning: unknown pragma ignored [-Wunknown-pragmas]"
diagnostics on GCC/Clang when used with MinGW, both when building the
library aswell as in client applications.
2022-09-15 16:57:40 +02:00
60dd295ee6 Expose texture path in the public API, removed unused font settings. 2022-09-09 00:45:58 +02:00
66380727b2 Create texture search path list in ProjectM class, pass it to TextureManager. 2022-09-09 00:45:58 +02:00
9298ae396c Remove unused RenderItem* files 2022-06-09 10:48:57 +02:00
65a2496bfa Removed parameters from ProjectM initializer functions and set aspect correction earlier.
All parameters were just values from the internal settings struct, which is readily available - no need to pass them on the stack.
2022-06-06 18:50:50 +02:00
828a0eb04a Moved comments for ProjectM::RenderFrameOnlyPass1 to header. 2022-06-06 18:50:50 +02:00
3dbf4ecb4b Instantiate PipelineContext directly.
The class has no real dependencies and sind we no longer need to hide internal dependencies we can just use it directly.
2022-06-06 18:50:50 +02:00
1e25e2119c Removed unused "interface" enum. 2022-06-06 18:50:50 +02:00
03f202859b Moved inline implementations to ProjectM.cpp. 2022-06-06 18:50:50 +02:00
1af2b97e50 Remove ProjectM::DestroyPresetTools
Unique pointers are destroyed automatically during destruction of the class and the method isn't called from anywhere else.
2022-06-06 18:50:50 +02:00
0a271b8086 Remove unnecessary/dead code from ProjectM::InitializePresetTools.
Function is only called from constructors, so failing to initialize important subsystems would leave projectM unusable, and we can simply let the exception bubble up to the caller. Such exceptions are already being caught in the C wrapper.
2022-06-06 18:50:50 +02:00
2c2a830843 Reformatted ProjectM class code 2022-06-06 18:50:50 +02:00
db6959c3ab Cleaned up member function parameters. 2022-06-06 18:50:50 +02:00
60f93d7de1 Use trailing return types. 2022-06-06 18:50:50 +02:00
b7e3943cc2 Move methods only used internally into private section. 2022-06-06 18:50:50 +02:00
73c6d2793c Fixed member casing in ProjectM class. 2022-06-06 18:50:50 +02:00
5e5b35fdb8 Replaced behaviour FLAG_* constants with an enum. 2022-06-06 18:50:50 +02:00
27b1a57b82 Removed unimplemented members. 2022-06-06 18:50:50 +02:00
3cc3667347 Moved class members to bottom, replaced some types and added default initializers.
Mostly replaced raw pointers with std::unique_ptr for easier memory management. Probably not needed for many of those classes, but was the least intrusive change for now.
2022-06-06 18:50:50 +02:00
7488250cab Removed framerate limiting code from ProjectM class.
The library should not hold up any external render loop. Waiting for vsync or achieving a target FPS value should be done by the outside application after presenting the render result.
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
1385adb368 Cleaned up includes in ProjectM class. 2022-06-06 18:50:50 +02:00
f2b04480c0 Renamed projectM class to ProjectM 2022-06-06 18:50:50 +02:00