Skip to content

Commit 707e200

Browse files
authored
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
1 parent 5ac192c commit 707e200

File tree

4 files changed

+34
-3
lines changed

4 files changed

+34
-3
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ AC_CONFIG_FILES([
3131
src/libprojectM/Renderer/Makefile
3232
src/libprojectM/NativePresetFactory/Makefile
3333
src/libprojectM/MilkdropPresetFactory/Makefile
34+
src/NativePresets/Makefile
3435
])
3536

3637
dnl from https://stackoverflow.com/questions/30897170/ac-subst-does-not-expand-variable answer: https://stackoverflow.com/a/30960268

src/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SUBDIRS=libprojectM projectM-sdl
1+
SUBDIRS=libprojectM projectM-sdl NativePresets

src/NativePresets/Makefile.am

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
AM_CPPFLAGS = \
2+
-include $(top_builddir)/config.h \
3+
-I${top_srcdir}/src/libprojectM \
4+
-I${top_srcdir}/src/libprojectM/Renderer \
5+
-I${top_srcdir}/src/libprojectM/NativePresetFactory
6+
7+
AM_CFLAGS = ${my_CFLAGS} \
8+
-fvisibility=hidden \
9+
-ffunction-sections \
10+
-fdata-sections
11+
12+
presetsdir = $(pkgdatadir)/presets
13+
14+
# native presets are shared object files.
15+
# they should get installed to $presetsdir/
16+
presets_LTLIBRARIES = \
17+
libMstressJuppyDancer.la \
18+
libRLGFractalDrop7c.la \
19+
libRovastarDarkSecret.la \
20+
libRovastarDriftingChaos.la \
21+
libRovastarFractalSpiral.la \
22+
libRovastarFractopiaFrantic.la
23+
24+
libMstressJuppyDancer_la_SOURCES = MstressJuppyDancer.cpp
25+
libRLGFractalDrop7c_la_SOURCES = RLGFractalDrop7c.cpp
26+
libRovastarDarkSecret_la_SOURCES = RovastarDarkSecret.cpp
27+
libRovastarDriftingChaos_la_SOURCES = RovastarDriftingChaos.cpp
28+
libRovastarFractalSpiral_la_SOURCES = RovastarFractalSpiral.cpp
29+
libRovastarFractopiaFrantic_la_SOURCES = RovastarFractopiaFrantic.cpp

src/NativePresets/RLGFractalDrop7c.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "MilkdropCompatability.hpp"
1212
#include "VideoEcho.hpp"
1313
#include "NativePreset.hpp"
14+
#include "MilkdropWaveform.hpp"
1415

1516
class RLGFractalDrop7c : public Pipeline
1617
{
@@ -140,7 +141,7 @@ class RLGFractalDrop7c : public Pipeline
140141
shape4.ang = time;
141142
}
142143

143-
virtual Point PerPixel(Point p, const PerPixelContext context)
144+
virtual PixelPoint PerPixel(PixelPoint p, const PerPixelContext context)
144145
{
145146
Transforms::Zoom(p,context,1.029902,1.00);
146147
return p;
@@ -149,7 +150,7 @@ class RLGFractalDrop7c : public Pipeline
149150
};
150151

151152

152-
typedef NativePreset<RLGFractalDrop7> RLGFractalDrop7Preset;
153+
typedef NativePreset<RLGFractalDrop7c> RLGFractalDrop7Preset;
153154

154155
extern "C" RLGFractalDrop7Preset * create(const char * url) {
155156
return new RLGFractalDrop7Preset(std::string(url));

0 commit comments

Comments
 (0)