VertexDataUtils.java 文件源码

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

项目:CodeChickenLib 作者:
/**
 * Gets the position for the element 'normal' in the elements list for use in LightUtil.pack/unpack for a given format.
 *
 * @param format The format.
 * @return The element position, -1 if it does not exist.
 */
public static int getNormalElement(VertexFormat format) {
    for (int e = 0; e < format.getElementCount(); e++) {
        if (format.getElement(e).getUsage() == EnumUsage.NORMAL) {
            return e;
        }
    }
    return -1;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号