Skip to content

Instantly share code, notes, and snippets.

View meshileya's full-sized avatar
🏠
Working from home

meshileya

🏠
Working from home
  • Lagos, Nigeria
View GitHub Profile
@meshileya
meshileya / circle_with_opengl.cpp
Created January 2, 2016 16:41
Using opengl to create a 3D circle
// circle_assignment.cpp : Defines the entry point for the console application.
//to draw a circle using 3 dimentional graph style
#include "stdafx.h"
#include "glut.h"
GLfloat xRotated, yRotated, zRotated;
GLdouble radius=1;//to set the radius of the circle