2018-09-13 23:21:34 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Prerenderable.h"
|
|
|
|
#include "Batch.h"
|
|
|
|
|
|
|
|
namespace charcoal
|
|
|
|
{
|
|
|
|
namespace builtin
|
|
|
|
{
|
2018-09-19 07:52:42 +00:00
|
|
|
template <typename VertexType, typename IndexType, int element_buffer_count, typename RenderableT = RenderableT<VertexType, IndexType> >
|
|
|
|
class Batch : public Prerenderable, public charcoal::Batch<VertexType, IndexType, element_buffer_count, RenderableT>
|
2018-09-13 23:21:34 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
Batch(
|
2018-09-19 07:52:42 +00:00
|
|
|
const RenderableT* renderable,
|
2018-09-14 22:09:43 +00:00
|
|
|
int element_render_count
|
2018-09-19 07:52:42 +00:00
|
|
|
) : charcoal::Batch<VertexType, IndexType, element_buffer_count, RenderableT>(renderable, element_render_count) {}
|
2018-09-13 23:21:34 +00:00
|
|
|
|
2018-09-19 07:52:42 +00:00
|
|
|
void prerender() override { charcoal::Batch<VertexType, IndexType, element_buffer_count, RenderableT>::prerender(); }
|
2018-09-13 23:21:34 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|