본문 바로가기

학교/프로그래밍 언어3

OpenGL #1 파이프라인Vertex Specification입력된 정점의 기하 정보를 처리하는 단계Primitive Assembly정점을 결합하여 기본 형태(primitive)로 변환 - 점, 선, 삼각형Rasterization3차원 좌표로 표시되는 정점을 2차원 좌표계로 변환하는 과정Fragment Shader픽셀의 색상 처리    셰이더 Shader프로램 가능한 파이프라인(Programmable Pipeline). 프로그래밍 언어를 사용하여 렌더링 결과를 변경 가능HLSL Hight Level Shader LanguageGLSL OpenGL Shader Language레지스터 Register실수(float) 형식의 4개를 묶어 사용데이터 형벡터 vec2, vec3, vec4: 좌표(xyzw), 텍스처 좌표(stpq.. 2024. 5. 4.
OpenGL #0 설치dev윈도우즈에서도 편리하게 OpenGL 개발 환경을 설정할 수 있다. Visual Studio Installer를 실행시켜 vcpkg가 설치되었는지 확인한다 Visual Studio Developer Command Prompt를 열고 vcpkg를 실행시켜 본다.C:\Program Files\Microsoft Visual Studio\2022\Professional>vcpkgusage: vcpkg [--switches] [--options=values] [arguments] @response_file @response_file Contains one argument per line expanded at that location ... vcpkg를 사용하려면 초기 작업이 필요하다. .. 2024. 4. 30.
C# ready C# Compiler// C# compiler> csc.exe test.cs// build to assembly> csc.exe test.cs /target:library// specify output file> csc.exe test.cs /out:test.exeILdasm// show intermediate language in .net// usage> Ildasm test.exe Base templatenamespace IO{ class Program { // static int or static void // can emit the args argument static void Main(string[] args) {}.. 2024. 4. 21.