mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 04:51:18 +00:00
45 lines
510 B
C++
45 lines
510 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <cstddef>
|
|
|
|
namespace gfx {
|
|
|
|
enum class ShaderType {
|
|
VERTEX,
|
|
FRAGMENT,
|
|
};
|
|
|
|
struct Shader {
|
|
ShaderType type;
|
|
uint32_t handle;
|
|
};
|
|
|
|
typedef uint32_t Program;
|
|
|
|
enum class BufferType {
|
|
VERTEX,
|
|
INDEX,
|
|
};
|
|
|
|
struct Buffer {
|
|
BufferType type;
|
|
uint32_t handle;
|
|
};
|
|
|
|
enum class Primitive {
|
|
POINTS,
|
|
LINES,
|
|
LINE_STRIP,
|
|
TRIANGLES,
|
|
TRIANGLE_STRIP,
|
|
};
|
|
|
|
enum class IndexBufferFormat {
|
|
UNSIGNED_8_BITS,
|
|
UNSIGNED_16_BITS,
|
|
UNSIGNED_32_BITS,
|
|
};
|
|
|
|
}
|