eo/include/engine/quad.hpp

27 lines
426 B
C++
Raw Normal View History

2024-11-15 00:12:51 +00:00
#ifndef QUAD_HPP
#define QUAD_HPP
#include <iostream>
#include <vector>
#include <bgfx/bgfx.h>
struct VertexData {
float x;
float y;
float z;
float u;
float v;
};
class EngineQuad {
public:
std::vector<VertexData> vertices;
std::vector<uint16_t> indices;
bgfx::VertexLayout layout;
EngineQuad(void);
EngineQuad(std::vector<VertexData> _v, std::vector<uint16_t> _i);
};
#endif