Elevate Engine 1
Loading...
Searching...
No Matches
RendererAPI.cpp
Go to the documentation of this file.
1#include "eepch.h"
3#include "RendererAPI.h"
4
5namespace Elevate
6{
7 // todo set the rendererAPI dinamicly and not staticly
9
10 // todo remove
11 //void RendererAPI::SubmitModel(const Model& model)
12 //{
13 // m_ModelStack[model.GetShader()].push_back(model);
14 //}
15
16 //void RendererAPI::RemoveModel(const Model& model)
17 //{
18 // std::vector<Model>& stack = m_ModelStack[model.GetShader()];
19
20 // auto it = std::find_if(stack.begin(), stack.end(),
21 // [&model](const Model& m) {
22 // return &m == &model;
23 // }
24 // );
25
26 // if (it != stack.end()) // If the stack does contain the element to remove
27 // {
28 // stack.erase(it);
29 // }
30 //}
31
32 //void RendererAPI::Submitmesh(const std::shared_ptr<Shader>& shader, const Mesh& mesh)
33 //{
34 // m_MeshStack[shader].push_back(mesh);
35 //}
36}