Testing some event stuff

This commit is contained in:
2023-11-17 22:40:08 -06:00
parent 0c46c328fa
commit 26b5ec2c7f
20 changed files with 260 additions and 30 deletions

View File

@ -36,7 +36,8 @@ void BackBufferRenderTarget::setSize(
// Fixes a new bug that it seems GLFW has introduced.
this->width = width == 0 ? 1 : width;
this->height = height == 0 ? 1 : height;
// this->eventRenderTargetResized.invoke(*this, width, height);
onResize.emit(this->width, this->height);
}
void BackBufferRenderTarget::setClearColor(const struct Color color) {