Texas Penal Code
§31.03. Theft.
(a) A person commits an offense if he unlawfully appropriates
property with intent to deprive the owner of property.
(b) Appropriation of property is unlawful if:
(1) it is without the owner's effective consent;
(2) the property is stolen and the actor appropriates the
property knowing it was stolen by another; or
(3) property in the custody of any law enforcement agency was
explicitly represented by any law enforcement agent to the actor as
being stolen and the actor appropriates the property believing it was
stolen by another.
Theft is the taking of anothers property with the INTENT to deprive the owner of the property.
Texas Penal Code
§30.02. Burglary.
(a) A person commits an offense if, without the effective
consent of the owner, the person:
(1) enters a habitation, or a building (or any portion of a
building) not then open to the public, with intent to commit a felony,
theft, or an assault; or
(2) remains concealed, with intent to commit a felony, theft,
or an assault, in a building or habitation; or
(3) enters a building or habitation and commits or attempts
to commit a felony, theft, or an assault.
(b) For purposes of this section, "enter" means to intrude:
(1) any part of the body; or
(2) any physical object connected with the body.
Burglary requires the intent to commit a felony, theft or assault. Burglary does not include vending machines or cars. There are crimnes relating to vending machines and cars, but they are seperate and distinct offenses and have lower punishments. ;)