GuiObjectTitle.java 文件源码

java
阅读 18 收藏 0 点赞 0 评论 0

项目:Melodium 作者:
public static void drawTextGlowing(FontRenderer font, String s, int x, int y, int r, int g, int b, int a){
    GuiBase.drawTextRGBA(font, s, x, y, r, g, b, a);
    GlStateManager.blendFunc(SourceFactor.SRC_ALPHA, DestFactor.ONE);
    GuiBase.drawTextRGBA(font, s, x-1, y, r,g,b, (32*a)/255);
    GuiBase.drawTextRGBA(font, s, x+1, y, r,g,b, (32*a)/255);
    GuiBase.drawTextRGBA(font, s, x, y-1, r,g,b, (32*a)/255);
    GuiBase.drawTextRGBA(font, s, x, y+1, r,g,b, (32*a)/255);
    GuiBase.drawTextRGBA(font, s, x-2, y, r,g,b, (13*a)/255);
    GuiBase.drawTextRGBA(font, s, x+2, y, r,g,b, (13*a)/255);
    GuiBase.drawTextRGBA(font, s, x, y-2, r,g,b, (13*a)/255);
    GuiBase.drawTextRGBA(font, s, x, y+2, r,g,b, (13*a)/255);
    GuiBase.drawTextRGBA(font, s, x-1, y+1, r,g,b, (13*a)/255);
    GuiBase.drawTextRGBA(font, s, x+1, y-1, r,g,b, (13*a)/255);
    GuiBase.drawTextRGBA(font, s, x-1, y-1, r,g,b, (13*a)/255);
    GuiBase.drawTextRGBA(font, s, x+1, y+1, r,g,b, (13*a)/255);
    GlStateManager.blendFunc(SourceFactor.SRC_ALPHA, DestFactor.ONE_MINUS_SRC_ALPHA);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号