Files
galaxy-engine/include/vertex.h
T

25 lines
395 B
C++

#pragma once
#include "bgfx/bgfx.h"
#include <cstdint>
class PosColVertex {
public:
PosColVertex(float x, float y, float z, uint32_t abgr)
: x(x), y(y), z(z), abgr(abgr) {
this->init();
};
~PosColVertex() {};
void init();
bgfx::VertexLayout getLayout() { return this->layout; };
private:
float x;
float y;
float z;
uint32_t abgr;
bgfx::VertexLayout layout;
};