You are incorrect. Mexico gained its independence from Spain in 1820 or so. The Texas Revolution was 1836, the Mexican War was in 1847, as I recall. These territories were acquired from Mexico, not Spaion.
Half Way right, Stephen Austin when he started his colony began dealing with the Spaniards. Since Spain didn't recognize Mexico until the Treaty of Cordova in 1824....It was then Austins desire to be a MEXICAN, until Santa Ana broke faith in any kind of Republican Gov't of the People, By the People and For the People on his campaign to get rid of the Texas Rebels in his campaigns of 1835-1836-