Skip to content

Programs written in C language with opengl library utilities for rendering 2D and 3D graphics.

Notifications You must be signed in to change notification settings

shellyannissa/openGL_samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

OpenGL is a cross language, cross platform, application programming interface for rendering 2D and 3D vector graphics.

This repository is a collection of programs written in C program language that utilises the openGL apis.

List of Programs

  • rendering a basic window
  • rendering a rectangle
  • a multicolored spinning cube
  • cube rotating wrt specified axis with matrix transformations
  • triangle rotating wrt specified ref point and angle of rotation
  • cube with camera and lighting apis
  • rotating table with teapot on top
  • triangle that rotates on the basis of keyboard input
  • a ball that bounces off the walls of the window
  • chessBoard
  • simple circle
  • circle creation and colour changes triggered by mouse buttons
  • a polygon with all the diagonals drawn
  • window changing color based on keyboard input
  • polygon drawn from vertices read from a text file
  • pyramid
  • traingles drawn recursively within itself
  • sierpinski Gasket
  • sierpinski Triangle

Compilation

git clone https://github.com/shellyannissa/openGL_samples.git
cd openGL_samples
./compile.sh <file_name>.c
./<file_name>

replace file_name with the appropriate file_name from the list of programs

Samples

Shelly_SS.2024-02-03.at.12.28.50.PM.mov
Shelly_SS.2024-02-03.at.2.12.20.PM.mov
Shelly_SS 2024-02-05 at 11 49 25 PM

About

Programs written in C language with opengl library utilities for rendering 2D and 3D graphics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published