Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Help


SecondAmendment
 Share

Recommended Posts

Check out how vanilla classes pull their color data for outlines and manipulate it to your liking. In your Render class, you may be able to set the color by enabling color material via 

GlStateManager.enableColorMaterial();

and then changing the color with

GlStateManager.enableOutlineMode([*color int*]);

 

You can look at RenderBoat for an example. Not sure if this works though, I haven't tried it. Also, to get a color without having to do all the math/googling you can use the MathHelper function that takes in 3 ints from 0-255 (RGB) and returns the single int:

public static int rgb(int rIn, int gIn, int bIn)

 

Link to comment
Share on other sites

It is a method in the class you extend.

YouTube:

https://www.youtube.com/channel/UCaK5oRw4yd7PurBWww9tVhA

Kuribo64 (where I am most active):

http://kuribo64.net/board/profile.php?id=1423

 

Thanks for your answer!

 

Current projects:

 

3D Geometry Dash: 13%

Terracraft (MC Mod): 8%

New Super Kaizo Bros DS: 100% (no download for now :'( )

New Super Kaizo Bros. Wii: 12%

Super Mario Galaxy 1.5: 96%

New Super Mario Bros Galaxy: 85%

Kerbal Space Program Advance: 47%

MC CREATE: 20%

Mystery Projects: 10%, 40%, 13%, and 94%

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.