Tag: OpenGL
Midpoint algo reference: http://www.eazynotes.com/notes/computer-graphics/algorithms/mid-point-circle-algorithm.pdf http://suraj1693.blogspot.com/2013/11/c-program-for-drawing-circle-using.html https://birunthag.blogspot.com/2014/05/openglc-draw-circle-with-midpoint.html https://www.opengl.org/discussion_boards/showthread.php/169955-using-glutKeyboardFunc Code: #include <windows.h> #include <GL\glut.h> #include <stdlib.h> #include<iostream> #include<stdio.h> using namespace…
#include <windows.h> #include <GL\glut.h> void myInit (void) { glClearColor(0.0,0.0,0.0,0.0); // sets background color to white // sets…
Lectures: About OpenGL colors: http://www.cs.brandeis.edu/~cs155/OpenGL%20Lecture_02.pdf https://en.wikibooks.org/wiki/OpenGL_Programming/Basics/Color Setup: https://openglprojects.com/setting-up-opengl-in-windows-linux-mac/ Tut: http://www.lighthouse3d.com/tutorials/glut-tutorial/ http://ogldev.atspace.co.uk/www/tutorial03/tutorial03.html https://www3.ntu.edu.sg/home/ehchua/programming/opengl/CG_Introduction.html Vid: https://www.youtube.com/watch?v=xCRzpNd5k3Y Projects: http://www.openglprojects.in/2015/08/bubble-shooter-game-computer-graphics-programs-in-c.html#gsc.tab=0…
Code: #include<windows.h> #include <GL/gl.h> #include <GL/glut.h> void display(void) { /* clear all pixels */ glClear (GL_COLOR_BUFFER_BIT); /*…
Recent Comments