mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-02-20 00:04:23 -05:00
- CMakeLists.txt: enable LTO for Release, add -O3 and -fvisibility=hidden - scene: addMesh uses std::move, removeMesh takes const shared_ptr& - entity: std::move entity into map instead of copy - clouds: cosf/sinf instead of cos/sin (float math, avoids double promotion) - game_screen: reserve trainer spell vector before push_back loop - warden_module/emulator: replace std::endl (121 stream flushes) with '\n'
28 lines
486 B
C++
28 lines
486 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <memory>
|
|
|
|
namespace wowee {
|
|
namespace rendering {
|
|
|
|
class Mesh;
|
|
|
|
class Scene {
|
|
public:
|
|
Scene() = default;
|
|
~Scene() = default;
|
|
|
|
void addMesh(std::shared_ptr<Mesh> mesh);
|
|
void removeMesh(const std::shared_ptr<Mesh>& mesh);
|
|
void clear();
|
|
|
|
const std::vector<std::shared_ptr<Mesh>>& getMeshes() const { return meshes; }
|
|
|
|
private:
|
|
std::vector<std::shared_ptr<Mesh>> meshes;
|
|
};
|
|
|
|
} // namespace rendering
|
|
} // namespace wowee
|