gui and text drawing, gui misc
This commit is contained in:
parent
c906760bd4
commit
4ec8affe85
37 changed files with 799 additions and 646 deletions
|
@ -432,6 +432,14 @@ public class GlState
|
|||
GL11.glColor4f(colorRed, colorGreen, colorBlue, colorAlpha);
|
||||
}
|
||||
}
|
||||
|
||||
public static void color(int c) {
|
||||
float a = (float)(c >> 24 & 255) / 255.0F;
|
||||
float r = (float)(c >> 16 & 255) / 255.0F;
|
||||
float g = (float)(c >> 8 & 255) / 255.0F;
|
||||
float b = (float)(c & 255) / 255.0F;
|
||||
color(r, g, b, a);
|
||||
}
|
||||
|
||||
public static void resetColor()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue