コード例 #1
0
ファイル: Scene.cs プロジェクト: summer-of-software/vtank
        /// <summary>
        /// Adds a new VertexColorGroup object to the scene.
        /// </summary>
        /// <param name="_entity">The VertexColorGroup object to add.</param>
        /// <param name="_layer">The layer to add the VertexColorGroup object.</param>
        /// <returns>A unique ID for this entity.</returns>
        public int Add(VertexColorGroup _entity, int _layer)
        {
            int x = entityID.GetID();
            entityList.Add(x, _entity);
            AddLayers(_layer);
            layers[_layer].Add(x, _entity);

            return x;
        }
コード例 #2
0
 /// <summary>
 /// Adds a VertexColorGroup object to the layer.
 /// </summary>
 /// <param name="_entityID">The id to assign to the VertexColorGroup.</param>
 /// <param name="_entity">The VertexColorGroup object.</param>
 public void Add(int _entityID, VertexColorGroup _entity)
 {
     entityDictionaryVertexColor.Add(_entityID, _entity);
 }