Make Unreal REAL.
article thumbnail
값의 범위를 제한하는 clamp 구현

clamp란 최댓값, 최솟값을 지정해서 입력된 값을 그 범위 안에 제한시키는 것을 뜻한다. C++에서도 C++17부터 clamp를 공식 지원하지만 낮은 버전이라 사용이 불가능할 때는 다음과 같이 구현하면 된다. clampedVal = max(minVal, min(val, maxVal)); 최댓값 제한, 최솟값 제한을 1번씩 적용한 것이다.

article thumbnail
.gitignore

The Ultimate Git Course - with Applications in Unreal Engine 정규 표현식과 유사한 Glob 패턴 매칭을 사용한다. # main.exe 무시 main.exe # Logs 폴더 무시 Logs/ # 모든 .exe 파일 무시 *.exe # 모든 .o, .a 파일 무시 *.[oa]

article thumbnail
Git의 Object Store 개념

The Ultimate Git Course - with Applications in Unreal Engine Blob 버전 관리 하에 있는 파일들 Data chunk Tree 폴더의 구조를 나타낸다. Blob과 하위 폴더에 대한 포인터를 갖고 있다. Commit Tree에 대한 포인터를 갖고 있다. Author, 타임스탬프, commit 메시지, 부모 commit에 대한 참조 등을 포함한다. Tag SHA-1 문자열 형식이다. commit을 구분하기 위한 용도로 사용된다. 파일과 폴더의 빠른 비교를 위한 Checksum 용도로도 사용된다.

article thumbnail
Git에서 파일이 관리되는 방식

The Ultimate Git Course - with Applications in Unreal Engine 1. some.file 파일을 생성 Stage 되지 않은 상태 2. git add some.file 변경 사항을 Stage (commit할 준비) Staging Area에 저장 3. git commit Staged 상태에 있는 파일들을 로컬 Repository에 적용 Staging Area에서 삭제되고 .git 폴더에 적용 4. git push 원격 메인 Repository에 commit을 적용 5. git pull 다른 사람이 원격 메인 Repository에 commit한 내용을 나의 로컬 Repository에 적용

article thumbnail
Git 설정 파일들

The Ultimate Git Course - with Applications in Unreal Engine 로컬: 해당 Repository만 적용 (기본값) # 우선순위 가장 높음 git config --local 글로벌: 현재 사용자만 적용 # local 다음 우선순위 git config --global 시스템: 현재 컴퓨터(모든 사용자)에 적용 # 가장 낮은 우선순위 git config --system

article thumbnail
Git 명령어들

The Ultimate Git Course - with Applications in Unreal Engine Repository 초기화 # .git 폴더를 생성 git init Repository 상태 확인 git status 유저 이름 설정 git config user.name 'USER NAME' 유저 이메일 설정 git config user.email 'some@email.com' 기본 Branch 이름을 main으로 변경 # master인 경우가 많은데 main으로 넘어가는 추세이다. git config --global init.defaultBranch main 경로 길이 제한 해제 git config --system core.longpaths true 로컬, 시스템, 글로벌 config 모두 보..

검색 태그