Thread: C Graphics

  1. #1
    Registered User
    Join Date
    Nov 2004
    Location
    USA
    Posts
    516

    C Graphics

    I greatly despise this, but for my university course, i have to learn graphics programming using DOS and TurboC 3.0 So i'm assuming this is mode 13h. I have seen most websites like gamedev and google-d for tutorials, but most tutorials cater to directX or opengl. The tutorials i found on graphics using dos were pretty vague and i am not sure which one i should start out with. If someone has any good links that they've bookmarked or from where they started out, please guide me.
    Code:
    >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.

  2. #2
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    The Brackeen website I think is the longstanding top-notch 13h VGA graphics tutorial website.

    I used it quite extensively to learn 13h graphics back when I was in high school, and the tutorials are actually written VERY well. I still have all the libraries I wrote using those tutorials.

    They should help you out a lot.
    My Website

    "Circular logic is good because it is."

  3. #3
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Hehe. Almost forgot about that site. I didn't even know it was still up. Very good site.

  4. #4
    Registered User
    Join Date
    Nov 2004
    Location
    USA
    Posts
    516
    Thank you for the link
    Code:
    >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.

  5. #5
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Why would you need to learn it, though? You have something or someone forcing you do it, I'm guessing, since there is no way, no how, that these ancient ways are going to be used today.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #6
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Claim you're using Vista64 and you can't run 16-bit apps
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  7. #7
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    With Vista64 you could claim you can't run any app. j/k


    Vista: Would you like to run <insert_app>?
    User: YES.

    Vista: I'm sorry you do not have permission to access <insert_app>
    User: .... <blood_pressure_increases>

    Vista:Would you like to grant yourself permission to run <insert_app>?
    User: .... No I want to sit here all day answering stupid questions.

    Vista: Please Wait...........
    User: ....

    Vista: Would you like to run <insert_app>?
    User: YES. Haven't we been over this already?

    Vista: I'm sorry you do not have permission to access one of the files this application needs.
    User: .... <anger_begins>

    Vista: Would you like to grant yourself access to this file?
    User: .... <ponders_using_linux>

    Vista: Granting access to this file could be potentially harmful to your computer.
    User: ....

    Vista: Are you sure you wish to perform this action?
    User: YESSSSSSSSSSSSSSSSSSSSSSSSSSSS.

    Vista: I'm sorry you do not have sufficient rights to perform this action.
    User: aghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh!!!!!

    User: Format C:
    Vista: Are you sure you wish to format this drive?

    User: YES.
    Vista: You do not have sufficient privileges to format this drive.

    User: Turn power off. Go get XP Pro or Linux and perform low level BIOS format of drive.


    The wonderful new Windows Vista experience. Why use an operating system that actually runs programs when you can use one that tries to spark up a conversation for every action you do. What a great OS.
    Last edited by VirtualAce; 03-08-2008 at 04:43 PM.

  8. #8
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Linux seems far worse in this regard. Everytime you access system settings, you need the root password. All the time you must enter the root password as opposed to Vista you can just click OK.
    Not to mention that specific parts need root privileges to access, so you have to run the filemanager as root. I can't say Linux is much better... not from my first experience, at least.
    Not to mention installing things is a nightmare
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  9. #9
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    pfft

    Code:
    emerge <name>
    done

    At least I can gain root privileges and then just do what I need before I drop them again. There's nothing wrong with requiring root privileges for system tasks.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    No, there's nothing wrong except it asks every time I access yast, so it gets kind of repeating.
    Command lines are one thing, but GUI is one thing. The GUI asks every time you click on something.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Bad GUI. Choose another.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  12. #12
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Hmmm. Yes, it seems KDE is much better than Gnome. Sweeter, too.
    Installation woes still plague Linux, however...
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  13. #13
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    True, but that won't go away entirely until Linux gets the same support from HW manufacturers as Windows.

    Eh, not the right thread for this.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  14. #14
    Registered User t3chn0n3rd's Avatar
    Join Date
    Dec 2007
    Location
    kansas city
    Posts
    25
    Anything similar to Direct X in linux?

  15. #15
    Registered User
    Join Date
    Nov 2004
    Location
    USA
    Posts
    516
    Anything similar to Direct X in linux?
    OpenGL - It's cross platform

    Why would you need to learn it, though? You have something or someone forcing you do it, I'm guessing, since there is no way, no how, that these ancient ways are going to be used today.
    Yes i am being forced

    No, there's nothing wrong except it asks every time I access yast, so it gets kind of repeating.
    Command lines are one thing, but GUI is one thing. The GUI asks every time you click on something.
    Chuck Gnome, use KDE Chuck SUSE, use Ubuntu !

    @Bubba -> Thank you for the idea
    Code:
    >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.

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