private void checkIsFloatingPoint(final JCGLProgramUniformType u) { if (this.check_type) { final JCGLType type_uniform = u.type(); if (!type_uniform.isFloatingPointType()) { final StringBuilder sb = new StringBuilder(128); sb.append("Uniform type error."); sb.append(System.lineSeparator()); sb.append("Expected: A floating point type"); sb.append(System.lineSeparator()); sb.append("Actual: "); sb.append(type_uniform); throw new JCGLExceptionProgramTypeError(sb.toString()); } } }
private void checkIsFloatingPoint(final JCGLProgramUniformType u) { if (this.check_type) { final JCGLType type_uniform = u.getType(); if (!type_uniform.isFloatingPointType()) { final StringBuilder sb = new StringBuilder(128); sb.append("Uniform type error."); sb.append(System.lineSeparator()); sb.append("Expected: A floating point type"); sb.append(System.lineSeparator()); sb.append("Actual: "); sb.append(type_uniform); throw new JCGLExceptionProgramTypeError(sb.toString()); } } }
private void checkIsFloatingPoint(final JCGLProgramUniformType u) { if (this.check_type) { final JCGLType type_uniform = u.getType(); if (!type_uniform.isFloatingPointType()) { final StringBuilder sb = new StringBuilder(128); sb.append("Uniform type error."); sb.append(System.lineSeparator()); sb.append("Expected: A floating point type"); sb.append(System.lineSeparator()); sb.append("Actual: "); sb.append(type_uniform); throw new JCGLExceptionProgramTypeError(sb.toString()); } } }
private void checkIsFloatingPoint(final JCGLProgramUniformType u) { if (this.check_type) { final JCGLType type_uniform = u.type(); if (!type_uniform.isFloatingPointType()) { final StringBuilder sb = new StringBuilder(128); sb.append("Uniform type error."); sb.append(System.lineSeparator()); sb.append("Expected: A floating point type"); sb.append(System.lineSeparator()); sb.append("Actual: "); sb.append(type_uniform); throw new JCGLExceptionProgramTypeError(sb.toString()); } } }