Giter Site home page Giter Site logo

ogl-intro's Introduction

OpenGL简介

2021&2022年春季学期北京大学本科生图形学课程的样例代码。

screenshot

功能

Download

git clone https://github.com/huisedenanhai/ogl-intro.git

Build

本项目利用CMake配置。

CLion

直接打开文件夹即可。

VS Code

安装插件

然后打开文件夹即可。

Visual Studio

  1. 安装CMake
  2. 打开CMake
  3. 选择项目文件夹和输出文件夹
  4. 点击Configure
  5. Configure结束后点击Generate
  6. 打开输出文件夹中的ogl-intro.sln

Xcode

  1. 安装CMake
  2. 运行如下指令
cd ogl-intro
mkdir build
cd build
cmake .. -G Xcode
open ogl-intro.xcodeproj

FQA

Building on Linux

如果在Linux编译时报错,例如缺少GL/glu.h,可能需要手动安装OpenGL相关依赖

sudo apt-get update
sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev

如果在编译glfw过程中提示缺少lib***, 需要手动安装GLFW依赖.

ogl-intro's People

Contributors

huisedenanhai avatar cuteday avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.