-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvisualstimuli.h
More file actions
47 lines (36 loc) · 825 Bytes
/
visualstimuli.h
File metadata and controls
47 lines (36 loc) · 825 Bytes
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
#include <stdlib.h>
#include <memory>
#include <GLFW/glfw3.h>
#ifndef VISUAL_STIMULI_H
#define VISUAL_STIMULI_H
namespace VisualStimuli {
struct Flicker {
public:
Flicker(float frequency, float x, float y);
virtual ~Flicker();
Flicker(const Flicker& flicker);
Flicker& operator=(Flicker rhs);
void setSize(float value);
void setColor(unsigned char r, unsigned char g, unsigned char b);
void setPosX(float x);
void setPosY(float y);
private:
struct Impl;
std::unique_ptr<Impl> pimpl;
};
class Interface {
public:
Interface(Flicker* flickerArray, int length);
virtual ~Interface();
Interface(const Interface& ui);
Interface& operator=(Interface rhs);
void initWindow();
void render();
bool isQuit();
void quit();
private:
struct Impl;
std::unique_ptr<Impl> pimpl;
};
}
#endif