File: twisthandler.h

package info (click to toggle)
amoeba 1.1-13
  • links: PTS
  • area: contrib
  • in suites: sarge
  • size: 732 kB
  • ctags: 971
  • sloc: cpp: 8,315; makefile: 178
file content (29 lines) | stat: -rw-r--r-- 613 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef _TWISTHANDLER_H
#define _TWISTHANDLER_H 1

#include "main/event.h"
#include "main/mainloop.h"
#include "main/objhandler.h"
#include "math/array.h"

class TwistHandler : public ObjHandler {
protected:
	Array<vertex> orig_vertices;
	vertex *atan_cache;
	int *vertex_alias;

	bool normalspike;
	struct vertex *spike_vert;
	struct texcoord *spike_tc;
	Texture *normalspiketex;
	
public:
	TwistHandler(MainLoop *ml, const char *title, const char *elem, Hashtable *attr);
	~TwistHandler();
	
	void start_effect();
	void draw_scene(float progress);
	void end_effect();
};

#endif /* !defined(_TWISTHANDLER_H) */