SDL getPixel

This is a discussion on SDL getPixel within the Game Programming forums, part of the General Programming Boards category; For anyone who knows SDL, is there a getPixel routine, or something like it, that will return the 24bit color ...

  1. #1
    Registered User Nova_Collision's Avatar
    Join Date
    Feb 2003
    Posts
    40

    SDL getPixel

    For anyone who knows SDL, is there a getPixel routine, or something like it, that will return the 24bit color information of a specified pixel on an SDL_Surface?
    When in doubt, empty your magazine - Murphy's Laws Of Combat #7

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    403
    There is code for a getpixel at
    http://sdldoc.csn.ul.ie/guidevideo.php
    there is also a putpixel which may be handy.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SDL and stdio.h
    By a.mlw.walker in forum C Programming
    Replies: 1
    Last Post: 02-06-2009, 06:45 AM
  2. Problems compiling this SDL app
    By Rider in forum C++ Programming
    Replies: 3
    Last Post: 03-27-2007, 12:22 PM
  3. SDL and MinGW Studio
    By Vicious in forum Tech Board
    Replies: 0
    Last Post: 07-30-2004, 09:59 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. sdl in c++
    By Klinerr1 in forum C++ Programming
    Replies: 8
    Last Post: 07-07-2002, 07:46 AM

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