-
public class RenderTarget.BuilderConstructs
RenderTargetobjects using a builder pattern.
-
-
Constructor Summary
Constructors Constructor Description RenderTarget.Builder()
-
Method Summary
Modifier and Type Method Description RenderTarget.Buildertexture(@NonNull() RenderTarget.AttachmentPoint attachment, @Nullable() Texture texture)Sets a texture to a given attachment point. RenderTarget.BuildermipLevel(@NonNull() RenderTarget.AttachmentPoint attachment, @IntRange(from = 0) int level)Sets the mipmap level for a given attachment point. RenderTarget.Builderface(@NonNull() RenderTarget.AttachmentPoint attachment, Texture.CubemapFace face)Sets the cubemap face for a given attachment point. RenderTarget.Builderlayer(@NonNull() RenderTarget.AttachmentPoint attachment, @IntRange(from = 0) int layer)Sets the layer for a given attachment point (for 3D textures). RenderTargetbuild(@NonNull() Engine engine)Creates the RenderTarget object and returns a pointer to it. -
-
Method Detail
-
texture
@NonNull() RenderTarget.Builder texture(@NonNull() RenderTarget.AttachmentPoint attachment, @Nullable() Texture texture)
Sets a texture to a given attachment point.
All RenderTargets must have a non-null
COLORattachment.- Parameters:
attachment- The attachment point of the texture.texture- The associated texture object.
-
mipLevel
@NonNull() RenderTarget.Builder mipLevel(@NonNull() RenderTarget.AttachmentPoint attachment, @IntRange(from = 0) int level)
Sets the mipmap level for a given attachment point.
- Parameters:
attachment- The attachment point of the texture.level- The associated mipmap level, 0 by default.
-
face
@NonNull() RenderTarget.Builder face(@NonNull() RenderTarget.AttachmentPoint attachment, Texture.CubemapFace face)
Sets the cubemap face for a given attachment point.
- Parameters:
attachment- The attachment point.face- The associated cubemap face.
-
layer
@NonNull() RenderTarget.Builder layer(@NonNull() RenderTarget.AttachmentPoint attachment, @IntRange(from = 0) int layer)
Sets the layer for a given attachment point (for 3D textures).
- Parameters:
attachment- The attachment point.layer- The associated cubemap layer.
-
build
@NonNull() RenderTarget build(@NonNull() Engine engine)
Creates the RenderTarget object and returns a pointer to it.
-
-
-
-