Added reasons to assertions

This commit is contained in:
2023-07-23 10:15:37 -07:00
parent 1b0218c9f3
commit a5b36fb24a
79 changed files with 359 additions and 291 deletions

View File

@ -46,8 +46,8 @@
<!-- Code to handle scene resizing and auto adjusting the scene camera -->
<code type="init">
useEvent([&amp;]{
assertNotNull(camTexture);
assertNotNull(image);
assertNotNull(camTexture, "Camera texture cannot be null.");
assertNotNull(image, "Image cannot be null.");
camTexture->renderTarget.setSize(image->getWidth(), image->getHeight());
}, image->eventAlignmentUpdated);
</code>