Click or drag to resize

ViewportInfoSetScreenPort Method

Overload List
  NameDescription
Public methodSetScreenPort(Rectangle)
Gets the location of viewport in pixels.

See value meanings in SetScreenPort.

Public methodSetScreenPort(Rectangle, Int32, Int32)
Gets the location of viewport in pixels.

See value meanings in SetScreenPort.

Public methodSetScreenPort(Int32, Int32, Int32, Int32, Int32, Int32)
Location of viewport in pixels. These are provided so you can set the port you are using and get the appropriate transformations to and from screen space. // For a Windows window / int width = width of window client area in pixels; / int height = height of window client area in pixels; / port_left = 0; / port_right = width; / port_top = 0; / port_bottom = height; / port_near = 0; / port_far = 1; / SetScreenPort( port_left, port_right, / port_bottom, port_top, / port_near, port_far );
Top
See Also