#Displaying the game
179 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @frail helm! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Minecraft was written using this library: https://www.lwjgl.org/
its not a jframe that's for sure
when i am playing on minecraft as i said, (I AM USING MINECRAFT JUST AS AN EXAMPLE) and when i am building my house, is the window i am playing in a jframe? if not, what is it? how do i create a window to display MY minecraft game? (how to create a window with anything other than JFrame)
lwjgl is a library that enables you to work with openGl in the context of java. As far as I know Lwjgl uses GLFW (Graphics Library Framework) which is a simple utility library that allows you to create windows with OpenGL.
Translate that into fucking english please
- follow the link 2. use google
Tf google will have my same reaction
Actually
so
I don't know if newer versions of Minecraft as an example still use AWT for window, but the older versions used Frame and Canvas
Both are AWT APIs
and Applet for the browser/offline client portion
and the Applet was crucial for actually launching the stupid thing in a 3rd party client unless you modified the obfuscated source to use the non-Applet client
The same example could apply to legacy RuneScape. Not only did they not use LWJGL or any other library in their early days, but they also used Canvas and Frame.
Curb your profanity if you want help
a WINDOW
Literally
for example i am building my house on minecraft, what is that window i am using to play the game and where it is displayed?
SO IT COULD ALSO BE A JFRAME?
yes...?
BUT MINECRAFT ISN'T MADE IN A JFRAME
k
Which is AWT
and what does the new version use?
I'm assuming the ones using LWJGL3 are probably not using Swing for their window
and use LWJGL's own
but they may also still be using Frame or JFrame
and just have LWJGL's window creation within the JFrame
which is something I would do
and did
so are games made in JPanel?
No
JPanel is where you often times draw basic things on
LWJGL used native OpenGL bindings (literally in the name) for drawing things
is LWJGL like a game engine (I KNOW IT IS NOT A GAME ENGINE BUT FOLLOW WHAT I SAY) but like, it just gives you a window to see your game?
No
like, is LWJGL like a window to display your program?
It's a Java wrapper around OpenGL bindings
hold on
i got it
lemme send you a screenshot
HOW TF DO I DO THIS IN JAVA? A WINDOW TO DISPLAY MY GAME? (it is not a JFrame then WHAT IS IT)
Where is this from?
Can you stop swearing for two seconds?
No, just stop unless absolutely necessary. I can refuse to help if you keep that going
I know LWJGL2 had its own Display class for doing a display
Not sure if that was actually for window or not as I have only touched LWJGL3
oh, in LWJGL3, you don't even need JFrame
You can simply use the native OpenGL bindings to create your own Window class
if that's what you're wanting, that's the answer.
it's either a custom Window class or Swing (nobody uses AWT unless super legacy LWJGL code)
so OpenGL gives me a window/possibility to create a personalized class to create a window to display my code?
display...code?
display your program
you want to display code strings?
your game
yes
so if i just install this OpenGL thing i can have a window to display my game?
Yes?
you know 90% of your questions are answered on Google already
And there are plenty of GitHub repos for your questions
i don't mean that's how they are made, but the window where i see the game is an OPENGL window?
Send me a link
GitHub search is your best friend.
OK
yes
fuck
i found it
ops
sorry for swearing again
really
sorry
but yes, opengl gives me that window to display my game?
Y/N?
You got your answer already.
just Y/N?
I'm going to mark it as a duplicate.
Y/N?
You can do it with a jframe, its just thats not what Minecraft uses
THEN WHAT THE FUCK DOES MINECRAFT USEE HAHHHHHHHHHHHHH
HELPPPPPPPPOPPO
PLEASE
WE GOT 120 MESSAGES IN THIS THREAD AND NO ONE ANSWERED
PLEASEEEEE
BRO
SEARIOUSLY
both @stuck kernel and @novel hare gave you the answer
PLS
I DIDN'T SEE IT
TELL ME
LWJGL
so lwjgl gives you a window to display your game?
I don't think you're cut for this
I marked your question as a duplicate
you basically just told me "fuck you" and ghosted me
no.
Learn to scroll up.
WHERE IS THE MESSAGE
or use Discord search function
this
@stuck kernel troll?
Probably
and then you answered this
IT'S NOT A FUCKING ANSWER
I AM NOT TROLLING
IT'S YOU THAT GOTTA LEARN TO SAY "YES" OR NO
PLS
YOU DIDN'T ANSWER ME
I TRIED
sorry
that's not how getting help works
like I said, I provided you with multiple answers to your multiple questions
OK
YES
I FOUND THE ANSWE
R
GOD FUCKING DAMNIT YOU SUCK AT ANSWERING ANY QUESTION IN GENERAL
the helper roles are better
I swear you're a troll
Can you make a frame with OpenGL
Just like any other object in OpenGL we can create a framebuffer object (abbreviated to FBO) by using a function called glGenFramebuffers : unsigned int fbo; glGenFramebuffers (1, &fbo);
because LWJGL is just a java wrapper around OpenGL, yes it would be used to make the “frame”
I AM NOT
I already told them that you can either create your own Window class or use a JFrame for your needs
And that a game like Minecraft used to use Frame and Canvas to do the basic window
is LWJGL a JAVA library?
"Lightweight Java Game Library"
literally in the name
Lmfao
Yeah this guy is a troll
This can't be real
THANKS
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.