Forums Register Login

How to show images on the display? (for a video game)

+Pie Number of slices to send: Send
Hi guys,
I come with a question:

I am starting to learn programming. My far away goal is to make a game. A good one enough for publishing it.
I am using LWJGL 2.9.3 and slickutil
I am learning opengl and java while I build for the game.

Previous day i learned how to create a screen.
Now i am working at learning how to put images on the scren. My goal was to make an introduction screen.

Until now i have this:


And i also have this:


And in the GameLoop i just have this:


I am expecting that when i run the program, the Display will show me the "IntroductionScreen.png"
And it does. It shows me the picture but it is not as i expected. Look:

http://postimg.org/image/hsnufb1o7/ ()

So my questions are:
1. why it is not on the whole screen?
And
2. what should i do to change so it will be as i want?

and
3. It is my first post on this forum. I dont kow if i am posting the question ok. Please give me feedback about this.
Do Re Mi Fa So La Tiny Ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1086 times.
Similar Threads
Displaying a PNG using JLWGL and Slick
OpenGL plane Lighting (Small code)
JOGL 1 vs JOGL 2.0?
LWJGL Camera doesnt work with 3d and 2d UI
Why doesn't my cube rotate normally
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:25:35.