std::cerr << "EntityMesh: not enough tex coords!" << std::endl;
}
if (buf.hsl_mods.size() < buf.vertices.size()) {
- std::cerr << "BlockMesh: not enough HSL modifiers!" << std::endl;
+ std::cerr << "EntityMesh: not enough HSL modifiers!" << std::endl;
}
if (buf.rgb_mods.size() < buf.vertices.size()) {
- std::cerr << "BlockMesh: not enough RGB modifiers!" << std::endl;
+ std::cerr << "EntityMesh: not enough RGB modifiers!" << std::endl;
}
if (buf.normals.size() < buf.vertices.size()) {
std::cerr << "EntityMesh: not enough normals!" << std::endl;
}
-void EntityMesh::Draw() const noexcept {
- vao.DrawTriangleElements();
-}
-
-
void BlockMesh::Update(const Buffer &buf) noexcept {
#ifndef NDEBUG
if (buf.tex_coords.size() < buf.vertices.size()) {
}
-void BlockMesh::Draw() const noexcept {
- vao.DrawTriangleElements();
-}
-
-
void PrimitiveMesh::Buffer::FillRect(
float w, float h,
const Color &color,
}
-void PrimitiveMesh::DrawLines() noexcept {
+void PrimitiveMesh::DrawLines() const noexcept {
glEnable(GL_LINE_SMOOTH);
glLineWidth(2.0f);
vao.DrawLineElements();
}
-void PrimitiveMesh::DrawTriangles() noexcept {
- vao.DrawTriangleElements();
-}
-
void SkyBoxMesh::LoadUnitBox() {
Buffer buffer;
vao.PushIndices(ATTRIB_INDEX, buf.indices);
}
-void SkyBoxMesh::Draw() const noexcept {
- vao.DrawTriangleElements();
-}
-
void SpriteMesh::Buffer::LoadRect(
float w, float h,
vao.PushIndices(ATTRIB_INDEX, buf.indices);
}
-
-void SpriteMesh::Draw() noexcept {
- vao.DrawTriangleElements();
-}
-
}