Skip to content

Instantly share code, notes, and snippets.

Avatar

Chaitanya Gupta iCHAIT

View GitHub Profile
@iCHAIT
iCHAIT / opengl_functions.md
Created Dec 18, 2015 — forked from dufferzafar/opengl_functions.rst
OpenGl Functions Manpages. Taken from: http://www.cs.uccs.edu/~ssemwal/glman.html. Use Pandoc to convert to pdf: pandoc -V documentclass=report ~/opengl_functions.rst -o ~/opengl_functions.pdf
View opengl_functions.md

.. ##############################################################################

glBegin

Name

glBegin, glEnd - delimit the vertices of a primitive or a group of like

View circles.cpp
#include <GLUT/GLUT.h>
#include<OpenGL/OpenGL.h>
#include<iostream>
//#include<time>
#include<cstdlib>
#include <cmath>
#include <cstdio>
float x_1=1.0,x_2=1.0;
View simple-moving-ball.cpp
#include <GLUT/GLUT.h>
#include<OpenGL/OpenGL.h>
#include<iostream>
//#include<time>
#include<cstdlib>
#include <cmath>
#include <cstdio>
#define PI 3.14159265f
View rotating-wire-sphere.cpp
#include <GLUT/GLUT.h>
#include<OpenGL/OpenGL.h>
#include<iostream>
//#include<time>
#include<cstdlib>
#include <cmath>
#include <cstdio>
GLfloat xRotated, yRotated, zRotated;
View ball-mouse-path.cpp
#include <GLUT/GLUT.h>
#include<OpenGL/OpenGL.h>
#define WIDTH 600
#define HEIGHT 600
#include<iostream>
//#include<time>
#include<cstdlib>
#include <cmath>
View ball-around-circle.cpp
#include <GLUT/GLUT.h>
#include<OpenGL/OpenGL.h>
#include<iostream>
//#include<time>
#include<cstdlib>
#include <cmath>
#include <cstdio>
View rotating-triangle.cpp
#include <GLUT/GLUT.h>
#include<OpenGL/OpenGL.h>
#include<iostream>
//#include<time>
#include<cstdlib>
#include <cmath>
#include <cstdio>
View fixed-spiral.cpp
#include <GLUT/GLUT.h>
#include<OpenGL/OpenGL.h>
#include<iostream>
//#include<time>
#include<cstdlib>
#include <cmath>
#include <cstdio>
View square-in-square-animation.cpp
#include <GLUT/GLUT.h>
#include <OpenGL/OpenGL.h>
#include <math.h>
#include <stdio.h>
float x1=-2.0, x2=2.0;
float x = 0.7, y = 0.7;
void keyPressed(int key, int x1, int y1)
{
@iCHAIT
iCHAIT / first-follow.c
Created Dec 19, 2015
To find the first follow of a grammar.
View first-follow.c
#include <stdio.h>
#include <ctype.h>
#define prod 8 // define number of productions
#define nonterm 5 // defines number of non terminals
char input[prod][prod];
struct firTab
{
int n;