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

Janet language bindings for ttri fn, texsrc arg can be int or bool #2323

Merged
merged 2 commits into from
Oct 8, 2023

Conversation

AlecTroemel
Copy link
Sponsor Contributor

@AlecTroemel AlecTroemel commented Oct 7, 2023

From reading the wiki

texsrc : if 0 (default), the triangle's texture is read from SPRITES RAM. If 1, the texture comes from the MAP RAM.
If 2, the texture comes from the screen RAM in the next VBANK (the one following the VBANK on which the ttri() is set to be displayed) (e.g., a ttri() on vbank(0) with the texsrc=2 will use vbank(1) as its texture at the time of its execution). Although there is technically no vbank(2), this can be used on a ttri() with texsrc=2 that's rendered on vbank(1).

Looks like this was added to the lua api in this commit and I just missed it

@nesbox nesbox merged commit a94540f into nesbox:main Oct 8, 2023
31 checks passed
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants