Coder Social home page Coder Social logo

aliakseikalosha / gl_tutorials Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jankolomaznik/gl_tutorials

0.0 0.0 0.0 50.24 MB

Short demos and tutorials for OpenGL and other graphic libraries

C++ 42.98% C 30.85% CMake 0.87% GLSL 5.60% HTML 0.27% JavaScript 19.43%

gl_tutorials's Introduction

gl_tutorials

Short demos and tutorials for OpenGL and other graphic libraries.

Dependencies

Loading library

To use modern OpenGL you need loading library, which will set the function pointers for the API calls and load vendor extensions.

There is several options for such libraries. I chose GLAD as it should be sufficient for our purposes. I generated basic version of the lib for the OpenGL 4.4 and it is stored in this repository in the glad directory, so there is no need for additional steps.

Why simple GL.h include does not suffice

Limited to OpenGL's Core Version: GL.h typically corresponds to OpenGL version 1.1, which is severely outdated. It doesn't include function pointers for modern OpenGL features or extensions.

Platform-Specific Function Pointers: OpenGL's design requires that function pointers for newer features be obtained at runtime. This is because different graphics drivers may implement different versions of OpenGL and support different sets of extensions. A static header file like GL.h cannot provide this level of flexibility.

Windowing library

OpenGL requires either native window or window created by specialized library, which will provide OpenGL context and framebuffer. Basic multiplatform solution is GLFW.

GLM

GLM provides linear algebra library with similar syntax to GLSL. Download here.

gl_tutorials's People

Contributors

jankolomaznik avatar aliakseikalosha 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.