mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-29 18:54:07 +00:00
Native presets (#44)
* native presets building and work. need to figure out how to install them to the right place. * revert main * comments * fix nativepreset installation dir to be presets dir
This commit is contained in:
committed by
GitHub
parent
5ac192c35b
commit
707e200676
@ -31,6 +31,7 @@ AC_CONFIG_FILES([
|
||||
src/libprojectM/Renderer/Makefile
|
||||
src/libprojectM/NativePresetFactory/Makefile
|
||||
src/libprojectM/MilkdropPresetFactory/Makefile
|
||||
src/NativePresets/Makefile
|
||||
])
|
||||
|
||||
dnl from https://stackoverflow.com/questions/30897170/ac-subst-does-not-expand-variable answer: https://stackoverflow.com/a/30960268
|
||||
|
||||
@ -1 +1 @@
|
||||
SUBDIRS=libprojectM projectM-sdl
|
||||
SUBDIRS=libprojectM projectM-sdl NativePresets
|
||||
|
||||
29
src/NativePresets/Makefile.am
Normal file
29
src/NativePresets/Makefile.am
Normal file
@ -0,0 +1,29 @@
|
||||
AM_CPPFLAGS = \
|
||||
-include $(top_builddir)/config.h \
|
||||
-I${top_srcdir}/src/libprojectM \
|
||||
-I${top_srcdir}/src/libprojectM/Renderer \
|
||||
-I${top_srcdir}/src/libprojectM/NativePresetFactory
|
||||
|
||||
AM_CFLAGS = ${my_CFLAGS} \
|
||||
-fvisibility=hidden \
|
||||
-ffunction-sections \
|
||||
-fdata-sections
|
||||
|
||||
presetsdir = $(pkgdatadir)/presets
|
||||
|
||||
# native presets are shared object files.
|
||||
# they should get installed to $presetsdir/
|
||||
presets_LTLIBRARIES = \
|
||||
libMstressJuppyDancer.la \
|
||||
libRLGFractalDrop7c.la \
|
||||
libRovastarDarkSecret.la \
|
||||
libRovastarDriftingChaos.la \
|
||||
libRovastarFractalSpiral.la \
|
||||
libRovastarFractopiaFrantic.la
|
||||
|
||||
libMstressJuppyDancer_la_SOURCES = MstressJuppyDancer.cpp
|
||||
libRLGFractalDrop7c_la_SOURCES = RLGFractalDrop7c.cpp
|
||||
libRovastarDarkSecret_la_SOURCES = RovastarDarkSecret.cpp
|
||||
libRovastarDriftingChaos_la_SOURCES = RovastarDriftingChaos.cpp
|
||||
libRovastarFractalSpiral_la_SOURCES = RovastarFractalSpiral.cpp
|
||||
libRovastarFractopiaFrantic_la_SOURCES = RovastarFractopiaFrantic.cpp
|
||||
@ -11,6 +11,7 @@
|
||||
#include "MilkdropCompatability.hpp"
|
||||
#include "VideoEcho.hpp"
|
||||
#include "NativePreset.hpp"
|
||||
#include "MilkdropWaveform.hpp"
|
||||
|
||||
class RLGFractalDrop7c : public Pipeline
|
||||
{
|
||||
@ -140,7 +141,7 @@ public:
|
||||
shape4.ang = time;
|
||||
}
|
||||
|
||||
virtual Point PerPixel(Point p, const PerPixelContext context)
|
||||
virtual PixelPoint PerPixel(PixelPoint p, const PerPixelContext context)
|
||||
{
|
||||
Transforms::Zoom(p,context,1.029902,1.00);
|
||||
return p;
|
||||
@ -149,7 +150,7 @@ public:
|
||||
};
|
||||
|
||||
|
||||
typedef NativePreset<RLGFractalDrop7> RLGFractalDrop7Preset;
|
||||
typedef NativePreset<RLGFractalDrop7c> RLGFractalDrop7Preset;
|
||||
|
||||
extern "C" RLGFractalDrop7Preset * create(const char * url) {
|
||||
return new RLGFractalDrop7Preset(std::string(url));
|
||||
|
||||
Reference in New Issue
Block a user