Fixed all my pointers

This commit is contained in:
2022-10-19 19:44:47 -07:00
parent f0cbae4cf8
commit acc9d798cb
31 changed files with 289 additions and 141 deletions

View File

@ -37,14 +37,14 @@ namespace Dawn {
*
* @param item SceneItem that this component belongs to.
*/
Camera(std::weak_ptr<SceneItem> item);
Camera(SceneItem &item);
/**
* Updates the projection matrix.
*/
void updateProjection();
std::shared_ptr<RenderTarget> getRenderTarget();
RenderTarget & getRenderTarget();
/**
* Returs the aspect ratio of the camera.