Added Getters for Window/Renderer pointers
This commit is contained in:
parent
b9e8fca5cc
commit
712e238ca0
4 changed files with 26 additions and 1 deletions
|
@ -127,4 +127,14 @@ namespace sdlu
|
|||
{
|
||||
SDL_SetWindowTitle(m_pWindow, title.c_str());
|
||||
}
|
||||
|
||||
SDL_Window* const RenderWindow::GetWindow()
|
||||
{
|
||||
return m_pWindow;
|
||||
}
|
||||
|
||||
SDL_Renderer* const RenderWindow::GetRenderer()
|
||||
{
|
||||
return m_pRenderer;
|
||||
}
|
||||
}
|
|
@ -141,6 +141,20 @@ namespace sdlu
|
|||
*/
|
||||
void SetTitle(std::string title);
|
||||
|
||||
/**
|
||||
* @brief Returns a constant pointer to the SDL_Window
|
||||
*
|
||||
* @return A constant pointer to SDL_Window
|
||||
*/
|
||||
SDL_Window* const GetWindow();
|
||||
|
||||
/**
|
||||
* @brief Returns a constant pointer to the SDL_Renderer
|
||||
*
|
||||
* @return A constant pointer to SDL_Renderer
|
||||
*/
|
||||
SDL_Renderer* const GetRenderer();
|
||||
|
||||
protected:
|
||||
SDL_Window* m_pWindow; ///< A pointer to the window object
|
||||
SDL_Renderer* m_pRenderer; ///< A pointer to the renderer object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue