Simulant
21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
simulant
behaviours
material
flowing.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 FLOWING_H
20
#define FLOWING_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
Flowing
:
31
public
MaterialBehaviour
,
32
public
RefCounted
<Flowing> {
33
public
:
34
Flowing
(
Organism
* material):
35
MaterialBehaviour
(
dynamic_cast<
Material
*
>
(material)) {
36
37
}
38
39
const
char
* name()
const override
{
return
"Flowing Material"
; }
40
private
:
41
void
update(
float
dt)
override
;
42
float
time_ = 0.0f;
43
};
44
45
}
46
}
47
}
48
49
#endif // FLOWING_H
smlt::MaterialBehaviour
Definition:
behaviour.h:114
smlt::Organism
Definition:
behaviour.h:132
smlt::Material
Definition:
material.h:95
smlt::behaviours::material::Flowing
Definition:
flowing.h:32
smlt::RefCounted
Definition:
managed.h:65
smlt
Definition:
animation.cpp:25
Generated by
1.8.20