Click or drag to resize

EncoderSetTexture Method (Byte, Uniform, Texture, TextureFlags)

Sets a texture to use for drawing primitives.

Namespace:  Internal.SharpBgfx
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public void SetTexture(
	byte textureUnit,
	Uniform sampler,
	Texture texture,
	TextureFlags flags
)

Parameters

textureUnit
Type: SystemByte
The texture unit to set.
sampler
Type: Internal.SharpBgfxUniform
The sampler uniform.
texture
Type: Internal.SharpBgfxTexture
The texture to set.
flags
Type: Internal.SharpBgfxTextureFlags
Sampling flags that override the default flags in the texture itself.
See Also