- Adjusted Material/Texture/Lighting outline.

This commit is contained in:
2025-09-29 18:39:14 -04:00
parent 8925b3f2f0
commit 7b87828f06
3 changed files with 28 additions and 45 deletions

View File

@@ -35,11 +35,8 @@
#include <fennec/containers/list.h>
#include <fennec/containers/optional.h>
#include <fennec/containers/traversal.h>
#include <fennec/math/exponential.h>
#include <fennec/memory/allocator.h>
// TODO: this should probably be refactored to use pointers over tables
namespace fennec
{

View File

@@ -241,15 +241,15 @@ public:
/// \param type The type of component
/// \param id The id of the component instance
/// \return
static component* get(uint64_t type, size_t id) {
auto& typei = _typelist[type];
return typei->get(id);
static component* get(const component_t& c) {
auto& typei = _typelist[c.type];
return typei->get(c.id);
}
template<typename ComponentT>
static component* get(size_t comp) {
static component* get(size_t id) {
auto& typei = _typelist[uuid<ComponentT>()];
return typei->get(comp);
return typei->get(id);
}
static void destroy(size_t type, size_t comp) {