public AbstractTextureFactory(AbstractResourceFactory rf) { _resources = rf; for (var i = 0; i < _freeIds.Length; i++) { _freeIds[ushort.MaxValue - i - 1] = (ushort)i; } }