@Override public PMatrixDirectReadable4x4FType<R2SpaceEyeType, R2SpaceLightEyeType> matrixProjectiveEyeToLightEye() { Preconditions.checkPrecondition(this.active, "Projective must be active"); return this.m_projective_eye_to_light_eye; }
@Override public PMatrixDirectReadable4x4FType<R2SpaceLightEyeType, R2SpaceLightClipType> matrixProjectiveProjection() { Preconditions.checkPrecondition(this.active, "Projective must be active"); return this.m_projective_projection; }
@Override public PMatrixDirectReadable4x4FType<R2SpaceWorldType, R2SpaceLightEyeType> matrixProjectiveView() { Preconditions.checkPrecondition(this.active, "Projective must be active"); return this.m_projective_view; }
@Override public PMatrixDirectReadable4x4FType<R2SpaceClipType, R2SpaceEyeType> matrixProjectionInverse() { Preconditions.checkPrecondition(this.active, "Observer must be active"); return this.m_projection_inverse; }
@Override public R2ViewRaysReadableType viewRays() { Preconditions.checkPrecondition(this.active, "Observer must be active"); return this.view_rays; }
@Override public R2ProjectionType projectiveProjection() { Preconditions.checkPrecondition(this.active, "Projective must be active"); return this.projection; }
@Override public PMatrixDirectReadable4x4FType<R2SpaceObjectType, R2SpaceEyeType> matrixModelView() { Preconditions.checkPrecondition(this.active, "Instance must be active"); return this.m_modelview; }
@Override public PMatrixDirectReadable3x3FType<R2SpaceTextureType, R2SpaceTextureType> matrixUV() { Preconditions.checkPrecondition(this.active, "Instance must be active"); return this.m_uv; } }
@Override public PMatrixDirectReadable4x4FType<R2SpaceObjectType, R2SpaceEyeType> matrixLightModelView() { Preconditions.checkPrecondition( this.active, "Volume light must be active"); return this.m_modelview; } }
@Override public PMatrixDirectReadable4x4FType<R2SpaceEyeType, R2SpaceClipType> matrixProjection() { Preconditions.checkPrecondition(this.active, "Observer must be active"); return this.m_projection; }
@Override public void shadowMapContextFinish() { Preconditions.checkPrecondition( this.active, "Renderer context must be active"); try { this.light = null; RendererContext.this.finishContext(); } finally { this.active = false; } }
@Override public PMatrixDirectReadable4x4FType<R2SpaceObjectType, R2SpaceEyeType> matrixLightModelView() { Preconditions.checkPrecondition(this.active, "Projective must be active"); return this.m_modelview; } }
@Override public PMatrixDirectReadable3x3FType<R2SpaceObjectType, R2SpaceNormalEyeType> matrixNormal() { Preconditions.checkPrecondition(this.active, "Instance must be active"); return this.m_normal; }
@Override public R2ProjectionReadableType projection() { Preconditions.checkPrecondition(this.active, "Observer must be active"); return this.projection; }
/** * @return The usable array object for the batch */ public JCGLArrayObjectUsableType arrayObject() { Preconditions.checkPrecondition( this.array_object != null, "Line segments must have been provided"); return this.array_object; }
private void finishCurrentMesh() { Preconditions.checkPrecondition( this.mesh.isPresent(), "Mesh must be present"); final String name = this.mesh.get(); Preconditions.checkPrecondition( !this.meshes.containsKey(name), "Mesh must not already exist"); final R2MeshBasicType m = this.builder.build(); LOG.debug("loaded {}", name); this.meshes.put(name, m); }
void start() { Preconditions.checkPrecondition( !this.active, "Renderer context must not be active"); this.variance.clear(); this.active = true; }
@Override public SMFMemoryMesh mesh() throws IllegalStateException { Preconditions.checkPrecondition( this.finished, "Mesh parsing has not yet finished"); if (this.errors.isEmpty()) { return this.mesh; } throw new IllegalStateException("Mesh parsing failed"); }
public static LWJGL3TextureSpec getTextureSpec( final JCGLTextureFormat format) { NullCheck.notNull(format, "Format"); Preconditions.checkPrecondition( format, SPECS.containsKey(format), ignored -> "Format specification must be known"); return SPECS.get(format); } }
private static ImmutableList<FieldName> getFieldPath( final Optional<LexicalPosition<Path>> lex, final SExpressionSymbolType se, final String text) throws JPRACompilerParseException { Preconditions.checkPrecondition(!text.isEmpty(), "Text must non-empty"); final String[] segments = text.split("\\."); return Lists.immutable.of(segments) .reject(String::isEmpty) .collect(x -> new FieldName(lex, x)); }