Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
include
shared
utilities
light.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <glm/glm.hpp>
4
5
#include "
shared/game/sharedobject.hpp
"
6
7
// struct CompareLightPos {
8
// CompareLightPos() = default;
9
// CompareLightPos(const glm::vec3& refPos) : refPos(refPos) {};
10
// bool operator()(const SharedObject& a, const SharedObject& b) const {
11
// float distanceToA = glm::distance(this->refPos, a.physics.corner);
12
// float distanceToB = glm::distance(this->refPos, b.physics.corner);
13
// return distanceToA < distanceToB;
14
// };
15
// glm::vec3 refPos;
16
// };
sharedobject.hpp
Generated by
1.9.5