Graphics

This is a discussion on Graphics within the Game Programming forums, part of the General Programming Boards category; What is the code to show a graphic?...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    20

    Question Graphics

    What is the code to show a graphic?
    Last edited by drdroid33; 02-02-2002 at 06:22 PM.

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    could you ask a more 'general' question?

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    20

    Exclamation Graphic

    How do you show graphics, in c++?

  4. #4
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    well, there are a LOT of ways... there can be a LOT! of code.
    What do you want the graphics for?

    Dos, Windows, Mac, Linux, GDI, Everything,ect,ect...

    what do you want to do with them?

    Web stuff, browsers, games, paint programs, 3D editors?

    http://www.gamedev.net

    might be of some use if you don't know what to do, ad are loking for games...

    http://www.flipcode.com is more general.
    Last edited by no-one; 02-02-2002 at 06:56 PM.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  5. #5
    Registered User
    Join Date
    Feb 2002
    Posts
    20

    Reply

    Windows. I want to make a game.

  6. #6
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    ok, you need to decide what your gonna use to make it,

    OpenGL, is a Very Powerful Graphics only API

    Direct-X, is a Powerful API that has EVERYTHING you need to make a windows game all in one place,

    but befoe either of them you have to learn Win32...

    do a search on the forums for good windows or good win32 books.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  7. #7
    Registered User
    Join Date
    Dec 2001
    Posts
    421
    if you want help.. then ASK A DIRECT QUESTION!

    People are just going to get annoyed with you when you come in and say things like "help me", "i want to make a game", or "please tell me how to code halflife".

    go and learn to program, then come back with specific questions when you have problems.
    Quidquid latine dictum sit, altum sonatur.
    Whatever is said in Latin sounds profound.

  8. #8
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    excuse me, but that's like telling someone to hold still while you throw darts at them!
    To put it simple ddroid33, first you should learn C++ before you start with graphics. I'm guessing you're new, right? I started programming two years ago with the thought of making a game really fast. Didn't happen until 9 months later, when I figured out how to show monochrome display bitmap 1x1. I cheered forever. Anyway, I hate it when people just tell you how wrong you are and don't give you anything. If you want to display a picture, it must depend on your compiler. If you are using a windows Compiler, like Visual C++ or Dev-C++, then you must learn win32 programming. It really sucks if you don't know C++. If your compiler is DOS, like DJGPP or Borland Turbo C++, then it might be alittle easier to put a picture on. Hmmm, go to http://www.shdon.com and go under their graphics section. Download how to display a bmp or GIF. If you want to display the bitmap then you will have to use an extremly simple bitmap editor, like microsoft paint. Then use the code from shdon.com, and use it's LoadBMP() function to display the bitmap. Atleast I think that's the function for loading the Bitmap. You'll figure it out once you look at main(). Good Luck Grasshopper.

  9. #9
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    ...Direct-X, is a Powerful API that has EVERYTHING you need to make a windows game all in one place,

    but befoe either of them you have to learn Win32...

    ...and also learn a bit about COM.

  10. #10
    Bobish
    Guest
    You could learn allegro and then you wouldn't have to learn any of that os specific stuff though its still good to know it.

  11. #11
    Registered User Invincible's Avatar
    Join Date
    Feb 2002
    Posts
    210

    Exclamation This article...

    is a must read for anyone brand new to game development.

    http://www.gamedev.net/reference/des...es/default.asp
    "The mind, like a parachute, only functions when open."

  12. #12
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    well whatever you do, just get that video address and have at it... any way you can... and realize you've got the power to control your display... and do it to it's fullest... [and see my behold link in my sig willya? thanks! ] i hope you are inspired and take it far...
    hasafraggin shizigishin oppashigger...

  13. #13
    Registered User compjinx's Avatar
    Join Date
    Aug 2001
    Posts
    214

    Hmmm...

    Allegro is the way to go, it's so easy.
    it takes care of all the complex stuff for you.
    "The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
    Eric Porterfield.

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 Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 08:33 PM
  3. egavga.bgi problem
    By sunil21 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 09-22-2003, 05:06 PM
  4. Graphics Devices and Cprintf clash
    By etnies in forum C Programming
    Replies: 6
    Last Post: 05-09-2002, 11:14 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21