コード例 #1
0
 public int Add(VertexPositionColorTextureGroup entity)
 {
     lock (this)
     {
         return(scene.Add(entity, 2));
     }
 }
コード例 #2
0
ファイル: Scene.cs プロジェクト: bburhans/vtank
        /// <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);
        }
コード例 #3
0
ファイル: SceneLayer.cs プロジェクト: bburhans/vtank
 /// <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);
 }