Esempio n. 1
0
 internal void SetData(uint[] data, int startOffset = 0, int elementCount = 0, bool invertY = false)
 {
     tempUIntData     = data;
     tempStartOffset  = startOffset;
     tempElementCount = elementCount;
     tempInvertY      = invertY;
     UnityMainThreadDispatcher.Dispatch(SetDataUInt);
 }
Esempio n. 2
0
        public void Dispose()
        {
            UnityMainThreadDispatcher.Dispatch(RecycleSourceAndDestroyClip);

            IsDisposed = true;

            buffer           = null;
            conversionBuffer = null;
        }
Esempio n. 3
0
 public void Stop()
 {
     UnityMainThreadDispatcher.Dispatch(RecycleSourceAndDestroyClip);
     State = SoundState.Stopped;
 }
Esempio n. 4
0
 internal void SetData(Color[] data)
 {
     tempColorData = data;
     UnityMainThreadDispatcher.Dispatch(SetDataColor);
 }
Esempio n. 5
0
 internal void SetData(byte[] data)
 {
     tempByteData = data;
     UnityMainThreadDispatcher.Dispatch(SetDataBytes);
 }
Esempio n. 6
0
 public Texture2D(GraphicsDevice graphicsDevice, int width, int height) : base(graphicsDevice)
 {
     Width  = width;
     Height = height;
     UnityMainThreadDispatcher.Dispatch(InitTexture);
 }