nngn
Loading...
Searching...
No Matches
entity.h
Go to the documentation of this file.
1#ifndef NNGN_TEST_BENCH_ENTITY_H
2#define NNGN_TEST_BENCH_ENTITY_H
3
4#include <random>
5
6#include <QTest>
7
9#include "math/camera.h"
10#include "render/animation.h"
11#include "render/light.h"
12#include "render/renderers.h"
13
14class Entities;
15
16class EntityBench : public QObject {
17 Q_OBJECT
18 std::vector<nngn::SpriteRenderer> sprites = {};
19 std::vector<nngn::Camera> cameras = {};
20 std::vector<nngn::Animation> animations = {};
21 std::vector<nngn::AABBCollider> colliders = {};
22 std::vector<nngn::Light> lights = {};
23 void clear();
26 void benchmark_full(Entities &&es);
27 void benchmark(Entities &&es);
28public:
30private slots:
31 void update_pos();
35};
36
37#endif
Definition entity.h:51
Definition entity.h:16
void update_pos_with_holes()
Definition entity.cpp:101
void benchmark(Entities &&es)
Definition entity.cpp:90
void update_pos_components()
Definition entity.cpp:98
std::vector< nngn::Light > lights
Definition entity.h:22
std::vector< nngn::SpriteRenderer > sprites
Definition entity.h:18
void clear()
Definition entity.cpp:63
void update_pos_components_with_holes()
Definition entity.cpp:107
void benchmark_full(Entities &&es)
Definition entity.cpp:85
std::vector< nngn::Camera > cameras
Definition entity.h:19
EntityBench()
Definition entity.cpp:55
Entities gen_entities_with_components()
Definition entity.cpp:73
std::vector< nngn::Animation > animations
Definition entity.h:20
Entities gen_entities()
Definition entity.cpp:71
void update_pos()
Definition entity.cpp:96
std::vector< nngn::AABBCollider > colliders
Definition entity.h:21