-
Notifications
You must be signed in to change notification settings - Fork 243
/
Copy pathmain.cpp
25 lines (20 loc) · 931 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "Interface.h"
#include "Sponza.h"
#include "LightSource.h"
#include "SponzaGBufferPass.h"
#include "TilePass.h"
#include "ScreenQuadPass.h"
int main()
{
ElayGraphics::WINDOW_KEYWORD::setWindowSize(1920, 1152);
ElayGraphics::WINDOW_KEYWORD::setIsCursorDisable(true);
ElayGraphics::COMPONENT_CONFIG::setIsEnableGUI(false);
ElayGraphics::ResourceManager::registerGameObject(std::make_shared<CSponza>("Sponza", 1));
ElayGraphics::ResourceManager::registerGameObject(std::make_shared<CLightSources>("LightSources", 2));
ElayGraphics::ResourceManager::registerRenderPass(std::make_shared<CSponzaGBufferPass>("SponzaGBufferPass", 1));
ElayGraphics::ResourceManager::registerRenderPass(std::make_shared<CTilePass>("TilePass", 2));
ElayGraphics::ResourceManager::registerRenderPass(std::make_shared<CScreenQuadPass>("SponzaGBufferPass", 3));
ElayGraphics::App::initApp();
ElayGraphics::App::updateApp();
return 0;
}