Started work on UserAnimation.
1 parent 2723dac commit 7ece56d4ddf7768e39ff9994bc53e794b415deba
@glproj03 glproj03 authored on 30 Jan 2006
Showing 8 changed files
View
2
■■■
Makefile
ifeq "$(DEBUG)" "yes"
CXXFLAGS := $(CXXFLAGS) -g -DDEBUG
endif
 
OBJECTS = main.o poly.o model.o light.o vec.o color.o
OBJECTS = main.o poly.o model.o light.o vec.o color.o thing.o animation.o
 
all: $(OBJECTS)
@if [ ! -d $(BINDIR) ]; then \
$(call run,$(MKDIR) $(BINDIR)); \
View
43
include/animation.h 0 → 100644
#ifndef _ANIMATION_H
#define _ANIMATION_H
 
#include "thing.h"
 
#include <string>
 
#ifndef PI
#define PI 3.14159265f
#endif
 
using namespace std;
 
class Animation {
public:
Animation();
void init();
void tick();
};
 
class UserAnimation : public Animation {
private:
int mouseX;
int mouseY;
float speed;
int current;
std::vector<Thing*> things;
int kbdlock;
bool showNormals;
bool showMe;
float delta;
bool trace;
public:
UserAnimation();
UserAnimation(Thing* t);
UserAnimation(std::vector<Thing*> ths);
void addThing(Thing* t);
void init();
void tick();
};
 
#endif
View
include/light.h
View
include/poly.h
View
include/thing.h 0 → 100644
View
sources/animation.cpp 0 → 100644
View
sources/main.cpp
View
sources/thing.cpp 0 → 100644