- Emil Persson @Humus
- Matt Pettineo @mynameismjp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VSync under Windows, revisited | |
http://www.virtualdub.org/blog/pivot/entry.php?id=157 | |
Windowed mode, vsync stutter, DWM (Vista+) | |
http://armageddongames.net/showthread.php?96793-Windowed-mode-vsync-stutter-DWM-(Vista-) | |
DwmFlush function | |
https://msdn.microsoft.com/en-us/library/windows/desktop/dd389405(v=vs.85).aspx | |
Bug 856427 - Add vsync support on windows |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <string> | |
#include <lua/lua.hpp> | |
#include <luabind/luabind.hpp> | |
#include <luabind/detail/policy.hpp> | |
#include <luabind/out_value_policy.hpp> | |
#include <luabind/operator.hpp> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class carray_streambuf : public std::streambuf { | |
public: | |
carray_streambuf(char *data, unsigned int len) { | |
setp(data, data+len); | |
setg(data, data, data + len); | |
} | |
// amount of stored (written!) data in bytes | |
size_t saved_bytes() const { return pptr() - pbase(); } | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* edtaa3() | |
* | |
* Sweep-and-update Euclidean distance transform of an | |
* image. Positive pixels are treated as object pixels, | |
* zero or negative pixels are treated as background. | |
* An attempt is made to treat antialiased edges correctly. | |
* The input image must have pixels in the range [0,1], | |
* and the antialiased image should be a box-filter | |
* sampling of the ideal, crisp edge. |
OlderNewer