Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,21 @@ public void glVertexAttribDivisorARB(int index, int divisor) {
GLES30.glVertexAttribDivisor(index, divisor);
}

@Override
public int glGetUniformBlockIndex(int program, String uniformBlockName) {
return GLES30.glGetUniformBlockIndex(program, uniformBlockName);
}

@Override
public void glBindBufferBase(int target, int index, int buffer) {
GLES30.glBindBufferBase(target, index, buffer);
}

@Override
public void glUniformBlockBinding(int program, int uniformBlockIndex, int uniformBlockBinding) {
GLES30.glUniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding);
}

@Override
public void glBindFramebufferEXT(int param1, int param2) {
GLES20.glBindFramebuffer(param1, param2);
Expand Down Expand Up @@ -759,4 +774,3 @@ public void glGenVertexArrays(IntBuffer arrays) {
}

}

33 changes: 33 additions & 0 deletions jme3-core/src/main/java/com/jme3/renderer/opengl/GLExt.java
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,39 @@ public void glTexImage2DMultisample(int target, int samples, int internalFormat,
*/
public void glVertexAttribDivisorARB(int index, int divisor);

/**
* Retrieves the index of a named uniform block.
*
* @param program the name of a program containing the uniform block
* @param uniformBlockName the name of the uniform block whose index to retrieve
* @return the block index
*/
public default int glGetUniformBlockIndex(int program, String uniformBlockName) {
throw new UnsupportedOperationException("Uniform buffer objects are not supported");
}

/**
* Binds a buffer object to an indexed buffer target.
*
* @param target the target of the bind operation
* @param index the index of the binding point within the array specified by {@code target}
* @param buffer a buffer object to bind to the specified binding point
*/
public default void glBindBufferBase(int target, int index, int buffer) {
throw new UnsupportedOperationException("Uniform buffer objects are not supported");
}

/**
* Assigns a uniform block to a binding point.
*
* @param program the name of a program object
* @param uniformBlockIndex the index of the active uniform block within {@code program}
* @param uniformBlockBinding the binding point to assign
*/
public default void glUniformBlockBinding(int program, int uniformBlockIndex, int uniformBlockBinding) {
throw new UnsupportedOperationException("Uniform buffer objects are not supported");
}

public default void glPushDebugGroup(int source, int id, String message) {
}

Expand Down
Loading