コード例 #1
0
        public override void UpdateEntity(int entity)
        {
            CPosition  position  = (CPosition)positions[entity];
            CDimension dimension = (CDimension)dimensions[entity];

            partitioner.Insert(new PartitionerEntry(entity, position, dimension));
        }
コード例 #2
0
        public override void UpdateEntity(int entity)
        {
            CPosition  position  = (CPosition)positions[entity];
            CDimension dimension = (CDimension)dimensions[entity];
            CTransform transform = (CTransform)transforms[entity];
            CColor     color     = (CColor)colors[entity];

            vertexBuffer[entity] = new VertexTransformColor(position, dimension, transform, color);
        }
コード例 #3
0
 public PartitionerEntry(int entity, CPosition position, CDimension dimension)
 {
     Identifier = entity;
     Bounds     = new Rectangle(position.X, position.Y, dimension.Width, dimension.Height);
 }