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

[Feature] Option to define a null TextureID #2663

Open
jekyllgrim opened this issue Aug 10, 2024 · 2 comments
Open

[Feature] Option to define a null TextureID #2663

jekyllgrim opened this issue Aug 10, 2024 · 2 comments
Assignees

Comments

@jekyllgrim
Copy link
Contributor

GZDoom version

GZDoom 4.12.2

Which game are you running with GZDoom?

None

What Operating System are you using?

None

If Other OS, please describe

No response

Relevant hardware info

No response

Is your feature request related to a problem? Please describe.

It's currently not possible to define a null TextureID. In a code block this is solved by manually calling SetNull() or SetInvalid() on a previously declared TextureID, but this doesn't cut it for functions: it's not possible to define an optional TextureID-type argument, since neither TextureID tex = 0 nor TextureID tex = null are recognized.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Add any other context or screenshots about the feature request here.

No response

@coelckers
Copy link
Member

Of course this does exist, use FNullTextureId().
It could be done better these days but what's there is working.

@RicardoLuis0
Copy link
Collaborator

RicardoLuis0 commented Oct 1, 2024

the thing is, FNullTextureId isn't exported to ZScript, and that's what this is asking for (i'm gonna add it myself when i get to it, that's why i assigned myself to it)

@RicardoLuis0 RicardoLuis0 reopened this Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants