cast cast what
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
#include "hart_module.hpp"
|
||||
|
||||
#include <renderer/ray_source.hpp>
|
||||
#include <scene/scene.hpp>
|
||||
#include <scene/mesh.hpp>
|
||||
|
||||
using namespace inferno;
|
||||
|
||||
HHM::HHM()
|
||||
@@ -20,26 +24,35 @@ HARTModuleDirectory* HHM::getModuleDirectory()
|
||||
|
||||
void HHM::newScene(Scene* scene)
|
||||
{
|
||||
// extract mesh's
|
||||
HARTModule* mod = mDirectory.getActiveModule();
|
||||
std::vector<Mesh*> meshs = scene->getRenderables();
|
||||
for (const auto* mesh : meshs) {
|
||||
// mesh->getVerticies();
|
||||
}
|
||||
// mod->submitTris();
|
||||
}
|
||||
|
||||
void HHM::notifySceneUpdate()
|
||||
{
|
||||
HARTModule* mod = mDirectory.getActiveModule();
|
||||
// same again
|
||||
}
|
||||
|
||||
void HHM::startTrace(RaySource* sourceScatter)
|
||||
void HHM::startTrace(RayField* sourceScatter)
|
||||
{
|
||||
|
||||
HARTModule* mod = mDirectory.getActiveModule();
|
||||
mod->submitQueue(reinterpret_cast<std::vector<Ray*>>(sourceScatter));
|
||||
}
|
||||
|
||||
void HHM::rayReturn(HitInfo* hit)
|
||||
{
|
||||
HARTModule* mod = mDirectory.getActiveModule();
|
||||
|
||||
}
|
||||
|
||||
void HHM::bounce(Ray* newRay)
|
||||
{
|
||||
HARTModule* mod = mDirectory.getActiveModule();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user