Jump to content


New to Java not programming


This topic has been archived. This means that you cannot reply to this topic.
29 replies to this topic

#21 cp133

cp133

    Limbs removed by the Grinch


  • 1600 posts
  • Joined October 18, 2011
339

Posted 28 April 2012 - 05:11 PM

View PostBluestorm96, on 28 April 2012 - 04:58 PM, said:

The numbers are LWJGL constants. Minecraft uses LWJGL for all of its input and rendering, so it would be a good idea to become familiar with Mouse, Keyboard, and GL11.

Although, if you're going to draw things to the screen, use Tessellator whenever possible. It annoys me so much when people use immediate mode OpenGL (aka "slow mode") when there's a perfectly good vertex array system ("medium speed mode") at their disposal.
A more visually friendly version of the LWJGL constants:

Posted Image

#22 mythbustee

mythbustee

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 95 posts
  • Joined April 5, 2012
-18

Posted 28 April 2012 - 05:35 PM

View PostBluestorm96, on 28 April 2012 - 04:58 PM, said:

The numbers are LWJGL constants. Minecraft uses LWJGL for all of its input and rendering, so it would be a good idea to become familiar with Mouse, Keyboard, and GL11.

Although, if you're going to draw things to the screen, use Tessellator whenever possible. It annoys me so much when people use immediate mode OpenGL (aka "slow mode") when there's a perfectly good vertex array system ("medium speed mode") at their disposal.
I used
drawRect(300, 14, 1, 125, 0xaa000000);
to draw a box. Is this what you were talking about?

View Postcp133, on 28 April 2012 - 05:11 PM, said:

View PostBluestorm96, on 28 April 2012 - 04:58 PM, said:

The numbers are LWJGL constants. Minecraft uses LWJGL for all of its input and rendering, so it would be a good idea to become familiar with Mouse, Keyboard, and GL11.

Although, if you're going to draw things to the screen, use Tessellator whenever possible. It annoys me so much when people use immediate mode OpenGL (aka "slow mode") when there's a perfectly good vertex array system ("medium speed mode") at their disposal.
A more visually friendly version of the LWJGL constants:

Posted Image
Thanks that was what I was talking about to search for

#23 cp133

cp133

    Limbs removed by the Grinch


  • 1600 posts
  • Joined October 18, 2011
339

Posted 28 April 2012 - 05:51 PM

View Postmythbustee, on 28 April 2012 - 05:35 PM, said:

I used
drawRect(300, 14, 1, 125, 0xaa000000);
to draw a box. Is this what you were talking about?
No :s
That's Notch's drawRect method, he is suggesting using Tessellator instead of GL11.glBegin(); and etc

#24 BHeart

BHeart

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 92 posts
  • Joined December 31, 2011
12

Posted 28 April 2012 - 05:53 PM

View Postmythbustee, on 28 April 2012 - 05:35 PM, said:

Thanks that was what I was talking about to search for
Or you could use the LWJGL Keyboard class (Keyboard.KEY_<insert key here>)

#25 mythbustee

mythbustee

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 95 posts
  • Joined April 5, 2012
-18

Posted 28 April 2012 - 06:02 PM

View Postcp133, on 28 April 2012 - 05:51 PM, said:

View Postmythbustee, on 28 April 2012 - 05:35 PM, said:

I used
drawRect(300, 14, 1, 125, 0xaa000000);
to draw a box. Is this what you were talking about?
No :s
That's Notch's drawRect method, he is suggesting using Tessellator instead of GL11.glBegin(); and etc
Its actually my drawRect but I'll look at Tessellator instead.

#26 BHeart

BHeart

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 92 posts
  • Joined December 31, 2011
12

Posted 28 April 2012 - 06:05 PM

View Postmythbustee, on 28 April 2012 - 06:02 PM, said:

View Postcp133, on 28 April 2012 - 05:51 PM, said:

View Postmythbustee, on 28 April 2012 - 05:35 PM, said:

I used
drawRect(300, 14, 1, 125, 0xaa000000);
to draw a box. Is this what you were talking about?
No :s
That's Notch's drawRect method, he is suggesting using Tessellator instead of GL11.glBegin(); and etc
Its actually my drawRect but I'll look at Tessellator instead.
wat... You deleted Notch's method and replaced it with your own that has the exact same parameters, name and purpose?

#27 mythbustee

mythbustee

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 95 posts
  • Joined April 5, 2012
-18

Posted 28 April 2012 - 06:51 PM

I didn't delete anything of Notch's thats a code I used but I'm looking at Tessellation right now

#28 cp133

cp133

    Limbs removed by the Grinch


  • 1600 posts
  • Joined October 18, 2011
339

Posted 28 April 2012 - 07:19 PM

What do you mean by it's your drawRect method?

#29 mythbustee

mythbustee

    Servant of Chuck Knoblock the one armed long arm of the Law


  • 95 posts
  • Joined April 5, 2012
-18

Posted 28 April 2012 - 07:52 PM

View Postcp133, on 28 April 2012 - 07:19 PM, said:

What do you mean by it's your drawRect method?
I used it thats what I mean. Sorry if I implied something else

#30 Ghostgunner

Ghostgunner

    Servant of Chuck Knoblock the one armed one man army


  • 1 posts
  • Joined May 23, 2012
-1

Posted 23 May 2012 - 10:19 AM

http://www.youtube.c...er/thenewboston
http://www.youtube.c...ser/mybringback
http://www.java-gaming.org/

And such things as books. =P Have fun with it!


Welcome to our forum! We would like to encourage you to contribute to our community by posting and talking in the shoutbox.

Please consider joining us by logging in or registering.