openGL

Draw Cylinder (with GRID lines) in OpenGL

Submitted by CAAadmin on Sat, 06/17/2017 - 09:40

Press space bar to ON/OFF grid appearance

 

Sample code - --

 

#include <iostream>
#include<conio.h>
#include <GL/freeglut.h>
//available at www.computeraidedautomation.com
using namespace std;

GLuint jijmodel;
float jijmodelrot;
//int x,y,z;

bool bUsePredefinedCamera = true;
bool grid = true;
bool bFullsreen = false;
int nWindowID;
bool init = false;

Tags