mirror of https://github.com/axmolengine/axmol.git
udpate the comments
This commit is contained in:
parent
5764677bba
commit
d392fad70f
|
@ -52,9 +52,9 @@ namespace utils
|
||||||
/** Capture the entire screen
|
/** Capture the entire screen
|
||||||
* To ensure the snapshot is applied after everything is updated and rendered in the current frame,
|
* To ensure the snapshot is applied after everything is updated and rendered in the current frame,
|
||||||
* we need to wrap the operation with a custom command which is then inserted into the tail of the render queue.
|
* we need to wrap the operation with a custom command which is then inserted into the tail of the render queue.
|
||||||
* - afterCaptured, specify the callback function which will be invoked after the snapshot is done.
|
* @param afterCaptured, specify the callback function which will be invoked after the snapshot is done.
|
||||||
* - filename, specify a filename where the snapshot is stored. This parameter can be either an absolute path or a simple
|
* @param filename, specify a filename where the snapshot is stored. This parameter can be either an absolute path or a simple
|
||||||
* base filename ("hello.png" etc.), don't use a relative path including directory ("mydir/hello.png" etc.).
|
* base filename ("hello.png" etc.), don't use a relative path containing directory names.("mydir/hello.png" etc.)
|
||||||
* @since v3.2
|
* @since v3.2
|
||||||
*/
|
*/
|
||||||
void captureScreen(const std::function<void(bool, const std::string&)>& afterCaptured, const std::string& filename);
|
void captureScreen(const std::function<void(bool, const std::string&)>& afterCaptured, const std::string& filename);
|
||||||
|
|
Loading…
Reference in New Issue