Removed empty lines
This commit is contained in:
parent
4cd0c5bffb
commit
1e0468bdbe
@ -257,7 +257,11 @@ public class GLRenderer implements Renderer {
|
|||||||
// gl.glGetInteger(GL.GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, intBuf16);
|
// gl.glGetInteger(GL.GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, intBuf16);
|
||||||
// fragUniforms = intBuf16.get(0);
|
// fragUniforms = intBuf16.get(0);
|
||||||
// logger.log(Level.FINER, "Fragment Uniforms: {0}", fragUniforms);
|
// logger.log(Level.FINER, "Fragment Uniforms: {0}", fragUniforms);
|
||||||
limits.put(Limits.VertexUniformComponents,getInteger(GL.GL_MAX_VERTEX_UNIFORM_COMPONENTS));
|
if (caps.contains(Caps.OpenGLES20)) {
|
||||||
|
limits.put(Limits.VertexUniformVectors, getInteger(GL.GL_MAX_VERTEX_UNIFORM_VECTORS));
|
||||||
|
} else {
|
||||||
|
limits.put(Limits.VertexUniformVectors, getInteger(GL.GL_MAX_VERTEX_UNIFORM_COMPONENTS) / 4);
|
||||||
|
}
|
||||||
limits.put(Limits.VertexAttributes, getInteger(GL.GL_MAX_VERTEX_ATTRIBS));
|
limits.put(Limits.VertexAttributes, getInteger(GL.GL_MAX_VERTEX_ATTRIBS));
|
||||||
limits.put(Limits.TextureSize, getInteger(GL.GL_MAX_TEXTURE_SIZE));
|
limits.put(Limits.TextureSize, getInteger(GL.GL_MAX_TEXTURE_SIZE));
|
||||||
limits.put(Limits.CubemapSize, getInteger(GL.GL_MAX_CUBE_MAP_TEXTURE_SIZE));
|
limits.put(Limits.CubemapSize, getInteger(GL.GL_MAX_CUBE_MAP_TEXTURE_SIZE));
|
||||||
@ -461,8 +465,7 @@ public class GLRenderer implements Renderer {
|
|||||||
if (logger.isLoggable(Level.FINE)) {
|
if (logger.isLoggable(Level.FINE)) {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("Supported capabilities: \n");
|
sb.append("Supported capabilities: \n");
|
||||||
for (Caps cap : caps)
|
for (Caps cap : caps) {
|
||||||
{
|
|
||||||
sb.append("\t").append(cap.toString()).append("\n");
|
sb.append("\t").append(cap.toString()).append("\n");
|
||||||
}
|
}
|
||||||
logger.log(Level.FINE, sb.toString());
|
logger.log(Level.FINE, sb.toString());
|
||||||
@ -535,9 +538,11 @@ public class GLRenderer implements Renderer {
|
|||||||
invalidateState();
|
invalidateState();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************\
|
/**
|
||||||
|* Render State *|
|
* ******************************************************************\
|
||||||
\*********************************************************************/
|
* |* Render State *|
|
||||||
|
* \********************************************************************
|
||||||
|
*/
|
||||||
public void setDepthRange(float start, float end) {
|
public void setDepthRange(float start, float end) {
|
||||||
gl.glDepthRange(start, end);
|
gl.glDepthRange(start, end);
|
||||||
}
|
}
|
||||||
@ -814,9 +819,11 @@ public class GLRenderer implements Renderer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************\
|
/**
|
||||||
|* Camera and World transforms *|
|
* ******************************************************************\
|
||||||
\*********************************************************************/
|
* |* Camera and World transforms *|
|
||||||
|
* \********************************************************************
|
||||||
|
*/
|
||||||
public void setViewPort(int x, int y, int w, int h) {
|
public void setViewPort(int x, int y, int w, int h) {
|
||||||
if (x != vpX || vpY != y || vpW != w || vpH != h) {
|
if (x != vpX || vpY != y || vpW != w || vpH != h) {
|
||||||
gl.glViewport(x, y, w, h);
|
gl.glViewport(x, y, w, h);
|
||||||
@ -858,9 +865,11 @@ public class GLRenderer implements Renderer {
|
|||||||
gl.resetStats();
|
gl.resetStats();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************\
|
/**
|
||||||
|* Shaders *|
|
* ******************************************************************\
|
||||||
\*********************************************************************/
|
* |* Shaders *|
|
||||||
|
* \********************************************************************
|
||||||
|
*/
|
||||||
protected void updateUniformLocation(Shader shader, Uniform uniform) {
|
protected void updateUniformLocation(Shader shader, Uniform uniform) {
|
||||||
int loc = gl.glGetUniformLocation(shader.getId(), uniform.getName());
|
int loc = gl.glGetUniformLocation(shader.getId(), uniform.getName());
|
||||||
if (loc < 0) {
|
if (loc < 0) {
|
||||||
@ -1245,9 +1254,11 @@ public class GLRenderer implements Renderer {
|
|||||||
shader.resetObject();
|
shader.resetObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************\
|
/**
|
||||||
|* Framebuffers *|
|
* ******************************************************************\
|
||||||
\*********************************************************************/
|
* |* Framebuffers *|
|
||||||
|
* \********************************************************************
|
||||||
|
*/
|
||||||
public void copyFrameBuffer(FrameBuffer src, FrameBuffer dst) {
|
public void copyFrameBuffer(FrameBuffer src, FrameBuffer dst) {
|
||||||
copyFrameBuffer(src, dst, true);
|
copyFrameBuffer(src, dst, true);
|
||||||
}
|
}
|
||||||
@ -1695,9 +1706,11 @@ public class GLRenderer implements Renderer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************\
|
/**
|
||||||
|* Textures *|
|
* ******************************************************************\
|
||||||
\*********************************************************************/
|
* |* Textures *|
|
||||||
|
* \********************************************************************
|
||||||
|
*/
|
||||||
private int convertTextureType(Texture.Type type, int samples, int face) {
|
private int convertTextureType(Texture.Type type, int samples, int face) {
|
||||||
if (samples > 1 && !caps.contains(Caps.TextureMultisample)) {
|
if (samples > 1 && !caps.contains(Caps.TextureMultisample)) {
|
||||||
throw new RendererException("Multisample textures are not supported" +
|
throw new RendererException("Multisample textures are not supported" +
|
||||||
@ -2146,9 +2159,11 @@ public class GLRenderer implements Renderer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************\
|
/**
|
||||||
|* Vertex Buffers and Attributes *|
|
* ******************************************************************\
|
||||||
\*********************************************************************/
|
* |* Vertex Buffers and Attributes *|
|
||||||
|
* \********************************************************************
|
||||||
|
*/
|
||||||
private int convertUsage(Usage usage) {
|
private int convertUsage(Usage usage) {
|
||||||
switch (usage) {
|
switch (usage) {
|
||||||
case Static:
|
case Static:
|
||||||
@ -2486,9 +2501,11 @@ public class GLRenderer implements Renderer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************\
|
/**
|
||||||
|* Render Calls *|
|
* ******************************************************************\
|
||||||
\*********************************************************************/
|
* |* Render Calls *|
|
||||||
|
* \********************************************************************
|
||||||
|
*/
|
||||||
public int convertElementMode(Mesh.Mode mode) {
|
public int convertElementMode(Mesh.Mode mode) {
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case Points:
|
case Points:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user