Lwjgl3Window(ApplicationListener listener, Lwjgl3ApplicationConfiguration config) { this.listener = listener; this.windowListener = config.windowListener; this.config = config; this.tmpBuffer = BufferUtils.createIntBuffer(1); this.tmpBuffer2 = BufferUtils.createIntBuffer(1); }
Lwjgl3Window(ApplicationListener listener, Lwjgl3ApplicationConfiguration config) { this.listener = listener; this.windowListener = config.windowListener; this.config = config; this.tmpBuffer = BufferUtils.createIntBuffer(1); this.tmpBuffer2 = BufferUtils.createIntBuffer(1); }
public String glGetActiveUniform (int program, int index, IntBuffer size, Buffer type) { // FIXME this is less than ideal of course... IntBuffer typeTmp = BufferUtils.createIntBuffer(2); String name = GL20.glGetActiveUniform(program, index, 256, typeTmp); size.put(typeTmp.get(0)); if (type instanceof IntBuffer) ((IntBuffer)type).put(typeTmp.get(1)); return name; }
public String glGetActiveAttrib (int program, int index, IntBuffer size, Buffer type) { IntBuffer typeTmp = BufferUtils.createIntBuffer(2); String name = GL20.glGetActiveAttrib(program, index, 256, size, typeTmp); size.put(typeTmp.get(0)); if (type instanceof IntBuffer) ((IntBuffer)type).put(typeTmp.get(1)); return name; }
public String glGetActiveUniform (int program, int index, IntBuffer size, Buffer type) { IntBuffer typeTmp = BufferUtils.createIntBuffer(2); String name = GL20.glGetActiveUniform(program, index, 256, size, typeTmp); size.put(typeTmp.get(0)); if (type instanceof IntBuffer) ((IntBuffer)type).put(typeTmp.get(1)); return name; }
public String glGetActiveUniform (int program, int index, IntBuffer size, Buffer type) { // FIXME this is less than ideal of course... IntBuffer typeTmp = BufferUtils.createIntBuffer(2); String name = GL20.glGetActiveUniform(program, index, 256, typeTmp); size.put(typeTmp.get(0)); if (type instanceof IntBuffer) ((IntBuffer)type).put(typeTmp.get(1)); return name; }
public String glGetActiveAttrib (int program, int index, IntBuffer size, Buffer type) { // FIXME this is less than ideal of course... IntBuffer typeTmp = BufferUtils.createIntBuffer(2); String name = GL20.glGetActiveAttrib(program, index, 256, typeTmp); size.put(typeTmp.get(0)); if (type instanceof IntBuffer) ((IntBuffer)type).put(typeTmp.get(1)); return name; }
public String glGetActiveAttrib (int program, int index, IntBuffer size, Buffer type) { IntBuffer typeTmp = BufferUtils.createIntBuffer(2); String name = GL20.glGetActiveAttrib(program, index, 256, size, typeTmp); size.put(typeTmp.get(0)); if (type instanceof IntBuffer) ((IntBuffer)type).put(typeTmp.get(1)); return name; }
public String glGetActiveAttrib (int program, int index, IntBuffer size, Buffer type) { // FIXME this is less than ideal of course... IntBuffer typeTmp = BufferUtils.createIntBuffer(2); String name = GL20.glGetActiveAttrib(program, index, 256, typeTmp); size.put(typeTmp.get(0)); if (type instanceof IntBuffer) ((IntBuffer)type).put(typeTmp.get(1)); return name; }
public String glGetActiveUniform (int program, int index, IntBuffer size, Buffer type) { IntBuffer typeTmp = BufferUtils.createIntBuffer(2); String name = GL20.glGetActiveUniform(program, index, 256, size, typeTmp); size.put(typeTmp.get(0)); if (type instanceof IntBuffer) ((IntBuffer)type).put(typeTmp.get(1)); return name; }
static Lwjgl3Monitor toLwjgl3Monitor(long glfwMonitor) { IntBuffer tmp = BufferUtils.createIntBuffer(1); IntBuffer tmp2 = BufferUtils.createIntBuffer(1); GLFW.glfwGetMonitorPos(glfwMonitor, tmp, tmp2); int virtualX = tmp.get(0); int virtualY = tmp2.get(0); String name = GLFW.glfwGetMonitorName(glfwMonitor); return new Lwjgl3Monitor(glfwMonitor, virtualX, virtualY, name); } }
static Lwjgl3Monitor toLwjgl3Monitor(long glfwMonitor) { IntBuffer tmp = BufferUtils.createIntBuffer(1); IntBuffer tmp2 = BufferUtils.createIntBuffer(1); GLFW.glfwGetMonitorPos(glfwMonitor, tmp, tmp2); int virtualX = tmp.get(0); int virtualY = tmp2.get(0); String name = GLFW.glfwGetMonitorName(glfwMonitor); return new Lwjgl3Monitor(glfwMonitor, virtualX, virtualY, name); } }
@Override public void getRenderSize(Vector2f store) { IntBuffer w = BufferUtils.createIntBuffer(1); IntBuffer h = BufferUtils.createIntBuffer(1); VRSystem.VRSystem_GetRecommendedRenderTargetSize(w, h); logger.config("Recommended render width : " + w.get(0)); logger.config("Recommended render height: " + h.get(0)); store.x = w.get(0); store.y = h.get(0); }
public void dispose(int buffer) { if (buffer != 0) { pool.add(buffer); IntBuffer dataBuffer = BufferUtils.createIntBuffer(1); dataBuffer.put(0); dataBuffer.flip(); VertexBufferObjectUtil.bufferVboData(buffer, dataBuffer, GL15.GL_STATIC_DRAW); dataBuffer.flip(); if (traceBufferUsage) { usageTracker.remove(buffer); } } }
public LwjglFrameBufferObject(ResourceUrn urn, BaseVector2i size) { this.size = ImmutableVector2i.createOrUse(size); IntBuffer fboId = BufferUtils.createIntBuffer(1); GL30.glGenFramebuffers(fboId); frame = fboId.get(0); Texture texture = generateTexture(urn); GL30.glBindFramebuffer(GL30.GL_FRAMEBUFFER, frame); GL30.glFramebufferTexture2D(GL30.GL_FRAMEBUFFER, GL30.GL_COLOR_ATTACHMENT0, GL11.GL_TEXTURE_2D, texture.getId(), 0); int result = GL30.glCheckFramebufferStatus(GL30.GL_FRAMEBUFFER); if (result != GL30.GL_FRAMEBUFFER_COMPLETE) { throw new IllegalStateException("Something went wrong with framebuffer! " + result); } GL30.glBindFramebuffer(GL30.GL_FRAMEBUFFER, 0); }
private void createIndexBuffer(TIntList indexList) { IntBuffer indexBuffer = BufferUtils.createIntBuffer(indexList.size()); TIntIterator iterator = indexList.iterator(); while (iterator.hasNext()) { indexBuffer.put(iterator.next()); } indexBuffer.flip(); if (disposalAction.vboIndexBuffer == 0) { disposalAction.vboIndexBuffer = disposalAction.bufferPool.get(getUrn().toString()); } VertexBufferObjectUtil.bufferVboElementData(disposalAction.vboIndexBuffer, indexBuffer, GL15.GL_STATIC_DRAW); indexBuffer.flip(); }
buffers = BufferUtils.createIntBuffer(bufferCount); alGenBuffers(buffers); int errorCode = alGetError();
buffers = BufferUtils.createIntBuffer(bufferCount); alGenBuffers(buffers); int errorCode = alGetError();
buffers = BufferUtils.createIntBuffer(bufferCount); alGenBuffers(buffers); int errorCode = alGetError();
buffers = BufferUtils.createIntBuffer(bufferCount); alGenBuffers(buffers); int errorCode = alGetError();