Program: #include<GL/glut.h> #include<stdio.h> #include<math.h> #define pi 3.142857 void DrawCircle(float cx, float...
Read More
3 Program for DDA Line Drawing Algorithm implemented using OpenGL
Problem Statement: Implement DDA and Bresenham line drawing algorithm to draw: i) Simple Line ii) Dotted Line iii) Dashed Line iv) Solid l...
Read More
2 Basic OpenGL Program to Display a Line
Program: #include<GL/glut.h> void MyInit() { glClearColor(1,1,1,1); // Seting Background Color White with full trasparent ...
Read More
Embedded C Program to add array of n numbers using PIC18F MCU in MPLAB IDE
We are using MPLAB IDE to Run this Program and Using PIC18F Microcontroller. Program for n = 10: #include <xc.h> void main(voi...
Read More
1 Install OpenGL in Ubuntu/Linux Mint/Kali Linux
Steps to Follow: 1) Open a terminal and enter the following commands to install the necessary libraries for OpenGL development: Type/Copy/P...
Read More
Subscribe to:
Posts (Atom)