This is an old revision of the document!


Textures

Gorilla3D extends FMX texture support of TTextureBitmap. With default FMX behaviour you're only allowed to create a RGBA texture.

Texture-Kinds

With v0.8.2+ more texture types than 2D textures are supported.

FormatDescription
TGorillaTextureKind.Texture2DDefault texture kind creating a two dimensional image.
TGorillaTextureKind.Texture3DCreating a three dimensional texture.
TGorillaTextureKind.CubeMapCreating a texture with 6 sides of 2D Images.

Supported Formats

Min-/Mag Filter

Wrapping

LTexture := TGorillaTextureBitmap.Create(1024, 1024);
LTexture.BeginSetup();
try
    with LTexture do
    begin
        Components := TPixelFormatEx.RGB32F;
        Format := TPixelFormatEx.RGB;
        MinFilter := TTextureFilter.Linear;
        MagFilter := TTextureFilter.Linear;
        WrapS := TGorillaTextureWrap.ClampToBorder;
        WrapT := TGorillaTextureWrap.ClampToBorder;
    end;
finally
    LTexture.EndSetup();
end;