项目作者: vscav

项目描述 :
OpenGL 3+ practical course.
高级语言: C++
项目地址: git://github.com/vscav/GLImac.git
创建时间: 2020-10-06T15:28:51Z
项目社区:https://github.com/vscav/GLImac

开源协议:

下载


GLImac

OpenGL 3+ practical course.

Linux installation

Update package database :

  1. $ sudo apt update

Install the updates identified previously :

  1. $ sudo apt upgrade

Install g++ (C++ compiler) :

  1. $ sudo apt install g++

Install CMake :

  1. $ sudo apt install cmake

Install GLEW :

  1. $ sudo apt install libglew-dev

Install SDL (1.2 version) :

  1. $ sudo apt install libsdl1.2-dev

Install mesa-utils :

  1. $ sudo apt install mesa-utils

This last package provides various simple GL utilities built for Mesa, such as glxinfo and glxgears.
For example, you can check your current version of OpenGL :

  1. $ glxinfo | grep 'version'

Usage

In the directory containing the GLImac folder, create the build folder and move into it :

  1. $ mkdir GLImac-build && cd GLImac-build

Build and compile GLImac :

  1. $ cmake ../GLImac && make

Run an executable by using this pattern :

  1. $ ./GLImac-subdirectory-name/GLImac-subdirectory-name_executable-file-name

Resources

  • OpenGL3+ - Description of the practicals