Nesnelerin ve özelliklerinin çizilmesi.
Kullanılabilir fonksiyonlar
cleardrawcache
Real global Drawing object list listesini temizler. Izlenen her Drawing object destroyed olarak isaretlenir, varsa image resources serbest birakilir ve object list bosaltilir. Temizlenen Drawing objects icin mevcut Lua references kalabilir, ancak objects artik active Drawing objects olarak kabul edilmez. the Drawing API bu APIyi yalnizca the required rendering environment is active true oldugunda kaydeder; bu kontrol false oldugunda initializer bu globals degerlerini olusturmadan once doner.
Drawing.new
Istenen turde yeni bir Drawing object olusturur ve Real tracked Drawing object list icine ekler. type string su tam desteklenen adlardan biri olmalidir: “Line”, “Text”, “Circle”, “Square”, “Quad”, “Triangle”, “Image”. Eksik, non-string veya desteklenmeyen type values Lua error olusturur. the Drawing API bu APIyi yalnizca the required rendering environment is active true oldugunda kaydeder; bu kontrol false oldugunda initializer bu globals degerlerini olusturmadan once doner.
getrenderproperty
Ilk argumani verilen property key ile indekslemenin sonucunu dondurur. Drawing object icin object[property] ile ayni Drawing property lookup kullanilir, bu yuzden unknown properties ve destroyed Drawing objects nil dondurur. the Drawing API bu APIyi yalnizca the required rendering environment is active true oldugunda kaydeder; bu kontrol false oldugunda initializer bu globals degerlerini olusturmadan once doner.
isrenderobj
Degerin Drawing object type iceren object olup olmadigini dondurur. Bu yalnizca methods check yapar; alttaki Drawing object hala active, tracked veya destroyed mi kontrol etmez. the Drawing API bu APIyi yalnizca the required rendering environment is active true oldugunda kaydeder; bu kontrol false oldugunda initializer bu globals degerlerini olusturmadan once doner.
setrenderproperty
value degerini object[property] icine atar. Drawing object icin direct property assignment ile ayni Drawing property assignment kullanilir. Unknown Drawing properties yok sayilir ve destroyed Drawing objects degistirilmez. Ucuncu arguman bulunmalidir. the Drawing API bu APIyi yalnizca the required rendering environment is active true oldugunda kaydeder; bu kontrol false oldugunda initializer bu globals degerlerini olusturmadan once doner.