A white cake only uses egg whites. However a vanilla cake will use whole eggs. Often a while cake will have whipped egg whites added into the batter. A vanilla cake sometimes uses this method, but generally whole eggs are added to the cake batter.