Blog Posts - Opengl / Graph



A program in c\c++ using Open GL that draws following figure

#include <stdio.h>#include <conio.h>#include <iostream.h>#include <glut.h>#include <stdlib.h>#define WINW 1000#define WINL 1000void setup(){ glClearColor(0.0f,0.0f,0.0f,0.0f); glClear(GL_COLOR_BUFFER_BIT); glutSwapBuffer...
by 123techguide on Oct 21, 2013

Write a Program in c/c++ using Open GL that draws Digital Signal/Wave

#include <stdio.h>#include <conio.h>#include <iostream.h>#include <stdlib.h>#include <glut.h>#define WINW 800#define WINL 600float xmap(int x){ float halfw,fx; halfw = (float)WINW/2; fx = (x)/halfw; return fx;}float y...
by 123techguide on May 24, 2013

Open GL : Geometric Primitive Names and Meanings

Geometric Primitive Names and Meanings Value Meaning GL_POINTS Individual points GL_LINES Pairs of vertices interpreted as individual line segments GL_LINE_STRIP Series of connected line segments GL_LINE_LOOP Same as above, with a segm...
by 123techguide on May 24, 2013

Open GL Setup

Copy OPENGL folder to  C:\  dynamically-linked libraries (place in the \Windows\System32) subdirectory   opengl32.dll ,   glu32.dll , glut32.dll , glut.dll3. Open Microsoft Visual C++Create a new project:Cho...
by 123techguide on Apr 20, 2013

Draw a Filled Polygon : OpenGL / Graph Programme

#include <windows.h>#include <stdio.h>#include <conio.h>#include <iostream.h>#include <stdlib.h>#include <glut.h>void myInit(void){ glClearColor(1.0,1.0,1.0,0.0); glColor3f(1.0f,0.0f,0.0f); glPointSize(4.0...
by 123techguide on Jan 17, 2013


Trending Topics

Close