summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/23-vectordisplay/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/23-vectordisplay/main.cpp')
-rw-r--r--3rdparty/bgfx/examples/23-vectordisplay/main.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/3rdparty/bgfx/examples/23-vectordisplay/main.cpp b/3rdparty/bgfx/examples/23-vectordisplay/main.cpp
index badeeccff9a..cb72564d19f 100644
--- a/3rdparty/bgfx/examples/23-vectordisplay/main.cpp
+++ b/3rdparty/bgfx/examples/23-vectordisplay/main.cpp
@@ -22,23 +22,23 @@ struct PosColorVertex
static void init()
{
- ms_decl
+ ms_layout
.begin()
.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float)
.add(bgfx::Attrib::Color0, 4, bgfx::AttribType::Uint8, true)
.end();
}
- static bgfx::VertexDecl ms_decl;
+ static bgfx::VertexLayout ms_layout;
};
-bgfx::VertexDecl PosColorVertex::ms_decl;
+bgfx::VertexLayout PosColorVertex::ms_layout;
class ExampleVectorDisplay : public entry::AppI
{
public:
- ExampleVectorDisplay(const char* _name, const char* _description)
- : entry::AppI(_name, _description)
+ ExampleVectorDisplay(const char* _name, const char* _description, const char* _url)
+ : entry::AppI(_name, _description, _url)
{
}
@@ -218,4 +218,9 @@ public:
} // namespace
-ENTRY_IMPLEMENT_MAIN(ExampleVectorDisplay, "23-vectordisplay", "Rendering lines as oldschool vectors.");
+ENTRY_IMPLEMENT_MAIN(
+ ExampleVectorDisplay
+ , "23-vectordisplay"
+ , "Rendering lines as oldschool vectors."
+ , "https://bkaradzic.github.io/bgfx/examples.html#vectordisplay"
+ );