Begin the documentation

This commit is contained in:
2022-10-18 22:35:47 -07:00
parent e08684de19
commit a86574128d
6 changed files with 109 additions and 9 deletions

View File

@ -12,12 +12,27 @@ namespace Dawn {
class RenderManager {
public:
std::weak_ptr<DawnGame> game;
RenderManager(std::weak_ptr<DawnGame>);
/**
* Construct a new RenderManager for a game instance.
*
* @param game Game instance this render manager belongs to.
*/
RenderManager(std::weak_ptr<DawnGame> game);
/**
* Initialize this render manager.
*/
void init();
/**
* Perform a synchronous frame update on the render manager.
*/
void update();
/**
* Destroy a previously initialized RenderManager.
*/
~RenderManager();
};
}

View File

@ -9,6 +9,11 @@
namespace Dawn {
class TriangleMesh {
public:
/**
* Initializes a mesh to hold a single triangle.
*
* @param mesh Mesh to initialize as a triangle.
*/
static void createTriangleMesh(std::shared_ptr<Mesh> mesh);
};
}