Thread: trying to understand what is being rendered ??

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    14

    trying to understand what is being rendered ??

    Hi,

    I need to take a screenshot using C++, but i want to find out first what it happens when a exercutable like a game engine do for render their images..

    is someone could explain to me in a few words what is done first by the executable ?? i imagine that the executable send the data to a API and then the API with the graphic card renders the image is that what it happens ??

    im trying to figure out if i can catch the pure data that needs to be rendered and is in process by the executable before it goes anywhere ??? someone understand me ?

    if not, my question is more simple, whats the pure way to get what is on my screen with c++, there is anything in kernel mode that could do this and in way to not get hooked by some program ??

    sorry if i cant explain better im a bit noob and dont know exactly what im looking for, but i know what i need to do.

    thanks in advance

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > im trying to figure out if i can catch the pure data
    • In the game, it is a "hill".
    • In the high level graphics library, it's a number of polygons.
    • In the lower level graphics library, it's a larger number of triangles.
    • In the pixel buffer, it's just a whole bunch of pixels.

    All are valid, but it depends on what sort of a view you want to take.

    > whats the pure way to get what is on my screen with c++
    Well the programmatic equivalent of capturing the screen "print screen" style has been discussed before, perhaps searching.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    14
    humm, if im interested in the triangles and polygons ?? wich functions should i use ??

    and the pixel buffer is the more common ??

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Since none of the steps are standard, you would need to be really specific about the various libraries and packages involved.

    Even then, it might not be that easy.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Apr 2007
    Posts
    14
    which packages and librarys would be that ??

    sorry, is that i dont really know where to start ???

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Final Fantasy Movie: Rendered in Real-Time.
    By Cheeze-It in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 08-15-2001, 09:02 PM