-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathr_pipeline.h
More file actions
49 lines (37 loc) · 1005 Bytes
/
r_pipeline.h
File metadata and controls
49 lines (37 loc) · 1005 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
48
49
#ifndef R_PIPELINE_HDR
#define R_PIPELINE_HDR
#include "m_vec.h"
#include "m_quat.h"
#include "m_mat.h"
namespace r {
struct pipeline {
pipeline();
void setScale(const m::vec3 &scale);
void setWorld(const m::vec3 &worldPosition);
void setRotate(const m::mat4 &rotate);
void setPosition(const m::vec3 &position);
void setRotation(const m::quat &rotation);
void setPerspective(const m::perspective &p);
void setTime(float time);
void setDelta(float delta);
const m::mat4 world() const;
const m::mat4 view() const;
const m::mat4 projection() const;
// camera accessors.
const m::vec3 &position() const;
const m::quat &rotation() const;
const m::perspective &perspective() const;
float time() const;
float delta() const;
private:
m::perspective m_perspective;
m::vec3 m_scale;
m::vec3 m_world;
m::mat4 m_rotate;
m::vec3 m_position;
m::quat m_rotation;
float m_time;
float m_delta;
};
}
#endif