# learnOpengl1 **Repository Path**: wangyxli/learnOpengl1 ## Basic Information - **Project Name**: learnOpengl1 - **Description**: opengl基础入门 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-24 - **Last Updated**: 2026-03-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # learnOpengl1 An OpenGL learning tutorial project containing a complete learning path from basic window creation to fundamental lighting. ## Project Overview This project is a systematic OpenGL tutorial series that combines theory with practical exercises to help developers master core concepts and skills in modern OpenGL development. ## Tutorial Content ### Fundamentals | Chapter | Topic | Description | |--------|-------|-------------| | 01 | Hello Window | Create your first OpenGL window | | 02 | First Triangle | Render your first triangle | | 03 | VBO/VAO/EBO | Geometry data management | | 04 | Texture Mapping | Texture mapping | | 05 | Transformations | 3D transformations | | 06 | Camera System | Camera system | | 07 | Basic Lighting | Basic lighting | ## Technology Stack - **OpenGL**: Graphics rendering API - **GLFW**: Window and input handling - **GLAD**: OpenGL extension loader - **GLM**: Mathematics library (matrix/vector operations) - **STB Image**: Image loading ## Example Code The project includes 7 complete examples: ```bash examples/ ├── 01_hello_window.cpp # Window creation ├── 02_first_triangle.cpp # Triangle rendering ├── 03_rectangle.cpp # Rectangle rendering ├── 04_texture.cpp # Texture mapping ├── 05_transform.cpp # Transformation animation ├── 06_camera.cpp # Camera navigation └── 07_lighting.cpp # Lighting effects ``` ## Compilation and Execution ### Prerequisites - C++ compiler (supporting C++11) - CMake - OpenGL development libraries ### Build Steps ```bash # Create build directory mkdir build && cd build # Configure project cmake .. # Compile make ``` ## Learning Path It is recommended to follow this learning sequence: 1. **Beginner Stage**: 01 → 02 → 03 2. **Intermediate Stage**: 04 → 05 3. **Advanced Stage**: 06 → 07 ## Documentation Each chapter is accompanied by detailed Chinese documentation located in the `docs/` directory: - Core concept explanations - Simplified principle breakdowns - API detailed references - Common pitfalls and tips ## License This project is intended solely for learning and educational purposes.