GithubHelp home page GithubHelp logo

bhuvanesh1729 / opengl-4.6-hello-triangle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fr3nchk1ss/opengl-4.6-hello-triangle

0.0 1.0 0.0 127 KB

The famous OpenGL "Hello triangle" using shaders. It uses the OpenGL 4.5 functionality called Direct State Access.

License: Other

C++ 1.84% C 98.02% Makefile 0.10% GLSL 0.04%

opengl-4.6-hello-triangle's Introduction

OpenGL-4.6-Hello-Triangle

The famous OpenGL "Hello triangle" using shaders. It uses the OpenGL 4.5 functionality called Direct State Access. Be aware, not-that-old hardware may not be compatible with this functionality.

As of November 2020, it is the most up-to-date "hello triangle" example I could piece together.

Build and run

I work on GNU/Linux Ubuntu 20. Obviously you need to install a compiler (g++), make, opengl and glfw3.

sudo apt install g++ build-essential libopengl0 libopengl-dev libglfw3 libglfw3-dev

Run make in the directory of the project.

Glad

This code uses Glad as its openGL extensions loader. Glew would work fine too. The directories include/glad, include/KHR, and the files glad.h, glad.c and khrplatform.h were generated from Glad website

Greetings

I copied/modified code from Anton Gerdelan and Joey De Vries / Learnopengl. See Licence file for more info. Also check Fendevel repos about modern OpenGL.

opengl-4.6-hello-triangle's People

Contributors

fr3nchk1ss avatar

Watchers

James Cloos 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.