/// <summary> /// Add a vertex color group to the renderer using the default layer of 2. /// </summary> /// <param name="entity">Entity to add.</param> /// <returns>The ID assigned to the object.</returns> public int Add(VertexColorGroup entity) { lock (this) { return(scene.Add(entity, 2)); } }
/// <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); }
/// <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); }