#Displaying the game

179 messages · Page 1 of 1 (latest)

frail helm
#

Are java games like minecraft for example, on a java JFrame? for example. when you are playing minecraft building your house, are you doing that and seeing that on a JFrame or are there other ways to display your program in java?

stiff roverBOT
#

This post has been reserved for your question.

Hey @frail helm! Please use /close or the Close Post button 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.

novel hare
frail helm
#

YEAH BUT I MEAN

#

how is it displayed

novel hare
#

its not a jframe that's for sure

frail helm
#

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)

novel hare
#

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.

frail helm
#

Translate that into fucking english please

novel hare
#
  1. follow the link 2. use google
frail helm
stuck kernel
frail helm
#

so

stuck kernel
#

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

stuck kernel
#

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

frail helm
#

so can yall just fucking answer me?

#

PLEASE

stuck kernel
#

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.

frail helm
#

let me rephrase

#

what is the window where the game is displayed called?

stuck kernel
stuck kernel
#

Literally

frail helm
#

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?

frail helm
stuck kernel
#

yes...?

frail helm
#

BUT MINECRAFT ISN'T MADE IN A JFRAME

stuck kernel
#

and I already said it

#

The early versions used Frame

frail helm
#

k

stuck kernel
#

Which is AWT

frail helm
#

and what does the new version use?

stuck kernel
#

How do I know?

#

I haven't taken a look

stuck kernel
#

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

frail helm
#

so are games made in JPanel?

stuck kernel
#

No

frail helm
#

wait

#

hold on

stuck kernel
#

JPanel is where you often times draw basic things on

#

LWJGL used native OpenGL bindings (literally in the name) for drawing things

frail helm
#

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?

stuck kernel
#

No

frail helm
#

like, is LWJGL like a window to display your program?

stuck kernel
#

It's a Java wrapper around OpenGL bindings

frail helm
#

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)

stuck kernel
#

Where is this from?

frail helm
#

a fucking screenshot from google

#

OR

stuck kernel
#

Can you stop swearing for two seconds?

frail helm
#

if you take a look at a windowed program

#

ok

#

i will stop swearing

#

FOR 1 MINUTE

stuck kernel
#

No, just stop unless absolutely necessary. I can refuse to help if you keep that going

frail helm
#

ok

#

i will stop

#

wallah

#

wallahi

stuck kernel
#

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

frail helm
#

so, LWJGL gives you a window to display your game/prorgam?

#

Progam* sorry

stuck kernel
#

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)

frail helm
#

so OpenGL gives me a window/possibility to create a personalized class to create a window to display my code?

stuck kernel
#

display...code?

frail helm
#

display your program

stuck kernel
#

you want to display code strings?

frail helm
#

your game

stuck kernel
#

yes

frail helm
stuck kernel
#

Yes?

frail helm
#

So that's how most java games/games in general are made?

#

I MEAN

stuck kernel
#

you know 90% of your questions are answered on Google already

#

And there are plenty of GitHub repos for your questions

frail helm
#

i don't mean that's how they are made, but the window where i see the game is an OPENGL window?

frail helm
stuck kernel
#

GitHub search is your best friend.

frail helm
#

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?

stuck kernel
#

You got your answer already.

frail helm
#

just Y/N?

stuck kernel
#

I'm going to mark it as a duplicate.

frail helm
#

PLS

#

IT'S ONE LETTER

stuck kernel
frail helm
#

HELPPPPPPPPOPPO

#

PLEASE

#

WE GOT 120 MESSAGES IN THIS THREAD AND NO ONE ANSWERED

frail helm
#

BRO

#

SEARIOUSLY

stuck kernel
frail helm
#

I DIDN'T SEE IT

#

TELL ME

stuck kernel
frail helm
#

so lwjgl gives you a window to display your game?

stuck kernel
#

I don't think you're cut for this

frail helm
#

bro i told you

#

Y/N?

stuck kernel
#

I marked your question as a duplicate

frail helm
#

you basically just told me "fuck you" and ghosted me

stuck kernel
#

I answered it already

#

Multiple times

frail helm
#

answer it again

#

one last time

stuck kernel
#

no.

frail helm
#

bc you didn't

#

TELL ME WHERE YOU ANSWERED

stuck kernel
#

Learn to scroll up.

frail helm
#

WHERE IS THE MESSAGE

stuck kernel
#

or use Discord search function

stuck kernel
#

@stuck kernel troll?

stuck kernel
frail helm
#

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

stuck kernel
#

You could just look into LWJGL yourself…

#

Curb your yelling, my guy

frail helm
#

I TRIED

frail helm
stuck kernel
#

that's not how getting help works

#

like I said, I provided you with multiple answers to your multiple questions

frail helm
#

OK

#

YES

#

I FOUND THE ANSWE

#

R

#

GOD FUCKING DAMNIT YOU SUCK AT ANSWERING ANY QUESTION IN GENERAL

#

the helper roles are better

stuck kernel
#

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”

frail helm
stuck kernel
#

And that a game like Minecraft used to use Frame and Canvas to do the basic window

frail helm
#

is LWJGL a JAVA library?

stuck kernel
#

"Lightweight Java Game Library"

#

literally in the name

#

Lmfao

#

Yeah this guy is a troll

#

This can't be real

frail helm
stiff roverBOT
# frail helm 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.

frail helm
#

YOU ANSWERED ALL MY QUESTION

#

I AM NOT A FUCKING TROLL