英文:
Why is LWJGL display window a long
问题
在示例中,我看到这一行被使用:private long window;
为什么window
是一个long
对象?存储了什么样的元数据?
我知道这个可以工作,但只是想知道为什么它是一个long
对象,而不是其他游戏库中通常使用的Display
类似的对象。
英文:
in the example, I see this line being used: private long window;
why is window a long
object? what kind of metadata is stored there?
I know this works, but just wondering why is it a long object instead of a usual Display class similar object in other game libraries.
答案1
得分: 1
"Nevermind. I think I found the reason: long
is used to indicate the address to the display window, not really the window itself. So really the window should be called windowAddress
."
"不要紧。我想我找到了原因:long
用来指示显示窗口的 地址,而不是窗口本身。所以实际上应该将窗口称为 windowAddress
。"
英文:
Nevermind. I think I found the reason: long
is used to indicate the address to the display window, not really the window itself. So really the window should be called windowAddress
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论