LWJGL显示窗口为什么很长

huangapple go评论60阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年6月9日 08:55:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/76436549.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定