Thread: Need Help With Objects!!

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    30

    Need Help With Objects!!

    im trying to make a program that will "draw" certain shapes. I have looked all over for any tutorials on how to do this, but i keep getting dead ends...help please!!
    ADRUMSOLO4U

  2. #2
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    Do you mean in its own window? If so, then it's harder then it sounds, and you'll need more then just c++. If your talking about just in the console window then it's different.

  3. #3
    People Love Me
    Join Date
    Jan 2003
    Posts
    412

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    30
    well, first i want to get rid of the normal window, and add windows XP like properties to it, then add different shapes inside it
    ADRUMSOLO4U

  5. #5
    People Love Me
    Join Date
    Jan 2003
    Posts
    412
    Quote Originally Posted by adrumsolo4u
    well, first i want to get rid of the normal window, and add windows XP like properties to it, then add different shapes inside it
    Learn about Win32 and OpenGL

    You have to go through creating a Window through the Windows class, and connect the rendering context to the device context, and all sorts of other goodies to set up a Win32 window that will support OpenGL.

    It's a lot of stuff to learn, but usually, people don't go through the bother of writing out the code themselves....copying and pasting all the code (as long as you understand most of it) is usually what's done.

    Don't let it all overwhelm you.
    Last edited by Krak; 03-01-2005 at 07:49 PM.

  6. #6
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    To do that you will have to learn a graphics API, being a D3D lover myself I would recommend DirectX, but of course there will be differing opinions

  7. #7
    Registered User
    Join Date
    Aug 2004
    Location
    San Diego, CA
    Posts
    313
    Why not just learn the Windows API first, and then learn OpenGL or DirectX on top of it? Then you'll know more about what's going on "under the hood" (so to speak).

  8. #8
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    GDI and GDI+ (built-in Windows graphics) work fine for most (simple) purposes, even small-scale 2D games.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. most efficient way to write filestream objects?
    By darsunt in forum C++ Programming
    Replies: 3
    Last Post: 01-26-2009, 05:17 PM
  2. Replies: 60
    Last Post: 12-20-2005, 11:36 PM
  3. Question about cout an stack object?
    By joenching in forum C++ Programming
    Replies: 8
    Last Post: 05-08-2005, 10:10 PM
  4. chain of objects within pop framework help needed
    By Davey in forum C++ Programming
    Replies: 0
    Last Post: 04-15-2004, 10:01 AM
  5. array of objects?
    By *~*~*~* in forum C++ Programming
    Replies: 4
    Last Post: 05-31-2003, 05:57 PM