# ITexture

- **İngilizce aslı:** https://wiki.facepunch.com/gmod/ITexture
- **Çeviri tarihi:** 2025-09-08

`.vtf` dosyasından yüklenenler gibi, oyun dokularını temsil eden bir nesne.

[IMaterial](https://gmod.tr/wiki/IMaterial) ile karıştırmayın. Materyaller dokuları kullanır. Oyun materyalleri kullanır.

[IMaterial:GetTexture](https://gmod.tr/wiki/IMaterial:GetTexture) tarafından döndürülür.

## Metotlar

ITexture:[Download](https://gmod.tr/wiki/ITexture:Download)()

Dokunun oluşturucusunu çağırır. Dosya tabanlı dokuları diskten yeniden yükler ve render hedefi dokularını temizler.

[Color](https://gmod.tr/wiki/Color) ITexture:[GetColor](https://gmod.tr/wiki/ITexture:GetColor)( [number](https://gmod.tr/wiki/number) x, [number](https://gmod.tr/wiki/number) y )

Belirtilen pikselin rengini döndürür, yalnızca PNG dosyalarından oluşturulan dokular için çalışır. Döndürülen renkte color metatable bulunmaz.Hata Takipçisi: 2407

[number](https://gmod.tr/wiki/number) ITexture:[GetMappingHeight](https://gmod.tr/wiki/ITexture:GetMappingHeight)()

Dokunun gerçek, değiştirilmemiş yüksekliğini döndürür.

[number](https://gmod.tr/wiki/number) ITexture:[GetMappingWidth](https://gmod.tr/wiki/ITexture:GetMappingWidth)()

Dokunun gerçek, değiştirilmemiş genişliğini döndürür.

[string](https://gmod.tr/wiki/string) ITexture:[GetName](https://gmod.tr/wiki/ITexture:GetName)()

Dokunun adını, çoğu durumda dosya yolunu döndürür.

[number](https://gmod.tr/wiki/number) ITexture:[GetNumAnimationFrames](https://gmod.tr/wiki/ITexture:GetNumAnimationFrames)()

Bu dokudaki animasyon karelerinin sayısını döndürür.

[number](https://gmod.tr/wiki/number) ITexture:[Height](https://gmod.tr/wiki/ITexture:Height)()

Dokunun değiştirilmiş yüksekliğini döndürür, bu değer mipmapping ve diğer faktörlerden etkilenebilir.

[boolean](https://gmod.tr/wiki/boolean) ITexture:[IsError](https://gmod.tr/wiki/ITexture:IsError)()

Dokunun geçerli olup olmadığını döndürür. (yani başarıyla yüklenip yüklenmediğini) Not: "Hata" dokusu geçerli bir dokudur ve bu nedenle bu fonksiyon onun üzerinde kullanıldığında false döndürür. Bunun yerine ITexture:IsErrorTexture kullanın.

[boolean](https://gmod.tr/wiki/boolean) ITexture:[IsErrorTexture](https://gmod.tr/wiki/ITexture:IsErrorTexture)()

Dokunun hata dokusu olup olmadığını döndürür (pembe ve siyah dama tahtası deseni).

[number](https://gmod.tr/wiki/number) ITexture:[Width](https://gmod.tr/wiki/ITexture:Width)()

Dokunun değiştirilmiş genişliğini döndürür, bu değer mipmapping ve diğer faktörlerden etkilenebilir.

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/ITexture
