| 
| 
  | Viewport (const char *name, Texture *texture, DepthStencilFormat depthStencilFormat) | 
|   | Creates a new viewport with the specified name and texture, plus a depth and stencil renderbuffer. 
  | 
|   | 
| 
  | Viewport (Texture *texture, DepthStencilFormat depthStencilFormat) | 
|   | Creates a new viewport with the specified texture, plus a depth and stencil renderbuffer. 
  | 
|   | 
| 
  | Viewport (const char *name, Texture *texture) | 
|   | Creates a new viewport with the specified name and texture. 
  | 
|   | 
| 
  | Viewport (Texture *texture) | 
|   | Creates a new viewport with the specified texture. 
  | 
|   | 
| 
  | Viewport () | 
|   | Creates a new viewport with no texture. 
  | 
|   | 
| 
Type  | type () const | 
|   | Returns the viewport type. 
  | 
|   | 
| 
Texture *  | texture (unsigned int index) | 
|   | Returns the texture at the specified viewport's FBO color attachment index, if any. 
  | 
|   | 
| 
Texture *  | texture () | 
|   | Returns the texture at the first viewport's FBO color attachment index. 
  | 
|   | 
| bool  | setTexture (unsigned int index, Texture *texture) | 
|   | Adds or removes a texture at the specified viewport's FBO color attachment index.  
  | 
|   | 
| 
bool  | setTexture (Texture *texture) | 
|   | Adds or removes a texture at the first viewport's FBO color attachment index. 
  | 
|   | 
| 
DepthStencilFormat  | depthStencilFormat () const | 
|   | Returns the depth and stencil format of the viewport's FBO renderbuffer. 
  | 
|   | 
| bool  | setDepthStencilFormat (DepthStencilFormat depthStencilFormat) | 
|   | Sets the depth and stencil format of the viewport's FBO renderbuffer.  
  | 
|   | 
| bool  | removeAllTextures () | 
|   | Removes all textures and the depth stencil renderbuffer from the viewport's FBO.  
  | 
|   | 
| 
Vector2i  | size () const | 
|   | Returns viewport's FBO size as a Vector2i object, or a zero vector if no texture is present. 
  | 
|   | 
| 
int  | width () const | 
|   | Returns viewport's FBO width or zero if no texture is present. 
  | 
|   | 
| 
int  | height () const | 
|   | Returns viewport's FBO height or zero if no texture is present. 
  | 
|   | 
| 
unsigned int  | numColorAttachments () const | 
|   | Returns the number of color attachments of the viewport's FBO. 
  | 
|   | 
| 
Recti  | viewportRect () const | 
|   | Returns the OpenGL viewport rectangle. 
  | 
|   | 
| 
void  | setViewportRect (Recti viewportRect) | 
|   | Sets the OpenGL viewport rectangle through a Recti object. 
  | 
|   | 
| 
void  | setViewportRect (int x, int y, int width, int height) | 
|   | Sets the OpenGL viewport rectangle with four integers. 
  | 
|   | 
| 
void  | setViewportRect (const Vector2i &size) | 
|   | Resizes the OpenGL viewport rectangle through a Vector2i object. 
  | 
|   | 
| 
void  | setViewportRect (int width, int height) | 
|   | Resizes the OpenGL viewport rectangle with two integers. 
  | 
|   | 
| 
Recti  | scissorRect () const | 
|   | Returns the OpenGL scissor test rectangle. 
  | 
|   | 
| 
void  | setScissorRect (Recti scissorRect) | 
|   | Sets the OpenGL scissor test rectangle through a Recti object. 
  | 
|   | 
| 
void  | setScissorRect (int x, int y, int width, int height) | 
|   | Sets the OpenGL scissor test rectangle with four integers. 
  | 
|   | 
| 
void  | setScissorRect (const Vector2i &size) | 
|   | Resizes the OpenGL scissor test rectangle through a Vector2i object. 
  | 
|   | 
| 
void  | setScissorRect (int width, int height) | 
|   | Resizes the OpenGL scissor test rectangle with two integers. 
  | 
|   | 
| 
Rectf  | cullingRect () const | 
|   | Returns the rectangle for screen culling. 
  | 
|   | 
| 
unsigned long int  | lastFrameCleared () const | 
|   | Returns the last frame this viewport was cleared. 
  | 
|   | 
| 
ClearMode  | clearMode () const | 
|   | Returns the viewport clear mode. 
  | 
|   | 
| 
void  | setClearMode (ClearMode clearMode) | 
|   | Sets the viewport clear mode. 
  | 
|   | 
| 
Colorf  | clearColor () const | 
|   | Returns the viewport clear color as a Colorf object. 
  | 
|   | 
| 
void  | setClearColor (float red, float green, float blue, float alpha) | 
|   | Sets the viewport clear color through four floats. 
  | 
|   | 
| 
void  | setClearColor (const Colorf &color) | 
|   | Sets the viewport clear color through a Colorf object. 
  | 
|   | 
| 
const SceneNode *  | rootNode () const | 
|   | Returns the root node as a constant. 
  | 
|   | 
| 
SceneNode *  | rootNode () | 
|   | Returns the root node. 
  | 
|   | 
| 
void  | setRootNode (SceneNode *rootNode) | 
|   | Sets or removes the root node. 
  | 
|   | 
| 
const Camera *  | camera () const | 
|   | Returns the camera used for rendering as a constant. 
  | 
|   | 
| 
Camera *  | camera () | 
|   | Returns the camera used for rendering. 
  | 
|   | 
| void  | setCamera (Camera *camera) | 
|   | Sets the camera to be used for rendering.  
  | 
|   | 
| 
void  | setGLFramebufferLabel (const char *label) | 
|   | Sets the OpenGL object label for the viewport framebuffer object. 
  | 
|   | 
The class handling a viewport and its corresponding render target texture.