blob: de9cb872878f4992cd902b23fc6bd222e7a90a42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "IndexBuffer.h"
#include "Renderer.h"
#include "Platform/OpenGL/OpenGLIndexBuffer.h"
namespace Donut
{
IndexBuffer* IndexBuffer::Create(const uint32_t* indices, uint32_t count)
{
switch (Renderer::GetAPI())
{
case RendererAPI::API::OpenGL:
return new OpenGLIndexBuffer(indices, count);
default:
return nullptr;
}
}
};
|