Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
WireframeComponent.hpp
Go to the documentation of this file.
1#pragma once
2
6#include <memory>
7
8namespace shkyera {
9
12
13 void updateImpl() const {
14 const auto& wireframeAsset = std::get<AssetRef<Wireframe>>(wireframe);
15 if (wireframeAsset) {
16 wireframeAsset->bind();
17 glDrawArrays(GL_LINES, 0, wireframeAsset->getEdgeCount());
18 wireframeAsset->unbind();
19 }
20 }
21};
22
23} // namespace shkyera
Definition Asset.hpp:6
Definition Clock.hpp:9
Definition WireframeComponent.hpp:10
void updateImpl() const
Definition WireframeComponent.hpp:13
HandleAndAsset< Wireframe > wireframe
Definition WireframeComponent.hpp:11