Like Tree1Likes

Basic PC graphics

This is a discussion on Basic PC graphics within the Game Programming forums, part of the General Programming Boards category; It's impossible to gain direct access to video memory from user mode unless a driver allows it - which it ...

  1. #16
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    It's impossible to gain direct access to video memory from user mode unless a driver allows it - which it doesn't.

  2. #17
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,266
    Something to add on the GDI front: technically it can be hardware accelerated. When a graphics driver is loaded it is queried for a few function pointers for ops such as BitBlt, drawing lines, etc. If the driver does not supply a given function it is mapped to the default software-based function.

    Those of you who weren't in your mother's dreams/nightmares in 1992 will recall the emergence of "Windows accelerator" cards. This was the first instance of graphics drivers providing hardware-specific functions for GDI. Under Windows 3.1, no less!

    However, since Vista I believe that this is no longer used. All GDI drawing ops are in software.
    Last edited by SMurf; 11-08-2011 at 01:21 PM. Reason: Windows accelerator, not graphics accelerator! :o

  3. #18
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    Those of you who weren't in your mother's dreams/nightmares in 1992...
    Oh I was in her nightmares and her dreams since I graduated high school that year. I had one of those early Windows accelerator cards. At the time I was reading books that were talking about using specific pieces of hardware to do graphics both 2D and 3D. I thought to myself that one would never buy a card that just handled graphics. Oh how wrong I was.

    ever, since Vista I believe that this is no longer used. All GDI drawing ops are in software.
    Do you know if this is true for GDI+?

  4. #19
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    22,888
    GDI+ is not hardware accelerated under neither Vista nor 7.
    GDI is partially accelerated in 7, but is not accelerated in Vista.
    Source: Wikipedia
    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.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Basic Graphics in C++
    By JCML in forum C++ Programming
    Replies: 1
    Last Post: 09-28-2010, 07:32 PM
  2. Best way of drawing basic graphics
    By Jelte in forum C++ Programming
    Replies: 3
    Last Post: 05-18-2010, 06:15 PM
  3. Basic Graphics Libraries (C)
    By mkylman in forum Game Programming
    Replies: 15
    Last Post: 02-17-2010, 10:06 PM
  4. Basic Graphics programming in C, please help
    By AdRock in forum Game Programming
    Replies: 3
    Last Post: 03-24-2004, 11:38 PM
  5. Basic Graphics Tutorials ?
    By Syme in forum Game Programming
    Replies: 2
    Last Post: 12-07-2001, 09:00 PM

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