-
Notifications
You must be signed in to change notification settings - Fork 7
/
guitesteditor.h
65 lines (42 loc) · 1.05 KB
/
guitesteditor.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef _DFX_GUITESTEDITOR_H
#define _DFX_GUITESTEDITOR_H
#include <audioeffectx.h>
#include <aeffeditor.hpp>
#include <windows.h>
// #include <ddraw.h>
#include <commctrl.h>
#include <d3d8.h>
#include <d3dx8math.h>
#include "graphic.h"
struct Where {
int x;
int y;
int dx;
int dy;
};
struct GuitestEditor : public AEffEditor {
friend class AudioEffect;
virtual void update();
virtual void postUpdate();
GuitestEditor(AudioEffect *effect);
virtual ~GuitestEditor();
virtual long getRect(ERect **rect);
virtual long open(void *ptr);
virtual void close();
virtual void idle();
private:
static LONG WINAPI WindowProc (HWND hwnd, UINT message, WPARAM wParam,
LPARAM lParam);
HRESULT InitD3D(HWND hWnd);
void Render2D ();
void redraw();
HWND window;
public:
void setValue(void* fader, int value);
LPDIRECT3D8 pD3D; // = NULL; // Used to create the D3DDevice
LPDIRECT3DDEVICE8 pd3dDevice;// = NULL; // Our rendering device
/* XXX */
Graphic * ggg;
Where * www;
};
#endif