Add immediate mode vertex submission

This commit is contained in:
Dwayne Slater 2016-03-02 22:16:38 -05:00
parent ea0ca17215
commit 6b775034dd
21 changed files with 177 additions and 61 deletions

View file

@ -53,6 +53,18 @@ void PrimitiveAssembler<VertexType>::SubmitVertex(VertexType& vtx, TriangleHandl
}
}
template<typename VertexType>
void PrimitiveAssembler<VertexType>::Reset() {
buffer_index = 0;
strip_ready = false;
}
template<typename VertexType>
void PrimitiveAssembler<VertexType>::Reconfigure(Regs::TriangleTopology topology) {
Reset();
this->topology = topology;
}
// explicitly instantiate use cases
template
struct PrimitiveAssembler<Shader::OutputVertex>;