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

Use primitive types instead of enums in variable and function definitions #37

Open
MainMemory opened this issue Feb 24, 2018 · 0 comments
Assignees

Comments

@MainMemory
Copy link
Contributor

It just makes things more difficult for everyone to use. PkR was trying to use the '|=' operator on the LastRenderFlags variable, but if you try that, the compiler tells you "this operation on an enumerated type requires an applicable user-defined operator function". Changing the variable to int allows it to work.
The LoadObject function is also a pain to use if you want no flags or multiple flags, you have to cast the value to the LoadObj type for it to work.

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

No branches or pull requests

2 participants