From 999012cf547bfa1965fb10af228587d990dc05e3 Mon Sep 17 00:00:00 2001
From: EndrII <EndrIIMail@gmail.com>
Date: Mon, 20 Jan 2025 10:09:27 +0100
Subject: [PATCH] added more documentation of the rendel loop class.

---
 src/public/asyncrenderloop.h | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/src/public/asyncrenderloop.h b/src/public/asyncrenderloop.h
index d2e3616..cf0e767 100644
--- a/src/public/asyncrenderloop.h
+++ b/src/public/asyncrenderloop.h
@@ -13,7 +13,28 @@
 namespace QH {
 
 /**
- * @brief The AsyncRenderLoop class is a class for rendering the world.
+ * @brief The AsyncRenderLoop is a class for asynchronous rendering.
+ * This class is used to create a render loop that is executed in a separate thread.
+ * To use this class, you must inherit from it and implement the renderIteration method.
+ * @example :
+ * @code{cpp}
+ * class MyRenderLoop: public AsyncRenderLoop
+ * {
+ * public:
+ *    MyRenderLoop(QThread* thread, QObject* ptr = nullptr): AsyncRenderLoop(thread, ptr) {}
+ *    void renderIteration(int msec) override {
+ *    // your code here
+ *    }
+ * };
+ * int main (int argc, char* argv[]) {
+ *    QCoreApplication app(argc, argv);
+ *
+ *    MyRenderLoop loop(new thread());
+ *    loop.run();
+ *    loop.stop();
+ *
+ *    return app.exec();
+ * @endcode
  */
 class HEARTSHARED_EXPORT AsyncRenderLoop: public Async
 {