94de35536a
The UVs are off for some reason but I'm not 100% sure why. Possibly caused by some sort of offset not being accounted for.
30 lines
536 B
C++
30 lines
536 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);
|
|
}
|
|
};
|
|
}
|
|
}
|
|
} |