$(C) font2swf.c -o $@
swfc.$(O): swfc.c parser.h ../lib/q.h
$(C) swfc.c -o $@
+swfc-feedback.$(O): swfc-feedback.c swfc-feedback.h
+ $(C) swfc-feedback.c -o $@
+swfc-history.$(O): swfc-history.c swfc-history.h
+ $(C) swfc-history.c -o $@
+swfc-interpolation.$(O): swfc-feedback.c swfc-feedback.h
+ $(C) swfc-interpolation.c -o $@
parser.$(O): parser.yy.c parser.h ../lib/q.h
$(C) parser.yy.c -o $@
pdf2swf$(E): pdf2swf.$(O) $(PDF2SWF_OBJ)
$(LL) pdf2swf.$(O) -o $@ $(PDF2SWF_OBJ) $(LIBS) $(CXXLIBS)
$(STRIP) $@
-swfc$(E): parser.$(O) swfc.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
- $(L) parser.$(O) swfc.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
+swfc$(E): parser.$(O) swfc.$(O) swfc-feedback.$(O) swfc-history.$(O) swfc-interpolation.$(O) ../lib/librfxswf$(A) ../lib/libbase$(A)
+ $(L) parser.$(O) swfc.$(O) swfc-feedback.$(O) swfc-history.$(O) swfc-interpolation.$(O) -o $@ ../lib/librfxswf$(A) ../lib/libbase$(A) $(LIBS)
$(STRIP) $@
install:
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
-#include "feedback.h"
+#include "swfc-feedback.h"
void syntaxerror(char*format, ...)
{
#include <stdlib.h>
#include <memory.h>
-#include "history.h"
+#include "swfc-history.h"
change_t* change_new(U16 frame, int function, float value, interpolation_t* inter)
{
#ifndef __HISTORY_H
#define __HISTORY_Y
-#include "types.h"
-#include "rfxswf.h"
-#include "q.h"
-#include "feedback.h"
-#include "interpolation.h"
+#include "../lib/types.h"
+#include "../lib/rfxswf.h"
+#include "../lib/q.h"
+#include "swfc-feedback.h"
+#include "swfc-interpolation.h"
enum
{
#include <stdlib.h>
#include <math.h>
#include <memory.h>
-#include "interpolation.h"
+#include "swfc-interpolation.h"
static inline float poly(float fraction, float start, float delta, int degree)
{
#include "../lib/wav.h"
#include "parser.h"
#include "../lib/png.h"
-#include "../lib/interpolation.h"
-#include "../lib/history.h"
+#include "swfc-feedback.h"
+#include "swfc-interpolation.h"
+#include "swfc-history.h"
//#define DEBUG
static char * outputname = "output.swf";
dictionary_put2(&textures, name, texture);
}
-void s_font(char*name, char*filename, char *glyphs)
+void s_font(char*name, char*filename)
{
if(dictionary_lookup(&fonts, name))
syntaxerror("font %s defined twice", name);
SWFFONT* font;
- font = swf_LoadFont(filename, glyphs);
+ font = swf_LoadFont(filename);
if(font == 0) {
warning("Couldn't open font file \"%s\"", filename);
{
char*name = lu(args, "name");
char*filename = lu(args, "filename");
- fontData* usage = getFontData(name);
- char* glyphs = usage->glyphs;
- if (usage->needsAll)
- glyphs = "";
- else
- if (usage->notUsed)
- {
- printf("font %s was defined but not used\n", name);
- return 0;
- }
- s_font(name, filename, glyphs);
+ s_font(name, filename);
return 0;
}