Movie::SetViewport

Movie::SetViewport
virtual void SetViewport(const Viewport& viewDesc) = 0;
SF_INLINE void SetViewport(int bufw, int bufh, int left, int top, int w, int h, unsigned flags = 0);
Description

SetViewport sets the render-target surface viewport to which the movie is scaled; coordinates are specified in pixels. If not specified, the default viewport is (0,0, MovieWidth, MovieHeight).

Parameters
Parameters 
Description 
const Viewport& viewDesc 
A pointer to Viewport, containing the viewport information. 
int bufw 
The width of the buffer surface within which a viewport is located. 
int bufh 
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 
Width of the viewport rectangle in pixels. 
int h 
Height of the viewport rectangle in pixels. 
unsigned flags = 0 
View flags describing how viewport and its target buffer are used, such as View_IsRenderTexture and View_AlphaComposite.