public uint GetHandle() { if (texture == null) { texture = LoadTexture(); } return(texture.GetHandle()); }
public static void SetTexture(ITexture texture, int stage) { var handle = texture != null?texture.GetHandle() : 0; SetTexture(handle, stage); }