charcoal/OpenGLEngine/SpriteBatch.h

27 lines
661 B
C
Raw Normal View History

#pragma once
#include "BuiltinBatch.h"
namespace charcoal
{
namespace builtin
{
template <typename VertexType, typename IndexType, typename RenderableT = RenderableT<VertexType, IndexType> >
class SpriteBatch : public builtin::Batch<VertexType, IndexType, 1, RenderableT>
{
SpriteBatch(
RenderableT* renderable,
int element_count
) : PoseableBatch(renderable, element_count, element_count)
{}
SpriteBatch(
RenderableT* renderable,
int element_count,
int element_render_count
) : builtin::Batch<VertexType, IndexType, 1, RenderableT>(renderable, element_render_count), m_pose_elements(element_count)
{}
};
}
}