include/Spectre/Graphics.h: Adding getDisplay()
This commit is contained in:
parent
d57d01c4b4
commit
07f32ee129
2 changed files with 7 additions and 0 deletions
|
|
@ -45,6 +45,8 @@ public :
|
||||||
|
|
||||||
GfxDriver* getDriver();
|
GfxDriver* getDriver();
|
||||||
|
|
||||||
|
Display* getDisplay();
|
||||||
|
|
||||||
protected :
|
protected :
|
||||||
|
|
||||||
int m_width;
|
int m_width;
|
||||||
|
|
|
||||||
|
|
@ -79,4 +79,9 @@ void Graphics::swapBuffers()
|
||||||
m_display->swapBuffers();
|
m_display->swapBuffers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Display* Graphics::getDisplay()
|
||||||
|
{
|
||||||
|
return m_display;
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace sp
|
} // namespace sp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue