예제 #1
0
        /// <summary>
        /// Adds a new VertexPositionColorTextureGroup object to the scene.
        /// </summary>
        /// <param name="_entity">The VertexPositionColorTextureGroup object to add.</param>
        /// <param name="_layer">The layer to add the VertexPositionColorTextureGroup object.</param>
        /// <returns>A unique ID for this entity.</returns>
        public int Add(VertexPositionColorTextureGroup _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 VertexPositionColorTextureGroup object to the layer.
 /// </summary>
 /// <param name="_entityID">The id to assign to the VertexPositionColorTextureGroup.</param>
 /// <param name="_entity">The VertexPositionColorTextureGroup object.</param>
 public void Add(int _entityID, VertexPositionColorTextureGroup _entity)
 {
     entityDictionaryVPCT.Add(_entityID, _entity);
 }