Programming LearnByExample COpenGL IntroOrtho

 15 July 06:04   

    This cipher will draw a aboveboard on the screen, and use orthographic projection.

     #include

     #include

     / This is the action that is alleged every time you wish to affectation to the screen

    

     abandoned display()

     abandoned reshape(int w , int h)

    

     abandoned init()

    

     int main(int argc, burn

    This cipher draws the aforementioned square, but if you larboard bang on it, it starts alternating to the left. If you appropriate bang on it then it rotates to the right. If you average bang on it, it stops rotating.

     #include

     #include

     changeless GLfloat mySpin = 0.0;

     abandoned display()

     abandoned incrementMySpin()

     abandoned decrementMySpin()

    

     abandoned mouse(int button, int state, int x , int y)

     }

    

     abandoned reshape(int w , int h)

    

     abandoned init()

    

     int main(int argc, burn

    If youre using this makefile, be abiding that you alter all the spaces with tabs! I deceit save the tabs on this page for some reason.

     GCC = gcc

     OFLAG = -o

     GLUTFLAG = -lglut

     .SUFFIXES : .o .c

     .c.o :

     $(GCC) -c $<

     all : first second third

     clean:

     rm

     first: first.o

     $(GCC) $(OFLAG) first $(GLUTFLAG) first.o

     second: second.o

     $(GCC) $(OFLAG) additional $(GLUTFLAG) second.o

     third: third.o

     $(GCC) $(OFLAG) third $(GLUTFLAG) third.o

    

     first.o : first.c

     second.o : second.c

     third.o : third.c

    

 


Tags: programming, display

 click, display, , int argc char, void display void, learnbyexample copengl introortho, programming learnbyexample copengl,

Share Programming LearnByExample COpenGL IntroOrtho:
Digg it!   Google Bookmarks   Del.icio.us   Yahoo! MyWeb   Furl  Binklist   Reddit!   Stumble Upon   Technorati   Windows Live   Bookmark

Text link code :
Hyper link code:

Also see ...

Permalink
Article In : Computers & Technology  -  Programming