-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCTutorial1.cpp
More file actions
40 lines (30 loc) · 793 Bytes
/
CTutorial1.cpp
File metadata and controls
40 lines (30 loc) · 793 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2006-2008 by Lightfeather Team
// Written by Matthias Meyer
// This file is part of the Lightfeather 3D Engine.
// The license under which this code is distributed can be found in the file COPYING
// Include the header for this class.
#include "CTutorial1.h"
#include "SPhysicsGhostComponent.h"
#include <iostream>
using namespace lf;
using namespace entityx;
// Set lastFPS and lastPolyCount to 0 so they will be updated
// in the first frame.
CTutorial1::CTutorial1()
{
manager.start();
}
// Destructor
CTutorial1::~CTutorial1()
{
}
// This method contains the main loop of the tutorial.
void CTutorial1::run()
{
// Initialize the quit variable to false (we want to continue).
bool quitNow = false;
while(!quitNow)
{
manager.run();
}
}