importTexture

Specify a native texture to import as a Filament texture.

The texture id is backend-specific:

  • OpenGL: GLuint texture ID

  • Metal: id

With Metal, the id object should be cast to a Long using platform-specific methods to transfer ownership to Filament. Filament will release ownership of the texture object when the Filament texture is destroyed.

Return

This Builder, for chaining calls.

Parameters

id

a backend specific texture identifier

Specify a native texture to import as a Filament texture.

The texture id is backend-specific:

  • OpenGL: GLuint texture ID

  • Metal: id

With Metal, the id object should be cast to a Long using platform-specific methods to transfer ownership to Filament. Filament will release ownership of the texture object when the Filament texture is destroyed.

Return

This Builder, for chaining calls.

Parameters

id

a backend specific texture identifier

Specify a native texture to import as a Filament texture.

The texture id is backend-specific:

  • OpenGL: GLuint texture ID

  • Metal: id

With Metal, the id object should be cast to a Long using platform-specific methods to transfer ownership to Filament. Filament will release ownership of the texture object when the Filament texture is destroyed.

Return

This Builder, for chaining calls.

Parameters

id

a backend specific texture identifier

Specify a native texture to import as a Filament texture.

The texture id is backend-specific:

  • OpenGL: GLuint texture ID

  • Metal: id

With Metal, the id object should be cast to a Long using platform-specific methods to transfer ownership to Filament. Filament will release ownership of the texture object when the Filament texture is destroyed.

Return

This Builder, for chaining calls.

Parameters

id

a backend specific texture identifier

Specify a native texture to import as a Filament texture.

The texture id is backend-specific:

  • OpenGL: GLuint texture ID

  • Metal: id

With Metal, the id object should be cast to a Long using platform-specific methods to transfer ownership to Filament. Filament will release ownership of the texture object when the Filament texture is destroyed.

Return

This Builder, for chaining calls.

Parameters

id

a backend specific texture identifier