Fixed assertion failures
This commit is contained in:
parent
a57f81e0b3
commit
b9e8fca5cc
3 changed files with 51 additions and 3 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
SDL_Init(SDL_INIT_VIDEO);
|
||||
|
||||
sdlu::Vector2f vecA(.4f, -2.3f);
|
||||
sdlu::Vector2f vecB(-8.9f, 0.003f);
|
||||
sdlu::Vector2f vec = vecA + vecB;
|
||||
|
@ -17,7 +19,14 @@ int main(int argc, char** argv)
|
|||
while (window.WaitEvent(&event))
|
||||
{
|
||||
std::cout << event.type << std::endl;
|
||||
if (event.window.event == SDL_WINDOWEVENT_CLOSE)
|
||||
{
|
||||
window.Close();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
SDL_Quit();
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue