Class TextureBase
A texture is defined by an image and a sampler.
Inherited Members
Namespace: GLTFast.Schema
Assembly: glTFast.dll
Syntax
[Serializable]
public abstract class TextureBase : NamedObject
Fields
sampler
The index of the sampler used by this texture.
Declaration
public int sampler
Field Value
| Type | Description |
|---|---|
| int |
source
The index of the image used by this texture.
Declaration
public int source
Field Value
| Type | Description |
|---|---|
| int |
Properties
Extensions
Texture extensions
Declaration
public abstract TextureExtensions Extensions { get; }
Property Value
| Type | Description |
|---|---|
| TextureExtensions |
IsKtx
True, if the texture is of the KTX format.
Declaration
public bool IsKtx { get; }
Property Value
| Type | Description |
|---|---|
| bool |
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 |
|---|---|
| bool | 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 |
|---|---|
| int | A hash code for the current object. |
Overrides
GetImageIndex()
Retrieves the final image index.
Declaration
public int GetImageIndex()
Returns
| Type | Description |
|---|---|
| int | Final image index |