Next step in the refactoring with everything in a different file and running. The bug from the previous commit was due to the pixel buffer making the Raycaster object too large for the stack. If you get __chkstk_ms then you used too much stack.
This commit is contained in:
parent
d230b152cf
commit
e379bcd5ec
4 changed files with 436 additions and 404 deletions
4
main.cpp
4
main.cpp
|
@ -1,6 +1,6 @@
|
|||
#include "raycaster.hpp"
|
||||
|
||||
static const int SCREEN_HEIGHT=960;
|
||||
static const int SCREEN_HEIGHT=720;
|
||||
static const int SCREEN_WIDTH=1280;
|
||||
|
||||
int main() {
|
||||
|
@ -8,7 +8,6 @@ int main() {
|
|||
|
||||
Raycaster rayview(window);
|
||||
|
||||
/*
|
||||
using KB = sf::Keyboard;
|
||||
rayview.load_textures();
|
||||
|
||||
|
@ -38,7 +37,6 @@ int main() {
|
|||
}
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue