Skip to content

Instantly share code, notes, and snippets.

View iCHAIT's full-sized avatar

Chaitanya Gupta iCHAIT

View GitHub Profile
@iCHAIT
iCHAIT / first-follow.c
Created December 19, 2015 17:00
To find the first follow of a grammar.
#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;
#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)
{
#include <GLUT/GLUT.h>
#include<OpenGL/OpenGL.h>
#include<iostream>
//#include<time>
#include<cstdlib>
#include <cmath>
#include <cstdio>
#include <GLUT/GLUT.h>
#include<OpenGL/OpenGL.h>
#include<iostream>
//#include<time>
#include<cstdlib>
#include <cmath>
#include <cstdio>
#include <GLUT/GLUT.h>
#include<OpenGL/OpenGL.h>
#include<iostream>
//#include<time>
#include<cstdlib>
#include <cmath>
#include <cstdio>
#include <GLUT/GLUT.h>
#include<OpenGL/OpenGL.h>
#define WIDTH 600
#define HEIGHT 600
#include<iostream>
//#include<time>
#include<cstdlib>
#include <cmath>
#include <GLUT/GLUT.h>
#include<OpenGL/OpenGL.h>
#include<iostream>
//#include<time>
#include<cstdlib>
#include <cmath>
#include <cstdio>
GLfloat xRotated, yRotated, zRotated;
#include <GLUT/GLUT.h>
#include<OpenGL/OpenGL.h>
#include<iostream>
//#include<time>
#include<cstdlib>
#include <cmath>
#include <cstdio>
#define PI 3.14159265f
#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;
@iCHAIT
iCHAIT / opengl_functions.md
Created December 18, 2015 16:36 — 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

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

glBegin

Name

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