charcoal/CharcoalBuiltin/BuiltinBatch.h

22 lines
717 B
C
Raw Normal View History

#pragma once
#include <charcoal/Prerenderable.h>
#include <charcoal/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>
{
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-19 07:52:42 +00:00
void prerender() override { charcoal::Batch<VertexType, IndexType, element_buffer_count, RenderableT>::prerender(); }
};
}
}