Castor3D
..
|
Render window representation. More...
Classes | |
class | BinaryParser |
RenderWindow loader. More... | |
class | TextLoader |
RenderTarget loader. More... | |
Public Member Functions | |
C3D_API | RenderWindow (Engine &p_engine, Castor::String const &p_name) |
Constructor. More... | |
C3D_API | ~RenderWindow () |
Destructor. More... | |
C3D_API bool | Initialise (Castor::Size const &p_size, WindowHandle const &p_handle) |
Sets the handle, initialises the window. More... | |
C3D_API void | Cleanup () |
Cleans up the instance. More... | |
C3D_API void | Render (bool p_bForce) |
Renders one frame. More... | |
C3D_API void | Resize (int x, int y) |
Resizes the window. More... | |
C3D_API void | Resize (Castor::Size const &p_size) |
Resizes the window. More... | |
C3D_API void | SetCamera (CameraSPtr p_pCamera) |
Sets the camera. More... | |
C3D_API bool | IsMultisampling () const |
Retrieves the multisampling status. More... | |
C3D_API int32_t | GetSamplesCount () const |
Retrieves the samples count. More... | |
C3D_API void | UpdateFullScreen (bool val) |
Changes fullscreen status from contex. More... | |
C3D_API void | SetSamplesCount (int32_t val) |
Sets the samples count. More... | |
C3D_API SceneSPtr | GetScene () const |
Retrieves the Scene. More... | |
C3D_API CameraSPtr | GetCamera () const |
Retrieves the Camera. More... | |
C3D_API eVIEWPORT_TYPE | GetViewportType () const |
Retrieves the eVIEWPORT_TYPE. More... | |
C3D_API void | SetViewportType (eVIEWPORT_TYPE val) |
Sets the eVIEWPORT_TYPE. More... | |
C3D_API void | SetScene (SceneSPtr p_scene) |
Sets the Scene. More... | |
C3D_API Castor::Size | GetSize () const |
Retrieves the window dimensions. More... | |
C3D_API bool | IsUsingStereo () const |
Retrieves the stereo status. More... | |
C3D_API void | SetStereo (bool p_bStereo) |
Defines the stereo status. More... | |
C3D_API real | GetIntraOcularDistance () const |
Retrieves the intra ocular distance. More... | |
C3D_API void | SetIntraOcularDistance (real p_rIao) |
Defines the intra ocular distance. More... | |
C3D_API Castor::ePIXEL_FORMAT | GetPixelFormat () const |
Retrieves the window pixel format. More... | |
C3D_API void | SetPixelFormat (Castor::ePIXEL_FORMAT val) |
Sets the window pixel format. More... | |
uint32_t | GetIndex () const |
Retrieves the window index. More... | |
WindowHandle const & | GetHandle () const |
Retrieves the window handle. More... | |
bool | IsInitialised () const |
Retrieves the intialisation status. More... | |
FrameListenerSPtr | GetListener () const |
Retrieves the FrameListener. More... | |
ContextSPtr | GetContext () const |
Retrieves the Context. More... | |
RenderTargetSPtr | GetRenderTarget () const |
Retrieves the render target. More... | |
void | SetRenderTarget (RenderTargetSPtr p_pTarget) |
Sets the render target. More... | |
void | SetContext (ContextSPtr p_context) |
Sets the Context. More... | |
bool | GetVSync () const |
Tells the context is using vsync. More... | |
void | SetVSync (bool p_value) |
Defines the vsync usage. More... | |
bool | IsFullscreen () const |
Tells the rendering is fullscreen. More... | |
void | SetFullscreen (bool p_value) |
Defines the fullscreen rendering status. More... | |
BackBuffersSPtr | GetBackBuffers () const |
void | SaveFrame () |
Tells the next frame must be saved. More... | |
Castor::PxBufferBaseSPtr | GetSavedFrame () const |
Render window representation.
C3D_API Castor3D::RenderWindow::RenderWindow | ( | Engine & | p_engine, |
Castor::String const & | p_name | ||
) |
Constructor.
[in] | p_engine | The engine |
[in] | p_name | The window name |
C3D_API Castor3D::RenderWindow::~RenderWindow | ( | ) |
Destructor.
C3D_API void Castor3D::RenderWindow::Cleanup | ( | ) |
Cleans up the instance.
|
inline |
C3D_API CameraSPtr Castor3D::RenderWindow::GetCamera | ( | ) | const |
|
inline |
|
inline |
Retrieves the window handle.
|
inline |
Retrieves the window index.
C3D_API real Castor3D::RenderWindow::GetIntraOcularDistance | ( | ) | const |
Retrieves the intra ocular distance.
|
inline |
Retrieves the FrameListener.
C3D_API Castor::ePIXEL_FORMAT Castor3D::RenderWindow::GetPixelFormat | ( | ) | const |
Retrieves the window pixel format.
|
inline |
Retrieves the render target.
C3D_API int32_t Castor3D::RenderWindow::GetSamplesCount | ( | ) | const |
Retrieves the samples count.
|
inline |
C3D_API Castor::Size Castor3D::RenderWindow::GetSize | ( | ) | const |
Retrieves the window dimensions.
C3D_API eVIEWPORT_TYPE Castor3D::RenderWindow::GetViewportType | ( | ) | const |
Retrieves the eVIEWPORT_TYPE.
|
inline |
Tells the context is using vsync.
C3D_API bool Castor3D::RenderWindow::Initialise | ( | Castor::Size const & | p_size, |
WindowHandle const & | p_handle | ||
) |
Sets the handle, initialises the window.
[in] | p_size | The window size. |
[in] | p_handle | The handle. |
false
if any problem occured
|
inline |
Tells the rendering is fullscreen.
|
inline |
Retrieves the intialisation status.
C3D_API bool Castor3D::RenderWindow::IsMultisampling | ( | ) | const |
Retrieves the multisampling status.
C3D_API bool Castor3D::RenderWindow::IsUsingStereo | ( | ) | const |
Retrieves the stereo status.
true
if stereo is used C3D_API void Castor3D::RenderWindow::Render | ( | bool | p_bForce | ) |
Renders one frame.
[in] | p_bForce | Forces the rendering |
Renders one frame
[in] | p_bForce | Dit si on force le rendu |
C3D_API void Castor3D::RenderWindow::Resize | ( | int | x, |
int | y | ||
) |
Resizes the window.
[in] | x,y | The new size |
C3D_API void Castor3D::RenderWindow::Resize | ( | Castor::Size const & | p_size | ) |
Resizes the window.
[in] | p_size | The new size |
|
inline |
Tells the next frame must be saved.
C3D_API void Castor3D::RenderWindow::SetCamera | ( | CameraSPtr | p_pCamera | ) |
Sets the camera.
[in] | p_pCamera | The camera |
|
inline |
|
inline |
Defines the fullscreen rendering status.
[in] | p_value | The status |
C3D_API void Castor3D::RenderWindow::SetIntraOcularDistance | ( | real | p_rIao | ) |
Defines the intra ocular distance.
[in] | p_rIao | The intra ocular distance |
C3D_API void Castor3D::RenderWindow::SetPixelFormat | ( | Castor::ePIXEL_FORMAT | val | ) |
Sets the window pixel format.
[in] | val | The new window pixel format |
|
inline |
Sets the render target.
[in] | p_pTarget | The new value |
C3D_API void Castor3D::RenderWindow::SetSamplesCount | ( | int32_t | val | ) |
Sets the samples count.
[in] | val | The new samples count |
C3D_API void Castor3D::RenderWindow::SetScene | ( | SceneSPtr | p_scene | ) |
C3D_API void Castor3D::RenderWindow::SetStereo | ( | bool | p_bStereo | ) |
Defines the stereo status.
[in] | p_bStereo | true if stereo is to be used |
C3D_API void Castor3D::RenderWindow::SetViewportType | ( | eVIEWPORT_TYPE | val | ) |
Sets the eVIEWPORT_TYPE.
[in] | val | The new eVIEWPORT_TYPE |
|
inline |
Defines the vsync usage.
[in] | p_value | The usage |
C3D_API void Castor3D::RenderWindow::UpdateFullScreen | ( | bool | val | ) |
Changes fullscreen status from contex.
[in] | val | The new fullscreen status |