Skip to content

An example OpenGL program that includes matrix transformations and textures in C.

License

Notifications You must be signed in to change notification settings

jagger-harris/opengl-c-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL C Example

OpenGL C Example is a simple program demonstrating basic modern, core OpenGL 3.3 with CMake 3.5 using the C89 programming language.

This program contains commonly used libraries GLFW, GLAD, and STB.

Requires git and CMake 3.5 or later to build.

opengl-c-example.gif

Dependencies

  • CMake 3.5 or greater
  • OpenGL 3.3 or higher supported graphics card and drivers
  • C89 compiler

Compiling and Running

Clone the repository:

git clone https://github.com/jagger-harris/opengl-c-example.git
cd opengl-c-example
git submodule init
git submodule update

Using provided build script:

./build.sh build run

Without build script:

mkdir build
cd build
cmake ..
make
./executable

Contributing

See the contributing guidelines here.

License