include/Spectre/Display/Display.h: Adding getSize()
This commit is contained in:
parent
f240d14052
commit
60333f6d02
2 changed files with 7 additions and 0 deletions
|
|
@ -34,6 +34,8 @@ public :
|
||||||
|
|
||||||
void setSize(unsigned int width, unsigned int height);
|
void setSize(unsigned int width, unsigned int height);
|
||||||
|
|
||||||
|
sp::Vector2u getSize() const;
|
||||||
|
|
||||||
void setCaption(const std::string& title);
|
void setCaption(const std::string& title);
|
||||||
|
|
||||||
const std::string& getCaption() const;
|
const std::string& getCaption() const;
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,11 @@ void Display::setSize(unsigned int width, unsigned int height)
|
||||||
m_impl->setSize(width, height);
|
m_impl->setSize(width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sp::Vector2u Display::getSize() const
|
||||||
|
{
|
||||||
|
return m_impl->getSize();
|
||||||
|
}
|
||||||
|
|
||||||
void Display::setVideoMode(Mode mode)
|
void Display::setVideoMode(Mode mode)
|
||||||
{
|
{
|
||||||
if (m_fmode == mode) {
|
if (m_fmode == mode) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue