Code Monkey home page Code Monkey logo

cse-102-offline's Introduction

IGraphics

This is the repository for IGraphics library. IGraphics is a thin wrapper on top of OpenGL. This can be used for simple 2D graphics demonstrations, project work for C programming language course

Command line compiling:

g++ -IOpenGL\include -w -c 1805052.cpp -o 1805052.o

Command line linking:

g++ -LOpenGL\lib 1805052.o -o bin\Debug\1805052.exe -lGlaux -lGLU32 -lglui32 -lglut32 -lOPENGL32 -lgdi32

Command line running:

Make sure glut32.dll is present in the same folder Run 1805052.exe

Animation Related API:

int iSetTimer(int msec, void (*f)(void))
void iPauseTimer(int index)
void iResumeTimer(int index)

Shape drawing:

void iSetColor(double r, double g, double b)
void iPoint(double x, double y, int size=0)
void iLine(double x1, double y1, double x2, double y2)
void iFilledPolygon(double x[], double y[], int n)
void iPolygon(double x[], double y[], int n)
void iRectangle(double left, double bottom, double dx, double dy)
void iFilledRectangle(double left, double bottom, double dx, double dy)
void iFilledCircle(double x, double y, double r, int slices=100)
void iCircle(double x, double y, double r, int slices=100)
void iEllipse(double x, double y, double a, double b, int slices=100)
void iFilledEllipse(double x, double y, double a, double b, int slices=100)

Text output:

void iText(double x, double y, char *str, void* font=GLUT_BITMAP_8_BY_13)

Rendering:

void iDraw();
void iClear();
void iShowBMP(int x, int y, char filename[])

Initialization:

void iInitialize(int width=500, int height=500, char *title="iGraphics")

I/O event handling:

void iKeyboard(unsigned char);
void iSpecialKeyboard(unsigned char);
void iMouseMove(int, int);
void iMouse(int button, int state, int x, int y);

cse-102-offline's People

Contributors

hmasum52 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.