void addFace(ofMesh& mesh, ofVec3f a, ofVec3f b, ofVec3f c) {
ofVec3f normal = ((b - a).cross(c - a)).normalize();
mesh.addNormal(normal);
mesh.addVertex(a);
mesh.addNormal(normal);
mesh.addVertex(b);
mesh.addNormal(normal);
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
/** | |
* Advanced Window Snap | |
* Snaps the Active Window to one of nine different window positions. | |
* | |
* @author Andrew Moore <[email protected]> | |
* @version 1.0 | |
*/ | |
/** | |
* SnapActiveWindow resizes and moves (snaps) the active window to a given position. |
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
Add-Type -Namespace Win32 -Name NativeMethods -MemberDefinition @" | |
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)] | |
public static extern IntPtr SendMessageTimeout(IntPtr hWnd, uint Msg, UIntPtr wParam, string lParam, uint fuFlags, uint uTimeout, out UIntPtr lpdwResult); | |
"@ | |
function Send-SettingChange { | |
$HWND_BROADCAST = [IntPtr] 0xffff; | |
$WM_SETTINGCHANGE = 0x1a; | |
$result = [UIntPtr]::Zero |
CMake๋ฅผ ์ ์ฐ๋๊ฑฐ์ฃ ?
์ข์ ํด์ Visual Studio ๋ฟ์ ๋๋ค. ๊ทธ ์ด์ธ์๋ ์ ๋ถ ์ฌ๋(้ช้)์ ๋๋ค ์ฌ๋! - ์์ฑ์
- ์ด ๋ฌธ์๋ CMake๋ฅผ ์ฃผ๊ด์ ์ผ๋ก ์์ ํฉ๋๋ค
- ์ด ๋ฌธ์๋ฅผ ํตํด CMake๋ฅผ ์์ํ๊ธฐ์ ์ ํฉํ์ง ์์ต๋๋ค
https://cgold.readthedocs.io/en/latest/ 3.1 ์ฑํฐ๊น์ง ๋ฐ๋ผํด๋ณธ ์ดํ ๊ธฐ๋ณธ์ฌํญ๋ค์ ์์ฑ์ผ๋ก ์ตํ๋ ๊ฒ์ ๋๊ธฐ์ํ ๋ณด์กฐ์๋ฃ๋ก์จ ์์ฑ๋์์ต๋๋ค