Viewport::Viewport

Viewport::Viewport
Viewport();
Viewport(int bw, int bh, int left, int top, int w, int h, int scleft, int sctop, int scw, int sch, unsigned flags = 0);
Viewport(int bw, int bh, int left, int top, int w, int h, unsigned flags = 0);
Viewport(Size<int> bufferSize, Rect<int> view, unsigned flags = 0);
Viewport(const Viewport& src);
Description

Viewport constructor.

Parameters
Parameters 
Description 
int bw 
The width of the buffer surface within which a viewport is located. 
int bh 
The height of the buffer surface within which a viewport is located. 
int left 
The left side of the viewport rectangle, counting in pixels from the left. 
int top 
The top side of the viewport rectangle, counting in pixels from the top. 
int w 
The width of the viewport rectangle in pixels. 
int h 
The height of the viewport rectangle in pixels. 
int scleft 
The left side of the scissor rectangle, counting in pixels from the left. 
int sctop 
The top side of the scissor rectangle, counting in pixels from the left. 
int scw 
The width of the scissor rectangle in pixels. 
int sch 
The height of the scissor rectangle in pixels. 
unsigned flags = 0 
View flags describing how viewport and its target buffer are used, such as View_IsRenderTexture and View_AlphaComposite. 
const Viewport& src 
A pointer to Viewport, containing the viewport information.