this method sets all the params that a Viewport needs

Namespace:  GLSV
Assembly:  GLSV (in GLSV.dll) Version: 1.2009.6.26 (1.2009.06.26)

Syntax

C#
public void SetViewportParams(
	int controlWidth,
	int controlHeight,
	int displayWidth,
	int displayHeight
)
Visual Basic (Declaration)
Public Sub SetViewportParams ( _
	controlWidth As Integer, _
	controlHeight As Integer, _
	displayWidth As Integer, _
	displayHeight As Integer _
)
Visual C++
public:
void SetViewportParams(
	int controlWidth, 
	int controlHeight, 
	int displayWidth, 
	int displayHeight
)

Parameters

controlWidth
Type: System..::.Int32
this is the actual width of the OpenGL control measured in pixels
controlHeight
Type: System..::.Int32
this is the actual height of the OpenGL control measured in pixels
displayWidth
Type: System..::.Int32
this is the width of the display measured in pixels
displayHeight
Type: System..::.Int32
this is the height of the display measured in pixels

See Also