In rayview.cpp::sprite_casting I can probably change $sprites to not hold SpriteTexture #42

Open
opened 2 days ago by zedshaw · 0 comments
zedshaw commented 2 days ago
Owner

One of the reasons I have to do weird updates is because I'm holding a copy of the SpriteTexture inside rayview, but I can probably just reference its sprite id from textures.cpp and load it each render. Most likely about the same speed and would mean no updates needed.

One of the reasons I have to do weird updates is because I'm holding a copy of the SpriteTexture inside rayview, but I can probably just reference its sprite id from textures.cpp and load it each render. Most likely about the same speed and would mean no updates needed.
zedshaw self-assigned this 2 days ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: learn-code-the-hard-way/raycaster#42
Loading…
There is no content yet.