Giter Site home page Giter Site logo

thederickff / opengl_fundamentals Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 4.0 898 KB

A cross-platform C++ project that approaches some of the fundamentals of OpenGL

C++ 93.90% GLSL 4.07% CMake 2.03%
opengl glew glfw-opengl-library shaders glfw-errors vao vbo

opengl_fundamentals's Introduction

OpenGL Fundamentals

This repository contains the code for TheCherno's series on OpenGL. It uses CMake to manage the build process, making it cross-platform. Follow along the video playlist, click the image below:

Watch his video series here.

Installation

Ubuntu

To compile you first need to have CMake, GLEW, and GLFW installed. In the terminal run

sudo apt-get update
sudo apt-get -y install build-essential cmake libglfw3-dev libglew-dev libglm-dev

Compilation

In the terminal cd to the project directory and create a build directory. Now there should be a working

cd <Path to OpenGL_Fundamentals>
mkdir ./build
cd ./build
cmake ..
make

Execution

To run the program cd to the directory containing the res/ directory. By default this is OpenGL_Fundamentals, but you can also copy the res/ directory into the location that the executable is saved and run it from there. As long as you're executing the binary in a directory containing `res/ you can run the executable and it should work.

./build/myapp

opengl_fundamentals's People

Contributors

danielarnett avatar thederickff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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