Class Texture
A texture is defined by an image and a sampler.
Inherited Members
Namespace: GLTFast.Schema
Syntax
[Serializable]
public class Texture : NamedObject
Fields
extensions
Declaration
public TextureExtension extensions
Field Value
Type | Description |
---|---|
TextureExtension |
sampler
The index of the sampler used by this texture.
Declaration
public int sampler
Field Value
Type | Description |
---|---|
Int32 |
source
The index of the image used by this texture.
Declaration
public int source
Field Value
Type | Description |
---|---|
Int32 |
Properties
IsKtx
True, if the texture is of the KTX format.
Declaration
public bool IsKtx { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Equals(Object)
Determines whether two object instances are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
Boolean | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A hash code for the current object. |
Overrides
GetImageIndex()
Retrieves the final image index.
Declaration
public int GetImageIndex()
Returns
Type | Description |
---|---|
Int32 | Final image index |