Simulant
21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
simulant
behaviours
material
warp.h
1
/* * Copyright (c) 2011-2017 Luke Benstead https://simulant-engine.appspot.com
2
*
3
* This file is part of Simulant.
4
*
5
* Simulant is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU Lesser General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* Simulant is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public License
16
* along with Simulant. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef WARP_H
20
#define WARP_H
21
22
#include "../../assets/material.h"
23
#include "../behaviour.h"
24
#include "../../generic/managed.h"
25
26
namespace
smlt
{
27
namespace
behaviours {
28
namespace
material {
29
30
class
Warp
:
31
public
MaterialBehaviour
,
32
public
RefCounted
<Warp> {
33
34
public
:
35
Warp
(
Organism
* material):
36
MaterialBehaviour
(
dynamic_cast<
Material
*
>
(material)) {
37
38
}
39
40
const
char
* name()
const override
{
return
"Warped Material"
; }
41
42
private
:
43
void
update(
float
dt)
override
;
44
float
time_ = 0.0f;
45
};
46
47
}
48
}
49
}
50
51
#endif // WARP_H
smlt::MaterialBehaviour
Definition:
behaviour.h:114
smlt::Organism
Definition:
behaviour.h:132
smlt::Material
Definition:
material.h:95
smlt::RefCounted
Definition:
managed.h:65
smlt
Definition:
animation.cpp:25
smlt::behaviours::material::Warp
Definition:
warp.h:32
Generated by
1.8.20