Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Clark Lin
hw3d
Commits
3b34901a
Commit
3b34901a
authored
Dec 26, 2018
by
chili
Browse files
Revert "test app loop"
This reverts commit f74d34ca389ef1696150cc649c9c30049c63a8e2.
parent
7d303e4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
hw3d/App.cpp
View file @
3b34901a
#include "App.h"
#include <sstream>
#include <iomanip>
App
::
App
()
:
...
...
@@ -23,8 +21,5 @@ int App::Go()
void
App
::
DoFrame
()
{
const
float
t
=
timer
.
Peek
();
std
::
ostringstream
oss
;
oss
<<
"Time elapsed: "
<<
std
::
setprecision
(
1
)
<<
std
::
fixed
<<
t
<<
"s"
;
wnd
.
SetTitle
(
oss
.
str
()
);
}
\ No newline at end of file
hw3d/App.h
View file @
3b34901a
#pragma once
#include "Window.h"
#include "ChiliTimer.h"
class
App
{
...
...
@@ -12,5 +11,4 @@ private:
void
DoFrame
();
private:
Window
wnd
;
ChiliTimer
timer
;
};
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment