32 lines
727 B
C++
32 lines
727 B
C++
#pragma once
|
|
|
|
#include "PoseableBatch.h"
|
|
#include "BuiltinTypes.h"
|
|
|
|
namespace charcoal
|
|
{
|
|
namespace builtin
|
|
{
|
|
class TexturedBatch : public PoseableBatch<TexturedVertex, TexturedIndex, TexturedRenderable>
|
|
{
|
|
public:
|
|
TexturedBatch(
|
|
TexturedRenderable* renderable,
|
|
int element_count
|
|
) : PoseableBatch<TexturedVertex, TexturedIndex, TexturedRenderable>(renderable, element_count)
|
|
{}
|
|
|
|
TexturedBatch(
|
|
TexturedRenderable* renderable,
|
|
int element_count,
|
|
int element_render_count
|
|
) : PoseableBatch<TexturedVertex, TexturedIndex, TexturedRenderable>(renderable, element_count, element_render_count)
|
|
{}
|
|
|
|
void preprender() const override;
|
|
|
|
protected:
|
|
void setup_vao() override;
|
|
};
|
|
}
|
|
} |