[go: up one dir, main page]

glium 0.36.0

Elegant and safe OpenGL wrapper. Glium is an intermediate layer between OpenGL and your application. You still need to manually handle the graphics pipeline, but without having to use OpenGL's old and error-prone API. Its objectives: - Be safe to use. Many aspects of OpenGL that can trigger a crash if misused are automatically handled by glium. - Provide an API that enforces good pratices such as RAII or stateless function calls. - Be compatible with all OpenGL versions that support shaders, providing unified API when things diverge. - Avoid all OpenGL errors beforehand. - Produce optimized OpenGL function calls, and allow the user to easily use modern OpenGL techniques.
Documentation
name: ci

on: [push, pull_request]

jobs:
  build:

    strategy:
      fail-fast: false
      matrix:
        os: [windows-latest, ubuntu-latest]
        toolchain: [stable, beta, nightly]

    runs-on: ${{ matrix.os }}

    steps:
    - uses: actions/checkout@master
    - name: Install Rust
      uses: actions-rs/toolchain@v1
      with:
        toolchain: ${{ matrix.toolchain }}
        override: true
    - name: Run cargo check --all
      env:
        RUSTFLAGS: -D warnings
      run: |
        cargo check --all --all-targets
    - name: Compile the tests
      env:
        RUSTFLAGS: -D warnings
      run: |
         cargo test --all --all-targets --no-run
    - name: Run cargo doc
      env:
        RUSTFLAGS: -D warnings
      run: |
        cargo doc --all --all-features
  book:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Install mdbook
      run: |
        sudo snap install mdbook
    - name: Run mdbook
      run: |
        cd book && mdbook build
        mkdir gh-pages && mv book gh-pages
    - name: Deploy to gh pages
      uses: JamesIves/github-pages-deploy-action@v4.2.3
      with:
        branch: gh-pages
        folder: book/gh-pages
      if: github.event_name == 'push'