Begin the documentation
This commit is contained in:
@ -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();
|
||||
};
|
||||
}
|
@ -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);
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user