New raycaster based on Lode's tutorial works, now to add textures.
This commit is contained in:
parent
96b44a4eb2
commit
c1b7df1850
2 changed files with 89 additions and 74 deletions
|
@ -84,10 +84,10 @@ int main(int /*argc*/, char */*argv*/[])
|
|||
std::vector<Uint32> texture[8];
|
||||
for(int i = 0; i < 8; i++) texture[i].resize(texWidth * texHeight);
|
||||
|
||||
screen(screenWidth,screenHeight, 0, "Raycaster");
|
||||
screen(screenWidth, screenHeight, 0, "Raycaster");
|
||||
|
||||
//generate some textures
|
||||
#if 0
|
||||
#if 1
|
||||
for(int x = 0; x < texWidth; x++)
|
||||
for(int y = 0; y < texHeight; y++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue