Global variables maybe?

I do a lot of scaling for positioning on different devices- retina, non retina , iPhone, iPad etc
At the moment I do something like: ofGetWidth/1024 (I’m landscape) and hen pass that down to my classes.
Is there a smarter way to access that value within my source code?