-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
bgfx_init() second parameter needs to be casted #368
Comments
Seems to be the same with |
Indeed, there is no reason to map The situation with (BGFX_CLEAR_COLOR.toInt() or BGFX_CLEAR_DEPTH.toInt()).toShort() There is an May I suggest a simple extension property: val Short.i get() = this.toInt() Then you can do: BGFX_CLEAR_COLOR.i or BGFX_CLEAR_DEPTH.i // or
(BGFX_CLEAR_COLOR or BGFX_CLEAR_DEPTH).i // with kotlin.experimental.or |
I'm currently using |
@malobre Thanks! If you have more suggestions, please post in this issue. |
Environment
3.1.5
1
9
(I'm programming in Kotlin1.2.20
)Windows
BGFX
Description
Second parameter of
bgfx_init()
,vendorId
cannot be set toBGFX_PCI_ID_NONE
orBGFX_PCI_ID_*
without casting the constant to an Int.The text was updated successfully, but these errors were encountered: