How exactly do self-defense laws work in Texas?

From the article: Four Things You Should Know About Self-Defense Law In Texas

A boy walks by a memorial for Devonte Ortiz, who was killed in the parking lot of the Pleasant Hill Apartments in Southeast Austin on Wednesday. The suspect in the case said he acted in self-defense.