initial commit
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "asset/loader.h"
|
||||
#include "physics.h"
|
||||
#include "graphics.h"
|
||||
#include "physics.h"
|
||||
#include "utils/thread_pool.h"
|
||||
|
||||
namespace veng {
|
||||
|
||||
@@ -34,10 +35,11 @@ class Engine {
|
||||
glm::perspective(glm::radians(103.f), 800.f / 600.f, 0.1f, 1000.f);
|
||||
|
||||
gsl::not_null<Graphics*> vulkan_graphics;
|
||||
|
||||
private:
|
||||
Loader asset_loader_;
|
||||
|
||||
Physics physics_controller_;
|
||||
utils::ThreadPool thread_pool_;
|
||||
|
||||
glm::ivec2 window_size_ = {0, 0};
|
||||
std::double_t last_frame_time_ = 0.0;
|
||||
|
||||
@@ -2,11 +2,12 @@
|
||||
|
||||
#include "asset/object/model.h"
|
||||
#include "vulkan/vertex.h"
|
||||
#include "utils/thread_pool.h"
|
||||
|
||||
namespace veng {
|
||||
class Physics {
|
||||
public:
|
||||
void invokeOnColisionEvent(gsl::span<Model*> models);
|
||||
void invokeOnColisionEvent(gsl::not_null<utils::ThreadPool *> thread_pool, gsl::span<Model*> models);
|
||||
|
||||
bool RayTrace(const glm::vec3& rayOrigin, const glm::vec3& rayDir,
|
||||
const glm::vec3& v0, const glm::vec3& v1, const glm::vec3& v2,
|
||||
|
||||
Reference in New Issue
Block a user