Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(zig) fix template compiling and add TextureSource #1850

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

joshgoebel
Copy link
Collaborator

No description provided.

@joshgoebel
Copy link
Collaborator Author

@nesbox Spot on you had it, but we really should have an enum for texture source, so this adds that as well as fixes the template example.

const TextureSource = enum(i32) {
TILES = 0,
MAP,
VBANK1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not necessary to use VBANK1, it can also be VBANK0.
So textri() is using an inactive vbank for rendering, maybe just call it VBANK?

Copy link
Collaborator Author

@joshgoebel joshgoebel Feb 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vbank(0) would use bank 1 and vbank(1) would use bank 0?

I'll reconsider the name. Technically then it'd be SCREEN_INACTIVE_VBANK or some such. :-)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok :)

@joshgoebel joshgoebel marked this pull request as draft February 25, 2022 21:36
@nesbox nesbox marked this pull request as ready for review April 7, 2022 11:46
@nesbox nesbox merged commit 4870cc9 into nesbox:main Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants