public override void UpdateEntity(int entity) { CPosition position = (CPosition)positions[entity]; CDimension dimension = (CDimension)dimensions[entity]; partitioner.Insert(new PartitionerEntry(entity, position, dimension)); }
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); }
public PartitionerEntry(int entity, CPosition position, CDimension dimension) { Identifier = entity; Bounds = new Rectangle(position.X, position.Y, dimension.Width, dimension.Height); }