Thread: graphics stuff

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    29

    graphics stuff

    I want to do very simple graphs.
    Basically I want to be able to create dots where I need to. How do I go about graphics with c++?
    (do I have to use openGL?)

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Well you can start by saying which OS/Compiler you're using (today)
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User xxxrugby's Avatar
    Join Date
    Jan 2005
    Posts
    178
    What do you think about language!
    Code:
    Mathematica
    Or for werry simple graph about
    Code:
    Excel
    Sorry for spelling errors, not English!
    xxxrugby: "All Human Race Will Die From My Hand!"
    xxxrugby: "We are all philosophers, when question is about politics!"

  4. #4
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    No you can use DirectX, GDI, etc...

    More info is required I'm afraid before we can help you.

  5. #5
    Registered User
    Join Date
    Jan 2005
    Posts
    8
    You should check out Allegro . It's cross-platform and very easy to use. It's intended as a game programming library, but of course you can use it for any type of application that requires graphics or sound or such.

  6. #6
    Registered User
    Join Date
    Feb 2005
    Posts
    29
    I am using dev c++ with windows XP

    I want to be able to do graphs which are
    y=mx+b

    so curves and such.

  7. #7
    Handy Andy andyhunter's Avatar
    Join Date
    Dec 2004
    Posts
    540
    Are you talking windows or console programming?
    i don't think most standard compilers support programmers with more than 4 red boxes - Misplaced

    It is my sacred duity to stand in the path of the flood of ignorance and blatant stupidity... - quzah

    Such pointless tricks ceased to be interesting or useful when we came down from the trees and started using higher level languages. - Salem

  8. #8
    Registered User Scribbler's Avatar
    Join Date
    Sep 2004
    Location
    Aurora CO
    Posts
    266
    You may consider the SDL Libraries. Portable, simple, uses OpenGL.

  9. #9
    Registered User
    Join Date
    Feb 2005
    Posts
    29
    console application

  10. #10
    ---
    Join Date
    May 2004
    Posts
    1,379
    You cannot place pixels in a console application.
    A simple solution is using SDL or Allegro. Other solutions are GDI, DirectX or OpenGL (As stated above)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Turtle Graphics, how does it work?
    By freddyvorhees in forum C++ Programming
    Replies: 15
    Last Post: 08-28-2009, 09:57 AM
  2. Graphics error ---Please Help!!!
    By bob5845 in forum C++ Programming
    Replies: 1
    Last Post: 04-25-2002, 08:18 PM
  3. CMU Graphics Library
    By SneakyFungus in forum C++ Programming
    Replies: 0
    Last Post: 12-28-2001, 03:04 PM
  4. Im a Newbie with a graphics design problem for my simple game
    By Robert_Ingleby in forum C++ Programming
    Replies: 1
    Last Post: 11-23-2001, 06:41 PM
  5. visual c graphics
    By aristotle1 in forum C Programming
    Replies: 1
    Last Post: 11-16-2001, 07:35 PM