Java 类org.lwjgl.opengl.GL41 实例源码

项目:Visage    文件:Errors.java   
private static void buildMapping() {
    if (mapping != null) return;
    Multimap<Integer, String> map = HashMultimap.create();
    List<Class<?>> classes = ImmutableList.of(
            GL11.class, GL12.class, GL13.class, GL14.class, GL15.class,
            GL20.class, GL21.class, GL30.class, GL31.class, GL32.class,
            GL33.class, GL40.class, GL41.class, GL42.class, GL43.class,
            GL44.class, GL45.class, GLFW.class
            );
    for (Class<?> clazz : classes) {
        for (Field f : clazz.getDeclaredFields()) {
            if (f.getName().toUpperCase(Locale.ROOT).equals(f.getName()) &&
                    f.getType() == int.class && Modifier.isPublic(f.getModifiers()) && Modifier.isStatic(f.getModifiers())) {
                List<String> li = Splitter.on('_').splitToList(f.getName());
                li = li.subList(1, li.size());
                String clean =
                    Joiner.on(' ').join(
                        li.stream()
                            .map(Errors::toTitleCase)
                            .iterator());
                try {
                    map.put(f.getInt(null), clean);
                } catch (Throwable t) {
                    t.printStackTrace();
                }
            }
        }
    }
    mapping = map;
}
项目:gdx-backend-jglfw    文件:JglfwGL30.java   
@Override
public void glProgramParameteri (int program, int pname, int value) {
    GL41.glProgramParameteri(program, pname, value);
}
项目:playn    文件:LWJGLGL20.java   
@Override
public void glGetProgramBinary(int program, int bufSize, IntBuffer length,
                               IntBuffer binaryFormat, Buffer binary) {
  GL41.glGetProgramBinary(program, length, binaryFormat, (ByteBuffer) binary);
}
项目:playn    文件:LWJGLGL20.java   
@Override
public void glProgramBinary(int program, int binaryFormat, Buffer binary, int length) {
  // Length is calculated in glProgramBinary.
  GL41.glProgramBinary(program, binaryFormat, (ByteBuffer) binary);
}
项目:playn    文件:LWJGLGL20.java   
@Override
public void glGetProgramBinary(int program, int bufSize, IntBuffer length,
                               IntBuffer binaryFormat, Buffer binary) {
  GL41.glGetProgramBinary(program, length, binaryFormat, (ByteBuffer) binary);
}
项目:playn    文件:LWJGLGL20.java   
@Override
public void glProgramBinary(int program, int binaryFormat, Buffer binary, int length) {
  // Length is calculated in glProgramBinary.
  GL41.glProgramBinary(program, binaryFormat, (ByteBuffer) binary);
}
项目:libgdxcn    文件:LwjglGL30.java   
@Override
public void glProgramParameteri (int program, int pname, int value) {
    GL41.glProgramParameteri(program, pname, value);
}