Posts

Draw Squares in OpenGL with Size Option and Sound

Rajeev
Squares can be easily easily drawn in OpenGL, using the free open computer graphics libraries.  OpenGL graphics had alot of potential ways to do things. You can go with traditional Method or choose better innovative one. Today we are going to see a computer graphics c++ program in which we are going to draw squares. Previously we have seen how to draw a circle in OpenGL , now it time to draw square in OpenGL. The program which we are going to see not only draw square but allow to increase or decrease the size of the squares. There is an additional component added to it, that the sound. The squares are formed with left click of mouse while right click give option for increment/decrement size . Sound is auto play when ever squares are formed. Program is not much lengthy and also very much easy to understand. There is draw_square function in which the functionality  has been defined. It also contain the codes for the sound play. Rest of the program contains the same hello world stuffs (p…

9 comments

  1. Shophia Rajan
    where is the pic?
  2. nikhil hiremath
    sir plzzz can u mail me the code to this id

    nikhil.hiremath425@gmail.com
  3. aashu kk
    Dear team disqus i sincerely request you to mail the code of this pong game to my mail id i.e., aashukk2@gmail.com
  4. Anjan Krishna
    where is the code sir
  5. Mushtaq Kamboh
    Dear Sir i sincerely request you to mail the code of this pong game to my mail id is ibrahim.kamboh1@gmail.com
  6. Shashi
    Dear sir i requesting you to post the code of hare and tortoise to my mail id shashicstar@gmail.com
  7. OpenGL Projects
    Disgus has no role in site, we use their comment system only
  8. OpenGL Projects
    Buy this Projects at Rs 500 only with full documentation and don't leave you mail in comment requested to send you.


    We are time constraint so we can't reach each of you via email.
  9. Olivia H
    Great bllog I enjoyed reading