TrueReality
v0.1.1912
RingArrayCallback.h
Go to the documentation of this file.
1
/*
2
* True Reality Open Source Game and Simulation Engine
3
* Copyright © 2021 Acid Rain Studios LLC
4
*
5
* This library is free software; you can redistribute it and/or modify it under
6
* the terms of the GNU Lesser General Public License as published by the Free
7
* Software Foundation; either version 3.0 of the License, or (at your option)
8
* any later version.
9
*
10
* This library is distributed in the hope that it will be useful, but WITHOUT
11
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13
* details.
14
*
15
* You should have received a copy of the GNU Lesser General Public License
16
* along with this library; if not, write to the Free Software Foundation, Inc.,
17
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
*
19
* @author Maxim Serebrennik
20
*/
21
22
#pragma once
23
24
#include <
trCore/Export.h
>
25
26
#include <
trUtil/Timer.h
>
27
28
#include <osg/NodeCallback>
29
#include <osg/NodeVisitor>
30
36
namespace
trCore::SceneObjects
37
{
45
class
TR_CORE_EXPORT
RingArrayCallback
:
public
osg::NodeCallback
46
{
47
public
:
48
54
RingArrayCallback
();
55
61
~
RingArrayCallback
();
62
71
virtual
void
operator()(osg::Node* nodePtr, osg::NodeVisitor* nvPtr)
override
;
72
73
private
:
74
75
bool
mFirstFrame =
true
;
76
trUtil::Timer
mTimer
;
77
};
78
}
trCore::SceneObjects::RingArrayCallback::mTimer
trUtil::Timer mTimer
Definition:
RingArrayCallback.h:76
TR_CORE_EXPORT
#define TR_CORE_EXPORT
Definition:
trCore/Export.h:33
trCore::SceneObjects
Namespace that contains controls for sample scene objects.
Export.h
trUtil::Timer
Timer class is used for measuring elapsed time or time between two points.
Definition:
Timer.h:65
trCore::SceneObjects::RingArrayCallback
A ring array callback that is used to rotate the ring array (RingArray.h)
Definition:
RingArrayCallback.h:45
Timer.h
include
trCore
SceneObjects
RingArrayCallback.h
Generated by
1.8.13