e3c85324c6
Also moved all the code for each pipeline into the header files rather than the .cpp files to keep it all in one place. Considering just moving all the code into one file just to make it easier to create new pipelines but that may be overkill and may make the project harder to maintain in the future.
28 lines
534 B
C++
28 lines
534 B
C++
#pragma once
|
|
|
|
#include "BasicTypes.h"
|
|
#include "PoseableBatch.h"
|
|
|
|
namespace charcoal
|
|
{
|
|
namespace builtin
|
|
{
|
|
namespace basic
|
|
{
|
|
class Batch : public PoseableBatch<Vertex, Index, 1>
|
|
{
|
|
public:
|
|
using PoseableBatch<Vertex, Index, 1>::PoseableBatch;
|
|
protected:
|
|
void setup_vao_vertex() override
|
|
{
|
|
glBindBuffer(GL_ARRAY_BUFFER, m_vertex_vbo);
|
|
glEnableVertexAttribArray(0);
|
|
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, sizeof(Vertex), NULL);
|
|
|
|
glVertexAttribDivisor(0, 0);
|
|
}
|
|
};
|
|
}
|
|
}
|
|
} |