Graphics Mode!

This is a discussion on Graphics Mode! within the Game Programming forums, part of the General Programming Boards category; Originally posted by Perica ...it's just too much work to get it working with Visual C++ 6. Have a look ...

  1. #16
    Registered User Bieh's Avatar
    Join Date
    Sep 2002
    Posts
    83
    Originally posted by Perica
    ...it's just too much work to get it working with Visual C++ 6.
    Have a look here for some info on how to set up Allegro in VC++.
    "It always takes longer than you think, even when you take Hofstadter's Law into account."
    -Hofstadter's Law

    Bored? Try my game SpaceWars , made in Allegro and VC++
    or see my new game Redoubt , made in OpenGL and VC++

  2. #17
    Registered User rmullen3's Avatar
    Join Date
    Nov 2001
    Posts
    330

    ...

    Believe me, writing your own graphics code is millions of times harder than getting a nice little API like Allegro to work with MSVC.

  3. #18
    Registered User
    Join Date
    Sep 2002
    Posts
    70
    I got the precompiled dynamically linked librarys, (DLL's) EXCEPT i don't know how to use them, somebody please help out

    Please, somebody tell me how to load the DLL, so i can just use the functions normally.

    Please, Help out.

    Ciao.
    Last edited by Perica; 11-22-2002 at 05:59 PM.

  4. #19
    Registered User
    Join Date
    Sep 2002
    Posts
    70
    IT WORKS IT WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    I GOT ALLEGRO TO WORK WITH VC++ YEAHHHHHHHHHH!!!!!!!!!

  5. #20
    Registered User
    Join Date
    Sep 2002
    Posts
    70
    Hey,

    How do i Put a Pixel to the screen using Allegro??

    Ciao

  6. #21
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    by reading the allegro docs.

  7. #22
    Registered User
    Join Date
    Sep 2002
    Posts
    70
    Ok i will,

    Also one more thang, How do i automatically include the library, from the source code, i think the #pragma directive is surposed to be used, but i have never used #pragma and i don't know what if does, and my C++ books don't cover it, so could somebody help out.....

    Ciao

  8. #23
    Registered User
    Join Date
    Sep 2002
    Posts
    70
    Hey,

    I want to change the names of the functions of allegro, so i can remember them better.

    How do i do this, i use the msvc dll thingy, but i statically link it, i change the files in the src folder, but when i make the library again, it stays the same, What do i do???

    Please help.....Ciao

  9. #24
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    This may work:

    #define YourFunctionName AllegrosFunctionName
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  10. #25
    Registered User
    Join Date
    Sep 2002
    Posts
    70
    Hey,

    I'd rather not do that, and i don't think it would work, i haven't tried it, but i don't think it would work.

    Because i don't think it would define this:

    #define Set_ColourDepth() set_color_depth()

    or something simmilar, because of the function's '()' (brackets)

    Does anybody know how to compile it so it uses changes made in the src/ folder.

    Ciao

  11. #26
    fry
    fry is offline
    Registered User fry's Avatar
    Join Date
    Mar 2002
    Posts
    128
    Instead of
    Code:
    #define Set_ColourDepth() set_color_depth()
    use
    Code:
    #define Set_ColourDepth set_color_depth
    just get rid of the brackets, and your fine. But i really dont see why you are so eager to change the names of the functions. It will make it much harder for people to help you with you code later, as they wont know what you functions do, as you have them spelt you own way. Out of curiosity, whats your reasoning for this?

    edit: You could also keep the brackets, but you would have to also insert all the variables passed into the function, which is time consuming. Just letting you know that it would be possible, though
    IDE: Dev C++ 5
    Lib: Allegro
    OS: Windows 2000

  12. #27
    Registered User
    Join Date
    Sep 2002
    Posts
    70
    Yeh,

    I figured that out, BUT i want to change the actuall names in the library.

    It just bugs me, i want the names to be set out my way ;D

    Ciao

  13. #28
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by Perica
    BUT i want to change the actuall names in the library.
    You can't. At least not without stealing the source and recompiling it.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  14. #29
    Registered User
    Join Date
    Sep 2002
    Posts
    70
    That's what i want to do, i want to recompile it, BUT HOW??

    And stealing, such a harsh word, i like to call it 'borrowing'

    Nah joking, jokin.

    I will put Allegro in my game's credits

    So, can anybody help??

    Ciao

  15. #30
    fry
    fry is offline
    Registered User fry's Avatar
    Join Date
    Mar 2002
    Posts
    128
    Never heard of anyone trying it before. I'm pretty sure you can get versions of allegro to compile from sourceforge.net (Go to allegro.cc to find the exact link).
    Kind of picky, arent you hehe
    IDE: Dev C++ 5
    Lib: Allegro
    OS: Windows 2000

Page 2 of 3 FirstFirst 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. using gotoxy() in graphics mode
    By sureshkumarct in forum C Programming
    Replies: 1
    Last Post: 01-08-2007, 12:18 PM
  2. Handling mouse in graphics mode in Turbo C/DOS
    By sureshkumarct in forum C Programming
    Replies: 2
    Last Post: 12-24-2006, 08:36 AM
  3. Replies: 1
    Last Post: 07-28-2003, 12:56 PM
  4. text input in graphics mode
    By jamie in forum C++ Programming
    Replies: 1
    Last Post: 03-17-2003, 09:33 PM
  5. Input a string in graphics mode?
    By Vegettų in forum C++ Programming
    Replies: 3
    Last Post: 03-08-2002, 05:34 PM

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