项目作者: wcaarls

项目描述 :
Primitive OpenGL 3D primitive library
高级语言: C++
项目地址: git://github.com/wcaarls/pgl.git
创建时间: 2020-04-22T22:52:55Z
项目社区:https://github.com/wcaarls/pgl

开源协议:Apache License 2.0

下载


pgl

Build # Status

Primitive OpenGL 3D primitive library

Copyright 2020 Wouter Caarls

Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Introduction

When all you want to do is draw some boxes

Header-only library providing quick and easy drawing of 3D primitives
(box, sphere, cylinder, capsule), a scene graph, and camera controller.


WARNING

Uses legacy OpenGL functions. Built for ease of use and glx compatibility,
not speed.


Example

Installation (Ubuntu 18.04)

  1. sudo apt install git cmake g++ libgl-dev
  2. git clone https://github.com/wcaarls/pgl.git

To compile the example, additionally install

  1. sudo apt install libglfw3-dev

To install the headers (and compile the example), run

  1. mkdir build
  2. cd build
  3. cmake ..
  4. make && sudo make install

Installation (Windows 10)

Copy the header files to your desired include path.

To compile the example, install cmake and download glfw3 into an appropriate directory. Then configure cmake-gui in the main pgl directory; it will complain about not finding GLFW. Afterwards, set GLFW_INCLUDE_DIR to the directory containing the GLFW folder and GLFW_LIBRARY to the full path of glfw3.lib. Generate, open the solution in Visual Studio, and compile the example project.

Documentation

https://wcaarls.github.io/pgl/index.html

See also the example