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
1. ์ํ(Circle) ๊ทธ๋ฆผ์ ๊ธฐ๋ฒ | |
์ฑ๋ฅ ๋ฌธ์ ๋๋ฌธ์ ๋ชจ๋ฐ์ผ ์ฅ์น์์๋ ๊ทธ๋ฆผ์๋ฅผ ๋๊ทธ๋ผ๋ฏธ๋ก ๊ฐ๋จํ๊ฒ ํํํ๋ ๊ฒ์ด ์ผ๋ฐ์ ์ ๋๋ค. | |
์ํ์ ํ ์ค์ณ๋ฅผ ์ฌ์ฉํ๋ ํ๋ฉด์ ๋ง๋ค๊ณ ๊ทธ๊ฑธ ์ผ๋ฆญํฐ ๋ฐ์ ๋ฐฐ์นํ๋ ๊ฒ์ด์ง์. | |
ํํ๋ ๋๋ฌด๋๋ ๊ฐ๋จํ๊ธดํ์ง๋ง ์ด ๋ง์ ๋ ์๋๊ฒ๊ณผ ์๋๊ฒ์ ์ฐจ์ด๋ ํฝ๋๋ค. | |
๋จ์ - ํ๋ฉด์ด ์๋๊ณ ์๋ ํํ์ด ๋ถ๊ฐ๋ฅํ๋ค๋ ๋จ์ ์ ์๋ค. | |
2. ํฌ์(Projected Shadow) ๊ทธ๋ฆผ์ ๊ธฐ๋ฒ | |
Direct Light๊ธฐ๋ฅ์ฒ๋ผ ๊ด์์์ ํฌ์ํ๋ ๊ทธ๋ฆผ์์ ํ ์ค์ฒ๋ฅผ ์ค์๊ฐ์ผ๋ก ์์ฑํด | |
๊ทธ๋ฆผ์ ํ ์ค์ณ์ ์ ์ฅํ์ฌ ํ๋ฉด์ด ์๋์ฌ๋ ์ค์ ๊ทธ๋ฆผ์ ์ฒ๋ผ ๋ณด์ด๊ฒ ํจ. |
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
[์๊ฐ] | |
C/C++์ ์ฐธ์กฐํ ์ธ์ด, ๋ท๋ท ์ ์ฉ์ธ์ด | |
์ฝ๊ฐ ๋ชจ๋ ์ธ์ด์ ์งฌ๋ฝ์ด๋ผ๋ ์๋ฆฌ๋ฅผ ๋ฃ๊ธฐ๋ ํ๋ค. | |
[ํน์ง] | |
๊ฐ๋น์ง ์ปฌ๋ ์ ๊ธฐ๋ฅ์ด ์๋ค. | |
๋ค์ค์์์ ์ง์ํ์ง ์๋๋ค. | |
ํด๋์ค๊ฐ์ ํ๋ ๋ ์ง์ ์ ํ ์ ์๋ค. | |
๋ํดํธ ์ธ์๋ฅผ ์ง์ํ์ง ์๋๋ค. | |
์๋ฃํ์ ๋ํด ์๊ฒฉํ๋ค. |
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
๊ฐ์ฒด์งํฅ์ ์ค์ํ ๊ฐ๋ ์ผ๋ก์ ์์๊ณผ๋ ์ฐ๊ฒฐ๋๋ ๊ฐ๋ ์ด๋ค. | |
ํด๋์ค๋ฅผ ์์๋ฐ์ ๊ฒฝ์ฐ ์ค๋ฒ๋ผ์ด๋ฉ์ ํ ์ ์๋๋ฐ ๊ทธ๋ผ ๊ฐ์ ํจ์์ง๋ง ๋ค๋ฅธ ๋ฐฉ์์ผ๋ก ๊ฒฐ๊ณผ๋ฅผ ๋ผ ์ ์๋ค. | |
์ด๋ฐ ๊ตฌ์กฐ๋ฅผ ๋คํ์ฑ์ด๋ผ๊ณ ํ๋ค. | |
๊ฒฐ๊ตญ ์์ ํ ์ค๋ฒ๋ผ์ด๋ฉ์ ํํ = ๋คํ์ฑ |
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
์ธํฐํ์ด์ค : method์ ์ํ๋ง ์ ์ธํ ์ ์์ | |
1. ๋ณ์ ์ ์ธ ๋ถ๊ฐ๋ฅ | |
2. ํจ์ ์ ์ ๋ถ๊ฐ๋ฅ | |
3. ํจ์ ์ํ ์ ์ธ ๊ฐ๋ฅ | |
์๋ฐ์์๋ ๋ค์ค ์์์ด ๊ฐ๋ฅ. | |
์ถ์ํด๋์ค : ์ถ์ method๋ฅผ ๊ฐ์ง ์ ์๋ ํด๋์ค, ๊ฐ์ฒด ๊ฐ์ง ์ ์์ (class ์์ฑ ๋ถ๊ฐ) | |
1. ๋ณ์ ์ ์ธ ๊ฐ๋ฅ | |
2. ํจ์ ์ ์ ๊ฐ๋ฅ | |
3. ํจ์ ์ํ๋ง ์ ์ธ ๊ฐ๋ฅ |
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
ํ๋ก๊ทธ๋จ์ ๊ตฌํ ๋ฐ ๊ด๋ฆฌ๋ฅผ ์ฉ์ดํ๊ฒ ํ๊ธฐ ์ํด | |
์ฐ๊ด์๋ ๋ฐ์ดํฐ๋ค์ ๋ฌถ์ ์ ์๋ ๋ฌธ๋ฒ์ ์ฅ์น๋ก ๋ฑ์ฅ. | |
C์ธ์ด์์์ struct๋ ์ฐ๊ด์๋ ๋ฐ์ดํฐ๋ฅผ ๋ฌถ์ ์ ์๊ธฐ๋ง ํ์ง๋ง ํจ์ ์ ์ธ ๋ฐ ์ ์, ์์ฑ์ ๋ฐ ์๋ฉธ์ ์ ์ธ ๋ฐ ์ ์, ์์ ๊ตฌ์กฐ๋ฅผ ํ ์ ์๋ค. | |
ํ์ง๋ง C++์์์ struct๋ class์ ๋์๋ฐฉ์์ด ์ผ์นํ๋ค๊ณ ๋ณด๋ฉด๋๋ค. | |
ํจ์ ์ ์ธ ๋ฐ ์ ์, ์์ฑ์ ๋ฐ ์๋ฉธ์ ์ ์ธ ๋ฐ ์ ์, ์์ ๊ตฌ์กฐ๋ฅผ ์ฌ์ฉํ ์ ์๋ค. | |
C++ struct์ class์ ์ฐจ์ด์ ์ ๋ฉค๋ฒ์ ์ ๊ทผ ์ง์์์ ์ฐจ์ด๊ฐ ์๋ค. | |
์ฆ, ๊ตฌ์กฐ์ฒด๋ ์ ๊ทผ์ ์ด ์ง์์๋ฅผ ์ ์ธํ์ง์์ผ๋ฉด public ์ผ๋ก ํด๋์ค๋ private๋ก ์ ์ธ๋๋ค๋ ๊ฒ. |
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
์ ๋ ฌ์ ์์ ์ ๋ ฌ ( ๋ฒ๋ธ ์ ๋ ฌ, ์ฝ์ ์ ๋ ฌ, ๋ณ๋ ฌ ์ ๋ ฌ )๊ณผ ๋ถ์์ ์ ๋ ฌ ( ์ ํ ์ ๋ ฌ, ํต ์ ๋ ฌ )์ด ์๋ค. | |
๋จ์(๊ตฌํ ๊ฐ๋จ)ํ์ง๋ง ๋นํจ์จ์ ์ธ ๋ฐฉ๋ฒ | |
์ฝ์ ์ ๋ ฌ, ์ ํ ์ ๋ ฌ, ๋ฒ๋ธ ์ ๋ ฌ | |
๋ณต์กํ์ง๋ง ํจ์จ์ ์ธ ๋ฐฉ๋ฒ | |
ํต ์ ๋ ฌ, ํ ์ ๋ ฌ, ํฉ๋ณ ์ ๋ ฌ, ๊ธฐ์ ์ ๋ ฌ | |
์ฝ์ ์ ๋ ฌ (Insertion Sort) | |
์์์ ์นด๋๋ฅผ ์ ๋ ฌํ๋ ๋ฐฉ๋ฒ๊ณผ ์ ์ฌํ๋ค. |
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
โ ๊ธฐ๋ฒ | |
1. ์ค๋ธ์ ํธ ํ๋ง(Object Pooling) | |
์ค๋ธ์ ํธ ์์ฑ(Instantiate)๊ณผ ์ญ์ (Destroy)์ ๋ถํ์ฆ๊ฐ๋ก ๊ฐ๋น์ง ์ฝ๋ ํฐ(G.C) ํธ์ถ ๋ ์ด ๋ฐ์ | |
๊ฐ์ฒด์ ์ฌ์ฌ์ฉ์ฑ์ ์ํด ์ฌ์ฉ - ๋น๋ฒํ ์ฐธ์กฐ์ผ ๊ฒฝ์ฐ ์ ์ฉํ๋ค. | |
์ค๋ธ์ ํธ ์์ฑ -> ์ค๋ธ์ ํธ ํ์ ๋ฃ์ -> ๊บผ๋ -> ์ฌ์ฉ์ ์ด๊ธฐํ -> ์ฌ์ฉ -> ์ฌ์ฉ ์ข ๋ฃ -> ์ค๋ธ์ ํธ ํ์ ๋ฃ์. | |
๋ค์ ์ฌ์ฉ์ด ํ์ํ ๋ ์ค๋ธ์ ํธ๋ฅผ ์์ฑํ์ง ์๊ณ pool์์ ๊บผ๋ธ๋ค. | |
2. ์ปฌ๋ง(Culling) | |
Culling๊ธฐ๋ฒ์ ํ๋ฉด๋ด์์ ๋ ๋๋งํ์ง์์๋ ๋๋ ๋ถํ์ํ๋ถ๋ถ๋ค์ ๋ ๋๋ง์์ ๋ฐฐ์ ํ๊ณ |
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
Model View Controller์ ์ฝ์๋ก ์ํ๋ฆฌ์ผ์ด์ ์ ์ธ๊ฐ์ง์ ์ญํ ๋ก ๊ตฌ๋ถํ ๊ฐ๋ฐ ๋ฐฉ๋ฒ๋ก ์ด๋ค. | |
์ฌ์ฉ์๊ฐ Controller๋ฅผ ์กฐ์ํ๋ฉด Controller๋ Model์ ํตํด์ ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ธ์ค๊ณ | |
๊ทธ ์ ๋ณด๋ฅผ ๋ฐํ์ผ๋ก ์๊ฐ์ ์ธ ํํ์ ๋ด๋นํ๋ View๋ฅผ ์ ์ดํด์ ์ฌ์ฉ์์๊ฒ ์ ๋ฌํ๊ฒ ๋๋ค. | |
User(Request)-> Controller(Manipulates) -> Model(Update) -> View(Sees) -> User(Response) | |
์คํ๋ง์ ์ฃผ์ ๊ฐ๋ ์ด๋ค. | |
# MVC์ ์ฅ์ | |
- ์ ์ฐํ๊ณ ํ์ฅํ๊ธฐ ์ฝ๋ค |
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
๋ฐ์ดํฐ ๋ฒ ์ด์ค | |
โ DB ๊ธฐ์ด ๊ฐ๋ - ํค(Key) | |
ํค์ ์ข ๋ฅ๋ก๋ ๊ธฐ๋ณธํค, ์ํผํค, ํ๋ณดํค, ๋์ฒดํค, ์ธ๋ํค ๋ฑ์ด ์๋ค. | |
1. ์ํผํค(Super Key) | |
- ํ ์ด๋ธ์์ ๊ฐ ํ์ ์ ์ผํ๊ฒ ์๋ณํ ์ ์๋ ํ๋ ๋๋ ๊ทธ ์ด์์ ์์ฑ๋ค์ ์งํฉ์ด๋ค. ์ํผํค๋ ์ ์ผ์ฑ๋ง ๋ง์กฑํ๋ฉด ์ํผํค๊ฐ ๋ ์ ์๋ค. | |
- ์ ์ผ์ฑ์ด๋ ํ๋์ ํค๋ก ํน์ ํ์ ๋ฐ๋ก ์ฐพ์๋ผ์ ์๋ ๊ณ ์ ํ ๋ฐ์ดํฐ ์์ฑ์ ๋งํ๋ค. | |
์๋ฅผ ๋ค๋ฉด ์ ๊ตญ์์ ๋๋ฅผ ๊ตฌ๋ณํ ์ ์๋ ์ ์ผํ๊ณ ๊ณ ์ ํ ์์ฑ์ ์ฃผ๋ฏผ๋ฒํธ์ด๋ฏ์ด ๋ง์ด๋ค. | |
์ฃผ๋ฏผ๋ฒํธ๋ ์ ๊ตญ๋ฏผ์ด ๋ชจ๋ ๊ฒน์น์ง ์์ ์ ์ผํ๊ณ ๊ณ ์ ํ ๊ตฌ๋ณ ๋ฐฉ๋ฒ์ผ๋ก ์ฐ์ธ๋ค. |
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
โ ํ๋ก๊ทธ๋จ(Program) | |
- ์ฌ์ฉ์๊ฐ ์ํ๋ ์ผ์ ์ฒ๋ฆฌํ ์ ์๋๋ก ํ๋ก๊ทธ๋๋ฐ ์ธ์ด๋ฅผ ์ฌ์ฉํ์ฌ ์ฌ๋ฐ๋ฅธ ์ํ์ ์ฐจ๋ฅผ ํํํด ๋์ ๋ช ๋ น์ด๋ค์ ์งํฉ | |
โ ํ๋ก์ธ์ค(Process) | |
- ๊ฐ๋จํ๊ฒ ๋งํ๋ฉด '์คํ ์ค์ธ ํ๋ก๊ทธ๋จ' ์ ๋๋ค. | |
- ํ๋ก๊ทธ๋จ์ ์คํํ๋ฉด OS๋ก๋ถํฐ ์คํ์ ํ์ํ ์์(๋ฉ๋ชจ๋ฆฌ)์ ํ ๋น๋ฐ์ ํ๋ก์ธ์ค๊ฐ ๋จ | |
- ํ๋ก์ธ์ค๋ ๋ฐ์ดํฐ์ ๋ฉ๋ชจ๋ฆฌ๋ฑ์ ์์๊ณผ ์ฐ๋ ๋๋ก ๊ตฌ์ฑ | |
โ ์ฐ๋ ๋(Thread) | |
- ์ฐ๋ ๋๋ ํ๋ก์ธ์ค์ ์์์ ์ด์ฉํด์ ์ค์ ๋ก ์์ ์ ์ํํ๋ ๊ฒ์ ๋งํจ. |