charcoal/OpenGLEngine/TexturedBatch.h

35 lines
663 B
C
Raw Normal View History

#pragma once
#include "PoseableBatch.h"
2018-09-19 07:52:42 +00:00
#include "TexturedTypes.h"
namespace charcoal
{
namespace builtin
{
2018-09-19 07:52:42 +00:00
namespace textured
{
2018-09-19 07:52:42 +00:00
class Batch : public PoseableBatch<Vertex, Index, Renderable>
{
public:
Batch(
Renderable* renderable,
int element_count
) : PoseableBatch<Vertex, Index, Renderable>(renderable, element_count)
{}
2018-09-19 07:52:42 +00:00
Batch(
Renderable* renderable,
int element_count,
int element_render_count
) : PoseableBatch<Vertex, Index, Renderable>(renderable, element_count, element_render_count)
{}
2018-09-19 07:52:42 +00:00
void preprender() const override;
2018-09-16 00:43:29 +00:00
2018-09-19 07:52:42 +00:00
protected:
void setup_vao() override;
};
}
}
}