Giter VIP home page Giter VIP logo

ng's Introduction

ng

ng is my personnal C++ library. It allows me to tinker with a variety of algorithms and concepts (threads, allocators, clocks, etc) and APIs (OpenGL, GLM, GLFW, etc). This library is also compiled against all my projects so I can reuse code when needed.

Features

  • graphics module
    • Window, Event, Mouse, Keyboard; abstraction of GLFW, simplifies and hides windows creation and OpenGL contexts.
    • Mesh; a basic OpenGL object renderer.
    • GLShader; manages an OpenGL 3.X shader.
  • io module
    • File, Buffer; filesystem access.
    • parsing of a few file formats: Wavefront OBJ.
  • maths module
    • AABB, Ray; implements basic collision techniques.
    • PerlinNoise.
    • Random; based on the standard C library.
  • system module
    • FrameAlloctor; to allocate memory from pre-allocated frames.
    • StackAllocator; to allocate memory from stacked pieces of memory.
    • Clock.
    • Duration.
  • utils module
    • Logger; print messages to standard outputs and log file at the same time.

Compilation

Can be done using cmake:

cmake -E make_directory build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .. --config Release

By default a static library is generated.

Linter

Google's linter cpplint can be run against this repository. All Google's rules are respected but: identation, forbidden functions and empty loop body rules.

To install and run cpplint:

pip install cpplint
cpplint --recursive --filter="-whitespace/braces,-whitespace/indent,-whitespace/comments,-runtime/indentation_namespace,-build/c++11,-whitespace/empty_loop_body" include src

Notice

This code is provided "as is", without warranty of any kind. Not recommended to be used in a production environment. Can be used to tinker and play around.

License

See LICENSE file.

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.