Using enum data types from texture and vertex object creation. This is way cleaner.