Esempio n. 1
0
 public DisplayColorMapNode(int id, Graph parent) : base(id, parent)
 {
     _texture     = new GUIThreadedTexture();
     _inputSocket = new InputSocket(this, typeof(IColorMapConnection));
     Sockets.Add(_inputSocket);
     Width  = MinWidth;
     Height = MinHeight;
 }
Esempio n. 2
0
        private void StartJob(GUIThreadedTexture t)
        {
            HeightMapUpdateJob job = new HeightMapUpdateJob();

            job.Request(_textureOffsetX, _textureOffsetZ, CalcTextureWidth(), CalcTextureHeight(),
                        GetNumberSampler(), _inputSocketNumber.GetConnectedSocket(),
                        GetColorSampler(), _inputSocketColor.GetConnectedSocket());

            t.StartTextureUpdateJob(TextureLeft, TextureTop, CalcTextureWidth(), CalcTextureHeight(), job);
        }
 protected bool IsUpdatingTexture()
 {
     for (int index = 0; index < _textures.Count; index++)
     {
         GUIThreadedTexture t = _textures[index];
         if (t.IsUpdating)
         {
             return(true);
         }
     }
     return(false);
 }