/** * Converts to {@link JCGLClearSpecification JCGLClearSpecification}. * @return An immutable instance of JCGLClearSpecification */ public final JCGLClearSpecification toImmutable() { return JCGLClearSpecification.builder() .from(this) .build(); }
private R2DepthVarianceRenderer( final JCGLInterfaceGL33Type in_g) { this.g = NullCheck.notNull(in_g); this.depth_consumer = new DepthConsumer(this.g); final JCGLClearSpecification clear = JCGLClearSpecification.of( Optional.of(new VectorI4F(1.0f, 1.0f, 1.0f, 1.0f)), OptionalDouble.of(1.0), OptionalInt.empty(), true); }
/** * Construct a new immutable {@code JCGLClearSpecification} instance. * @param colorBufferClear The value for the {@code colorBufferClear} attribute * @param depthBufferClear The value for the {@code depthBufferClear} attribute * @param stencilBufferClear The value for the {@code stencilBufferClear} attribute * @param strictChecking The value for the {@code strictChecking} attribute * @return An immutable JCGLClearSpecification instance */ public static JCGLClearSpecification of(Optional<Vector4D> colorBufferClear, OptionalDouble depthBufferClear, OptionalInt stencilBufferClear, boolean strictChecking) { return new JCGLClearSpecification(colorBufferClear, depthBufferClear, stencilBufferClear, strictChecking); }
/** * This instance is equal to all instances of {@code JCGLClearSpecification} that have equal attribute values. * @return {@code true} if {@code this} is equal to {@code another} instance */ @Override public boolean equals(Object another) { if (this == another) return true; return another instanceof JCGLClearSpecification && equalTo((JCGLClearSpecification) another); }
/** * This instance is equal to all instances of {@code JCGLClearSpecification} that have equal attribute values. * @return {@code true} if {@code this} is equal to {@code another} instance */ @Override public boolean equals(Object another) { if (this == another) return true; return another instanceof JCGLClearSpecification && equalTo((JCGLClearSpecification) another); }
/** * Converts to {@link JCGLClearSpecification JCGLClearSpecification}. * @return An immutable instance of JCGLClearSpecification */ public final JCGLClearSpecification toImmutable() { return JCGLClearSpecification.builder() .from(this) .build(); }
private VarianceState( final JCGLInterfaceGL33Type g, final R2DepthVarianceRendererType vr, final R2RenderTargetPoolUsableType<R2DepthVarianceBufferDescriptionType, R2DepthVarianceBufferUsableType> vp) { this.renderer = NullCheck.notNull(vr); this.pool = NullCheck.notNull(vp); this.used = new Long2ReferenceOpenHashMap<>(32); this.clear = JCGLClearSpecification.of( Optional.of(new VectorI4F(1.0f, 1.0f, 1.0f, 1.0f)), OptionalDouble.of(1.0), OptionalInt.empty(), true); }
/** * Construct a new immutable {@code JCGLClearSpecification} instance. * @param colorBufferClear The value for the {@code colorBufferClear} attribute * @param depthBufferClear The value for the {@code depthBufferClear} attribute * @param stencilBufferClear The value for the {@code stencilBufferClear} attribute * @param strictChecking The value for the {@code strictChecking} attribute * @return An immutable JCGLClearSpecification instance */ public static JCGLClearSpecification of(Optional<VectorReadable4FType> colorBufferClear, OptionalDouble depthBufferClear, OptionalInt stencilBufferClear, boolean strictChecking) { return new JCGLClearSpecification(colorBufferClear, depthBufferClear, stencilBufferClear, strictChecking); }
JCGLClearSpecification.builder(); cb.setColorBufferClear(Vector4D.of(0.1, 0.1, 0.1, 1.0)); this.clear = cb.build();
JCGLClearSpecification.of( Optional.of(Vector4D.of(1.0, 1.0, 1.0, 1.0)), OptionalDouble.empty(),
/** * Builds a new {@link JCGLClearSpecification JCGLClearSpecification}. * @return An immutable instance of JCGLClearSpecification * @throws java.lang.IllegalStateException if any required attributes are missing */ public JCGLClearSpecification build() { return new JCGLClearSpecification(this); }
JCGLClearSpecification.builder(); cb.setColorBufferClear(Vector4D.of(0.1, 0.1, 0.1, 1.0)); this.clear = cb.build();
JCGLClearSpecification.of( Optional.of(new VectorI4F(1.0f, 1.0f, 1.0f, 1.0f)), OptionalDouble.empty(),
/** * Builds a new {@link JCGLClearSpecification JCGLClearSpecification}. * @return An immutable instance of JCGLClearSpecification * @throws java.lang.IllegalStateException if any required attributes are missing */ public JCGLClearSpecification build() { return new JCGLClearSpecification(this); }
JCGLClearSpecification.builder(); cb.setColorBufferClear(Vector4D.of(0.1, 0.1, 0.1, 1.0)); this.clear = cb.build();
JCGLClearSpecification.builder(); cb.setColorBufferClear(new VectorI4F(0.1f, 0.1f, 0.1f, 1.0f)); this.clear = cb.build();
JCGLClearSpecification.builder(); cb.setColorBufferClear(new VectorI4F(0.1f, 0.1f, 0.1f, 1.0f)); this.clear = cb.build();
JCGLClearSpecification.builder(); cb.setColorBufferClear(new VectorI4F(0.1f, 0.1f, 0.1f, 1.0f)); this.clear = cb.build();
JCGLClearSpecification.builder(); cb.setColorBufferClear(new VectorI4F(0.1f, 0.1f, 0.1f, 1.0f)); this.clear = cb.build();
JCGLClearSpecification.builder(); cb.setColorBufferClear(Vector4D.of(0.1, 0.1, 0.1, 1.0)); this.clear = cb.build();