Use SpriteTexture.dim in rayview to replace the hard coded TEXTURE_WIDTH/HEIGHT #43

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

Once I store the established frame dimensions in SpriteTexture, and once I'm using the SpriteTexture each render cycle, I can just use the frame dimensions there instead of using a hard coded constant.

Once I store the established frame dimensions in SpriteTexture, and once I'm using the SpriteTexture each render cycle, I can just use the frame dimensions there instead of using a hard coded constant.
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#43
Loading…
There is no content yet.