Click or drag to resize

TextureCreateCube Method

Creates a new cube texture.

Namespace:  Internal.SharpBgfx
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static Texture CreateCube(
	int size,
	bool hasMips,
	int arrayLayers,
	TextureFormat format,
	TextureFlags flags = TextureFlags.None,
	Nullable<MemoryBlock> memory = null
)

Parameters

size
Type: SystemInt32
The size of each cube face.
hasMips
Type: SystemBoolean
Indicates that texture contains full mip-map chain.
arrayLayers
Type: SystemInt32
Number of layers in texture array. Must be 1 if Texture2DArray caps flag not set.
format
Type: Internal.SharpBgfxTextureFormat
The format of the texture data.
flags (Optional)
Type: Internal.SharpBgfxTextureFlags
Flags that control texture behavior.
memory (Optional)
Type: SystemNullableMemoryBlock
If not null, contains the texture's image data.

Return Value

Type: Texture
The newly created texture handle.
See Also