Git Product home page Git Product logo

inepsie / gl4dummies Goto Github PK

View Code? Open in Web Editor NEW

This project forked from noalien/gl4dummies

0.0 0.0 0.0 98.21 MB

GL4Dummies is an API that aims to help C developers to easily produce Multi-platform OpenGL 3.3+ applications.

Home Page: http://gl4d.api8.fr

License: GNU General Public License v3.0

C++ 0.57% C 96.16% Objective-C 0.40% Makefile 1.61% CMake 0.79% GLSL 0.22% M4 0.21% Meson 0.03%

gl4dummies's Introduction

Build Status Codacy Badge CodeFactor Documentation

GL4Dummies

GL4Dummies is a C wrapper around OpenGL that aims to help C developers to easily produce Multi-platform OpenGL 3.3+ applications.

Installation

The build systemis based on autotools.

Dependencies

GL4Dummies has two dependencies: OpenGL and the SDL2. You will at least need to install the SDL development package to get GL4Dummies running. You can install it with your favorite package manager if you have access to one. Here are some common names for the package you will need for the SDL:

  • libsdl2-dev on Linux distros based on Debian (including Ubuntu)
  • sdl2 on distros based on Arch Linux
  • SDL2-devel on Void Linux
  • sdl2-dev on Alpine Linux
  • libsdl2 with MacPorts on macOS
  • sdl2 with HomeBrew on macOS

GNU Autotools

In order to launch autotools config, type make -f Makefile.autotools. The following packages are required:

  • pkg-config (pkgconfig under macOS)
  • automake
  • autoconf
  • libtool
  • make

You can then run the following command:

make -f Makefile.autotools

With superuser rights

If you have superuser rights and wish to install globally GL4Dummies, you can run the following commands:

./configure
make # you can also run `make -j` for parallel compilation
sudo make install

You will then need to edit your .profile, .bash_profile, .zprofile or your .bashrc and add the following line:

export PATH=/usr/local/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

Or, if you use fish, edit your ~/.config/fish/config.fish file and add the following line:

set -gx LD_LIBRARY_PATH /usr/local/lib $LD_LIBRARY_PATH

Without superuser rights

If you do not have superuser rights on your machine, or if you want to install GL4Dummies locally, you can run the following instead:

[ -d $HOME/local ] || mkdir $HOME/local
./configure --prefix=$HOME/local
make
make install

You will then need to add to your .profile, .bash_profile, .zprofile or .bashrc the following lines:

export PATH=$HOME/local/bin:$PATH
export LD_LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH

And if you use fish, you will instead need to add the following lines to your ~/.config/fish/config.fish file:

set -gx PATH $HOME/local/bin $PATH
set -gx LD_LIBRARY_PATH $HOME/local/lib $LD_LIBRARY_PATH

Online instructions

You can also refer to the manual (PDF) for more in-depth instructions (in French).

Under the Windows Operating System, please use Visual Studio (Community 2019) or CodeBlocks files in the Windows directory.

gl4dummies's People

Contributors

noalien avatar mzartek avatar arkwings avatar phundrak avatar bibi210 avatar boyervincent avatar chadys avatar fiplox 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.