# OpenGLExample **Repository Path**: lyzz0612/OpenGLExample ## Basic Information - **Project Name**: OpenGLExample - **Description**: My OpenGL programs by LearnOpenGL-CN. - **Primary Language**: C++ - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-11-24 - **Last Updated**: 2021-11-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # My OpenGLExample ![](https://img.shields.io/badge/License-MIT-write.svg) ![](https://img.shields.io/badge/Language-C++-darkblue.svg) ![](https://img.shields.io/badge/Language-GLSL-darkblue.svg) ![](https://img.shields.io/badge/IDE-VS_2019-purple.svg) ![](https://img.shields.io/badge/Platform-Windows10-blue.svg) ![](https://img.shields.io/badge/API-OpenGL_3.3-blue.svg) [![](https://img.shields.io/badge/UI_Library-Dear_ImGui-orange.svg)](https://github.com/ocornut/imgui) [![](https://img.shields.io/badge/API_Library-GLAD-yellow.svg)](https://github.com/Dav1dde/glad) [![](https://img.shields.io/badge/API_Library-GLFW-yellow.svg)](https://www.glfw.org/download.html) [![](https://img.shields.io/badge/Math_Library-GLM-yellow.svg)](https://glm.g-truc.net/0.9.8/index.html) [![](https://img.shields.io/badge/Load_Library-stb__image-yellow.svg)](https://github.com/nothings/stb) [![](https://img.shields.io/badge/Load_Library-Assimp-yellow.svg)](https://github.com/assimp/assimp) ***My OpenGL programs by [LearnOpenGL-CN](https://learnopengl-cn.github.io/).*** **Example_01:** Create a window **Example_02:** Draw a triangle **Example_03:** Draw a rectangle **Example_04:** Draw two triangle **Example_05:** Draw two triangle,use different VAO and VBO for their data **Example_06:** Draw a yellow triangle and an orange triangle, use two shader programs, the second using a different fragment shader **Example_07:** Draw a red triangle that can change color **Example_08:** Draw a triangle has three colors **Example_09:** Draw a three colors triangle use shader class **Example_10:** Draw a wooden box with texture **Example_11:** Draw a wooden box with two textures **Example_12:** Draw a wooden box with two textures, and can use the up and down keys to change the textures visibility **Example_13:** Draw two wooden boxes with two textures, the first one rotates along X, Y and Z axes at the same time and can be moved by direction keys;The second one scales regularly in the upper right corner **Example_14:** >test1: Draw a 2D wooden box lying on the ground test2: Draw a rotating 3D wooden box test3: Draw twenty rotating 3D wooden boxes test4: Draw twenty 3D wooden boxes, and only the multiple of three wooden boxes rotation **Example_15:** >test1: Create a camera that moves around the scene over time test2: Create a camera that can move freely **Example_16:** Create a lighting scene **Example_17:** Phong Lighting Model **Example_18:** Phong Lighting Model, A moving point light source that can change color **Example_19:** Create a wooden box has diffuse map and specular map **Example_20:** Create a spotlight **Example_21:** Create a scene who has a directional light, four point lights and a spotlight **Example_22:** Load a model with Assimp, and refactor the codes to be Object-Oriented