Skip to content

A pure C-lang reintroduction of basic OpenGL application development on the MacOS platform using Xcode, GL/GLUT.

Notifications You must be signed in to change notification settings

xCyborg/C-OpenGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C-OpenGL

A pure C-lang reintroduction of basic OpenGL application development on the MacOS platform using Xcode, GL/GLUT.

 As a first example of using OpenGL in C, this program draws the
 classic red/green/blue triangle.  It uses the default OpenGL
 coordinate system, in which x, y, and z are limited to the range
 -1 to 1, and the positive z-axis points into the screen.  Note
 that this coordinate system is hardly ever used in practice.

 When compiling this program, you must link it to the OpenGL library
 and to the glut library. For example, in Linux using the gcc compiler, 
 it can be compiled with the command:

 gcc -o first-triangle first-triangle.c -lGL -lglut

Done

About

A pure C-lang reintroduction of basic OpenGL application development on the MacOS platform using Xcode, GL/GLUT.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages