Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. rectangle drawing using OpenGL [modified]

rectangle drawing using OpenGL [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsgame-devtutoriallounge
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 3375334
    wrote on last edited by
    #1

    Hello, i am totally new to OpenGL or windows programming in general. can someone please provide me with some code or tell me how to draw a rectangular clipping window on mouse move with only 2 vertices. So if i click somewehre in upper part of the window and then lower i should get a rectangle which is NOT filled and has dashed lines. i am going to use this rectangle for clipping. thanks

    modified on Friday, February 27, 2009 12:23 AM

    N H 2 Replies Last reply
    0
    • M Member 3375334

      Hello, i am totally new to OpenGL or windows programming in general. can someone please provide me with some code or tell me how to draw a rectangular clipping window on mouse move with only 2 vertices. So if i click somewehre in upper part of the window and then lower i should get a rectangle which is NOT filled and has dashed lines. i am going to use this rectangle for clipping. thanks

      modified on Friday, February 27, 2009 12:23 AM

      N Offline
      N Offline
      Nishad S
      wrote on last edited by
      #2

      Googling can help you to get many OpenGL samples. There are many sites contains OpenGL tutorials. BTW, this is not the forum for OpenGL. You can post it in Graphics Forum.

      - ns ami -

      1 Reply Last reply
      0
      • M Member 3375334

        Hello, i am totally new to OpenGL or windows programming in general. can someone please provide me with some code or tell me how to draw a rectangular clipping window on mouse move with only 2 vertices. So if i click somewehre in upper part of the window and then lower i should get a rectangle which is NOT filled and has dashed lines. i am going to use this rectangle for clipping. thanks

        modified on Friday, February 27, 2009 12:23 AM

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        See OpenGL[^].

        Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups