vkmEngine
1.0.15
A C++ game engine ·
vkmengine.com
Loading...
Searching...
No Matches
ocean_system.h
1
#pragma once
2
3
#include "core/system.h"
4
#include "system/ocean/ocean_data.h"
5
6
namespace
Vkm::Engine {
7
17
class
OceanSystem :
public
System {
18
public
:
19
OceanSystem() =
default
;
20
~OceanSystem()
override
=
default
;
21
22
OceanSystem(
const
OceanSystem& other) =
delete
;
23
OceanSystem& operator=(
const
OceanSystem& other) =
delete
;
24
25
OceanSystem(OceanSystem && other) =
delete
;
26
OceanSystem& operator=(OceanSystem && other) =
delete
;
27
28
public
:
29
void
update
(
FrameContext
& ctx)
override
;
30
void
fixedUpdate
(
FrameContext
& ctx)
override
;
31
32
private
:
34
void
build(
FrameContext
& ctx);
35
36
private
:
37
OceanData
m_ocean;
38
};
39
40
}
// namespace Vkm::Engine
Vkm::Engine::OceanSystem::fixedUpdate
void fixedUpdate(FrameContext &ctx) override
Execute this system at the fixed simulation rate.
Vkm::Engine::OceanSystem::update
void update(FrameContext &ctx) override
Execute this system for the current frame.
Vkm::Engine::FrameContext
Per-frame state bundle passed to every system.
Definition
system.h:57
Vkm::Engine::OceanData
The scene's sea at the moment being computed (OceanSystem): its waves, its ripples and its look - wha...
Definition
ocean_data.h:13
system
ocean
ocean_system.h
Generated by
1.14.0