Small improvements; User guide work
This commit is contained in:
1 parent
f691da4103
commit
a85f77c023
16 files changed
+184
-25
No files matched your search
@@ -340,14 +340,8 @@ namespace nf {
|
||||
|
||||
m_fpsClock2 = std::chrono::steady_clock::now();
|
||||
m_fpsDuration = m_fpsClock2 - m_fpsClock1;
|
||||
if (m_fpsDuration.count() >= 0.2) {
|
||||
if (m_fpsDuration.count() >= 0.1) {
|
||||
m_FPS = (int)std::round(1.0 / m_deltaTime);
|
||||
#ifdef NFDEBUG
|
||||
static int i = 0;
|
||||
i++;
|
||||
if (i % 5 == 0)
|
||||
NFLog("FPS: " + std::to_string(m_FPS));
|
||||
#endif
|
||||
m_fpsClock1 = std::chrono::steady_clock::now();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,9 +35,9 @@ namespace nf {
|
||||
printCurrentTime();
|
||||
std::printf("NF ");
|
||||
SetConsoleTextAttribute(cmd, 6);
|
||||
std::printf("Log: ");
|
||||
std::printf("Log");
|
||||
SetConsoleTextAttribute(cmd, 7);
|
||||
std::printf("%s\n", in);
|
||||
std::printf(": %s\n", in);
|
||||
}
|
||||
|
||||
void Debug::LogImp(const std::string& in) {
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace nf {
|
||||
* A cubemap is a cube with a texture on each one of its 6 sides.
|
||||
*
|
||||
* @sa @ref createCubemapTut
|
||||
* @ref customCubemap
|
||||
* @ref customCubemaps
|
||||
*/
|
||||
class Cubemap : public Drawable, public NFObject {
|
||||
public:
|
||||
|
||||
Reference in new issue
Block a user