-
Notifications
You must be signed in to change notification settings - Fork 1
Creating a Custom Layer
renanbomtempo edited this page Jun 10, 2026
·
1 revision
⚠️ This wiki is under construction. Pages are being populated incrementally.
This tutorial walks you through creating a custom layer from scratch — declaring the module, implementing the lifecycle methods, and integrating it with your application.
- A working Nodens build (see Getting Started)
- Basic familiarity with the Layer System
// MyLayer.cppm
export module MyApp.MyLayer;
import Nodens;
export class MyLayer : public Nodens::Layer {
public:
MyLayer();
void OnAttach() override;
void OnDetach() override;
void OnUpdate(Nodens::TimeStep ts) override;
void OnImGuiRender(Nodens::TimeStep ts) override;
void OnEvent(Nodens::Event& event) override;
private:
// Your state here
};// MyLayer.cpp
module MyApp.MyLayer;
// Implementation here...- Layer System — Lifecycle details and ordering rules.
- Using ImGui and ImPlot — Drawing UI in OnImGuiRender.
- Event System — Handling input in OnEvent.
Getting Started
Architecture
Guides
Reference