charcoal/CharcoalBuiltin/SpecifiedPoseable.h
elipzer 2f6c5ee319 Starting off with specified rendering.
Almost there. Just an odd linker error so far.
2018-10-13 15:26:22 -04:00

25 lines
406 B
C++

#pragma once
#include <charcoal/Poseable.h>
namespace charcoal
{
namespace builtin
{
template <typename SpecifiedPoseableBatchType>
class SpecifiedPoseable : public Poseable
{
public:
SpecifiedPoseable(SpecifiedPoseableBatchType& batch) : m_batch(batch)
{}
void render()
{
m_batch.add_specified_poseable(this);
}
private:
SpecifiedPoseableBatchType& m_batch;
};
}
}