Skip to content

Instantly share code, notes, and snippets.

View mimukit's full-sized avatar

Mukitul Islam Mukit mimukit

  • @shopup-tech
  • Dhaka, Bangladesh
  • X @mimukit
View GitHub Profile
@mimukit
mimukit / OpenGL_LineAlgo.cpp
Last active June 12, 2016 17:56
OpenGL Line Generation Algorithms Implementation
#include <stdio.h>
#include <math.h>
#include <iostream>
#include <GL/glut.h>
using namespace std;
int pntX1, pntY1, pntX2, pntY2, choice = 0;
double x, y, length, xinc, yinc;
int round(double d)
@mimukit
mimukit / CS_TicTacToe.cs
Last active June 21, 2016 12:42
Tic Tac Toe Console Game with error/exception handling by M MUKIT.
using System;
namespace _1.Tic_Tac_Toe
{
public class TicTacToe
{
public char[,] gameBoard = new char[3,3];
public char choice;
public int player = 0;
@mimukit
mimukit / OpenGL_SpiderMan.cpp
Last active May 7, 2021 20:35
Spiderman Art using OpenGL
#include <stdio.h>
#include <GL/glut.h>
int x = 250;
int y = 100;
void drawRedShoe(void)
{
glBegin(GL_POLYGON);
glColor3f(1.0, 0.0, 0.0);
@mimukit
mimukit / OpenGL_ChessBoard.cpp
Created June 12, 2016 17:57
ChessBoard Drawing Using Loop with OpenGL
#include <stdio.h>
#include <GL/glut.h>
int x = 50, y = 50;
bool isBlack = true;
void whiteBox(int x, int y)
{
glBegin(GL_LINE_LOOP);
glVertex2i(x, y);
@mimukit
mimukit / OpenGL_CircleAlog.cpp
Created June 13, 2016 06:41
Midpoint Circle Drawing Algorithm Implementation using OpenGL
#include <stdio.h>
#include <iostream>
#include <GL/glut.h>
using namespace std;
int pntX1, pntY1, r;
void plot(int x, int y)
{
glBegin(GL_POINTS);
@mimukit
mimukit / OpenGL_BasicTransformations.cpp
Last active May 2, 2020 15:55
Translation and scaling of polygon using OpenGL
#include <stdio.h>
#include <math.h>
#include <iostream>
#include <vector>
#include <GL/glut.h>
using namespace std;
int pntX1, pntY1, choice = 0, edges;
vector<int> pntX;
vector<int> pntY;
@mimukit
mimukit / CS_BasicBankManagement.cs
Created June 21, 2016 12:41
Basic Bank Management Program by M MUKIT
using System;
using System.Collections;
namespace Bank_Management
{
class DOB
{
private int day = 0;
private int month = 0;
private int year = 0;
@mimukit
mimukit / CS_BasicProductManagement.cpp
Created June 22, 2016 09:21
Basic Product Management Program by M MUKIT
using System;
using System.Collections;
namespace BasicProductManagement
{
class Product
{
private static ArrayList arrItems = new ArrayList();
private string ProductID;
@mimukit
mimukit / OpenGL_ExtendedBasicTransformation.cpp
Last active October 7, 2022 12:06
Translation, Scaling, Rotation, Mirror Reflection and Shearing with OpenGL library
#include <stdio.h>
#include <math.h>
#include <iostream>
#include <vector>
#include <GL/glut.h>
using namespace std;
int pntX1, pntY1, choice = 0, edges;
vector<int> pntX;
vector<int> pntY;
@mimukit
mimukit / OpenGL_Clipping.cpp
Last active July 26, 2016 11:45
Clipping with Cohen-Sutherland algorithm using OpenGL Library
#include <stdio.h>
#include <iostream>
#include <GL/glut.h>
using namespace std;
int minX, minY, maxX, maxY;
int fstX, fstY, sndX, sndY;
int code1[4] = { 0, 0, 0, 0 };
int code2[4] = { 0, 0, 0, 0 };