Sprite Placing

This is a discussion on Sprite Placing within the C++ Programming forums, part of the General Programming Boards category; Is there a function for putting a bitmap (or otherwise) picture file on the screen in dos programming? If there ...

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    28

    Sprite Placing

    Is there a function for putting a bitmap (or otherwise) picture file on the screen in dos programming? If there is, how do you use it?
    ---Rainer
    Digital pimp, hard at work

  2. #2
    Peace
    Join Date
    Aug 2001
    Posts
    1,510
    There is not. In Win32, yes. In DOS, no.


    See wotsit.com for a list of file formats, and see the FAQ here for how to use it.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    28
    that blows, now i have to learn win32 programming.
    ---Rainer
    Digital pimp, hard at work

  4. #4
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Is there a function for this in SDL or Allegro?
    Away.

  5. #5
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    To qoote myself from a few days ago...

    The problem is... Graphics are not part of the ANSI/ISO C++ standard. Most compilers have at least some graphics capabilities, but their library functions are all different.

    All Windows compilers have graphics functions which are part of the Windows API. There are 3rd party graphics libraries such as OpenGL.

    So, the graphics experts here (not me) need to know what compiler and operating system you are using, and the format (jpeg, etc) of the scenery image you are trying to display.

    In general, bitmap images are "easier" to display than GIF, or JPEG images which are encoded/compressed.

    There is some graphics information here in the Programming FAQ. There are some OpenGL tutorials here.
    [EDIT]
    The quote function killed the links above... Graphics Information from the FAQ and the OpenGL Tutorials

    BTW - There is no sound or mouse interaction in standard ANSI/ISO C++ either. C++ is a powerful language, but the standard part of the language has a very limited user interface... This was done to make the "standard part" of the language "portable". (You can compile standard C++ to run on just about any computer.)
    Last edited by DougDbug; 08-12-2003 at 08:20 PM.

  6. #6
    Registered User
    Join Date
    Aug 2003
    Posts
    28
    I am using Bloodshed Dev C++ v4.0.1 with "conio.h" cut-and-pasted from a different compiler, if that helps. I don't think it has any of the windows-related libraries, but I'm about to buy a book on win32 programming, and that will probably come with a compiler that DOES have them. By the way, in ANSI/ISO C++ you can put a "\a" in your cout statements to make a little beep noise, but thats the only sound i know of.
    ---Rainer
    Digital pimp, hard at work

  7. #7
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Yeah, Dev-C++ does do windows. I don't use it though, so I don't know how to configure it.

    WARNING - Windows programming is freekin' complicated... Not for beginners. You can take a look at Sunlight's Tutorials if you want to get an introduction.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX 9 sprite issue
    By maxthecat in forum Game Programming
    Replies: 9
    Last Post: 05-18-2006, 05:04 AM
  2. SDL question (long)
    By yahn in forum C++ Programming
    Replies: 0
    Last Post: 04-16-2006, 09:46 PM
  3. GDI sprite (Win32 API)
    By fiff in forum C++ Programming
    Replies: 3
    Last Post: 06-22-2005, 04:08 PM
  4. Replies: 3
    Last Post: 05-12-2003, 06:49 PM
  5. Sprite ?
    By Traveller in forum Game Programming
    Replies: 13
    Last Post: 08-23-2002, 05:31 PM

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