Antkeeper is a 3D ant colony simulation game currently in development for Windows, Mac, and Linux. This repository contains all of the source code to Antkeeper.
Antkeeper is a 3D ant colony simulation game currently in development for Windows, Mac, and Linux. This repository contains all of the source code to Antkeeper.
@ -49,19 +49,19 @@ enum class vertex_attribute_type: std::uint8_t
structvertex_attribute
structvertex_attribute
{
{
/// Pointer to the vertex buffer containing vertex attribute data.
/// Pointer to the vertex buffer containing vertex attribute data.
constvertex_buffer*buffer;
constvertex_buffer*buffer{nullptr};
/// Offset to the first component of the first instance of this attribute in the vertex buffer, in bytes.
/// Offset to the first component of the first instance of this attribute in the vertex buffer, in bytes.
std::size_toffset;
std::size_toffset{0};
/// Number of bytes between consecutive instances of this attribute in the vertex buffer. A value of `0` indicates attribute instances are tightly packed.
/// Number of bytes between consecutive instances of this attribute in the vertex buffer. A value of `0` indicates attribute instances are tightly packed.
std::size_tstride;
std::size_tstride{0};
/// Data type of each component in the attribute.
/// Data type of each component in the attribute.
vertex_attribute_typetype;
vertex_attribute_typetype{0};
/// Number of components per attribute instance. Supported values are `1`, `2`, `3`, and `4`.
/// Number of components per attribute instance. Supported values are `1`, `2`, `3`, and `4`.