Intermediate refactor to move everything over to using the textures module rather than everyone using one TexturePack thing.
This commit is contained in:
parent
6c1d851e85
commit
f3e1413022
23 changed files with 129 additions and 64 deletions
|
@ -4,12 +4,11 @@
|
|||
namespace gui {
|
||||
using namespace components;
|
||||
|
||||
MainUI::MainUI(sf::RenderWindow& window, GameLevel level, TexturePack& textures) :
|
||||
MainUI::MainUI(sf::RenderWindow& window, GameLevel level) :
|
||||
$window(window),
|
||||
$level(level),
|
||||
$textures(textures),
|
||||
$overlay_ui($level, $textures),
|
||||
$rayview($textures, RAY_VIEW_WIDTH, RAY_VIEW_HEIGHT)
|
||||
$overlay_ui($level),
|
||||
$rayview(RAY_VIEW_WIDTH, RAY_VIEW_HEIGHT)
|
||||
{
|
||||
$window.setVerticalSyncEnabled(VSYNC);
|
||||
$window.setFramerateLimit(FRAME_LIMIT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue