use int for resources, float for px values