File: interferenceheightmaphandler.h

package info (click to toggle)
amoeba 1.1-26
  • links: PTS
  • area: contrib
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,256 kB
  • ctags: 1,561
  • sloc: cpp: 8,315; makefile: 173
file content (25 lines) | stat: -rw-r--r-- 676 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
#ifndef _INTERFERENCEHEIGHTMAPHANDLER_H
#define _INTERFERENCEHEIGHTMAPHANDLER_H 1

#include "main/event.h"
#include "main/object.h"

class InterferenceHeightmapHandler : public Object 
{
public:
	InterferenceHeightmapHandler(MainLoop *ml, const char *title, const char *elem, Hashtable *attr);
	~InterferenceHeightmapHandler();

	void start_effect();
	void draw_scene(float progress);
	void end_effect();

protected:
	int xlod, ylod;
	float speedlin, freqlinx, freqliny, ampllin;
	float speedcirc, freqcirc, amplcirc;
	
	inline float hfunc(float xf, float yf, float u1, float u2, float u3, float u4, float progress);
};

#endif /* !defined(_INTERFERENCEHEIGHTMAPHANDLER_H) */