Results 1 to 7 of 7

Thread: SDL2 Help geting rgb colors

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    I had trouble compiling this didnt like sdl_surface, wanted psdl_surface, so i tried that but on the bpp := line it stops compiling said invalid types got psdl_surface expected longint so I think the translation is right the original code or the variables for the pascal headers im using are a bit different the the c version no idea. Thanks for the translation. I think im going to have to use sdl1 I cant figure out how to get the pixel for getrgb or getrgba. If i figure it out some how I will post my results here.

  2. #2
    PGDCE Developer Carver413's Avatar
    Join Date
    Jun 2010
    Location
    Spokane,WA,Usa
    Posts
    206
    Sdl surfaces are hardware excelerated and not easy to do pixel access perhaps this will provide a better option http://www.programmersranch.com/2014...l-drawing.html

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •