reckfellENGINE

GltfTexture

GLTFTexture represents a texture in a glTF file.

On this page
class GltfTextureReckfellSharpInherits Resource

GLTFTexture represents a texture in a glTF file.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

GltfTextureConstructor
# GltfTexture
C#
public GltfTexture();

Properties2

SamplerProperty
# Sampler
C#
public int Sampler { get; set; }

ID of the texture sampler to use when sampling the image. If -1, then the default texture sampler is used (linear filtering, and repeat wrapping in both axes).

SrcImageProperty
# SrcImage
C#
public int SrcImage { get; set; }

The index of the image associated with this texture, see GltfState.GetImages. If -1, then this texture does not have an image assigned.

Methods4

GetSamplerint
# GetSampler
C#
public int GetSampler();
Returns int
GetSrcImageint
# GetSrcImage
C#
public int GetSrcImage();
Returns int
SetSamplervoid
# SetSampler
C#
public void SetSampler(int sampler);
Parameters
NameTypeDefault
samplerint—
SetSrcImagevoid
# SetSrcImage
C#
public void SetSrcImage(int srcImage);
Parameters
NameTypeDefault
srcImageint—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.