public Point GetScreenRezolution() { IPropertyConverter converterToInt32 = new PropertyToInt32(); var width = (Int32)ReadProperty(converterToInt32, "screenwidth"); var height = (Int32)ReadProperty(converterToInt32, "screenheight"); return(new Point(width, height)); }
public Point GetDirectionalShadowMapRezolution() { IPropertyConverter converterToInt32 = new PropertyToInt32(); var shadowMapWidth = (Int32)ReadProperty(converterToInt32, "directional_shadow_map_width"); var shadowMapHeight = (Int32)ReadProperty(converterToInt32, "directional_shadow_map_height"); return(new Point(shadowMapWidth, shadowMapHeight)); }