PixelLightAPI  .
Public Member Functions | Protected Member Functions | Protected Attributes
PLRenderer::SurfaceWindow Class Reference

A window renderer surface where we can render in. More...

#include <SurfaceWindow.h>

Inheritance diagram for PLRenderer::SurfaceWindow:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual PLRENDERER_API ~SurfaceWindow ()
 Destructor.
SurfaceWindowHandlerGetHandler () const
 Returns the renderer surface handler this surface is assigned with.
PLCore::handle GetNativeWindowHandle () const
 Returns the native window the surface is assigned with.
bool IsFullscreen () const
 Returns whether the window is in fullscreen mode or not.
virtual bool GetGamma (float &fRed, float &fGreen, float &fBlue) const =0
 Gets the current gamma components.
virtual bool SetGamma (float fRed=1.0f, float fGreen=1.0f, float fBlue=1.0f)=0
 Sets the current gamma components.

Protected Member Functions

PLRENDERER_API SurfaceWindow (SurfaceWindowHandler &cHandler, PLCore::handle nNativeWindowHandle, bool bFullscreen=false)
 Constructor.

Protected Attributes

bool m_bIsFullscreen

Detailed Description

A window renderer surface where we can render in.


Constructor & Destructor Documentation

virtual PLRENDERER_API PLRenderer::SurfaceWindow::~SurfaceWindow ( ) [virtual]

Destructor.

PLRENDERER_API PLRenderer::SurfaceWindow::SurfaceWindow ( SurfaceWindowHandler cHandler,
PLCore::handle  nNativeWindowHandle,
bool  bFullscreen = false 
) [protected]

Constructor.

Parameters:
[in]cHandlerRenderer surface handler this surface is assigned with (MUST be valid!)
[in]nNativeWindowHandleNative window the surface is assigned with
[in]bFullscreenFullscreen mode?

Member Function Documentation

Returns the renderer surface handler this surface is assigned with.

Returns:
The renderer surface handler this surface is assigned with, can be a null pointer
PLCore::handle PLRenderer::SurfaceWindow::GetNativeWindowHandle ( ) const [inline]

Returns the native window the surface is assigned with.

Returns:
The native window the surface is assigned with, can be a null pointer
bool PLRenderer::SurfaceWindow::IsFullscreen ( ) const [inline]

Returns whether the window is in fullscreen mode or not.

Returns:
'true' if the window is in fullscreen mode, else 'false'
virtual bool PLRenderer::SurfaceWindow::GetGamma ( float &  fRed,
float &  fGreen,
float &  fBlue 
) const [pure virtual]

Gets the current gamma components.

Parameters:
[out]fRedReceives the red gamma component value
[out]fGreenReceives the green gamma component value
[out]fBlueReceives the blue gamma component value
Returns:
'true' if all went fine, else 'false' (e.g. device does not support gamma correction)
virtual bool PLRenderer::SurfaceWindow::SetGamma ( float  fRed = 1.0f,
float  fGreen = 1.0f,
float  fBlue = 1.0f 
) [pure virtual]

Sets the current gamma components.

Parameters:
[in]fRedRed gamma component value
[in]fGreenGreen gamma component value
[in]fBlueBlue gamma component value
Returns:
'true' if all went fine, else 'false' (e.g. device does not support gamma correction)

Member Data Documentation

Is this window in fullscreen mode?


The documentation for this class was generated from the following files:


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:39
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported