Fix documentation
This commit is contained in:
1 parent
a317c07124
commit
ab21b3f30d
27 files changed
+2137
-1043
No files matched your search
@@ -1,4 +1,6 @@
|
||||
/* LivePlugin.cpp -- THE FILE TO EDIT.
|
||||
/**
|
||||
* @file LivePlugin.cpp
|
||||
* @brief THE FILE TO EDIT.
|
||||
*
|
||||
* With source/examples/HotReloadLiveDemo/Host running in one
|
||||
* terminal, rebuild just this file from another with:
|
||||
@@ -42,13 +44,19 @@
|
||||
#include "hot_reload/hot_reload.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <iostream>
|
||||
|
||||
/**
|
||||
* @brief The one function this demo starts with; edit this file and rebuild to see it change live.
|
||||
*
|
||||
* See this file's own comment for what to try.
|
||||
*
|
||||
* @param frame The Host's running frame counter, incremented once per second.
|
||||
* @return @p frame times the multiplier below.
|
||||
*/
|
||||
extern "C" HOT_RELOAD_EXPORT int live_tick(int frame)
|
||||
{
|
||||
int multiplier = 2; // <- try changing this
|
||||
int value = frame * multiplier;
|
||||
std::printf(" live_tick (%d) -> %d\n", frame, value);
|
||||
std::cout.flush();
|
||||
std::printf(" live_tick(%d) -> %d\n", frame, value);
|
||||
return value;
|
||||
}
|
||||
Reference in new issue
Block a user