Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DirectX pixel drawing

DirectX pixel drawing

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsdotnetgame-devquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    skaanji
    wrote on last edited by
    #1

    Hi, so far i newer have coded using DirectX i've found some tutorials to draw bitmaps on screen. Is there no function to draw colored 2d pixels? or some way like we did in dos you know poke(0xA000,(y*320)+x,clr):laugh: So i just want to draw 2d graphics with DirectX.

    Z 1 Reply Last reply
    0
    • S skaanji

      Hi, so far i newer have coded using DirectX i've found some tutorials to draw bitmaps on screen. Is there no function to draw colored 2d pixels? or some way like we did in dos you know poke(0xA000,(y*320)+x,clr):laugh: So i just want to draw 2d graphics with DirectX.

      Z Offline
      Z Offline
      ZoogieZork
      wrote on last edited by
      #2

      It's possible to draw single pixels in DirectDraw or Direct3D, but the methods are a bit cumbersome and are generally pretty inefficient. Modern graphics hardware exploits parallelism between the GPU and the CPU, and sending commands to draw pixels one by one carries a lot of overhead. That said, here is an article on drawing single pixels in DirectDraw: http://www.gamedev.net/reference/articles/article538.asp[^] - Mike

      S 1 Reply Last reply
      0
      • Z ZoogieZork

        It's possible to draw single pixels in DirectDraw or Direct3D, but the methods are a bit cumbersome and are generally pretty inefficient. Modern graphics hardware exploits parallelism between the GPU and the CPU, and sending commands to draw pixels one by one carries a lot of overhead. That said, here is an article on drawing single pixels in DirectDraw: http://www.gamedev.net/reference/articles/article538.asp[^] - Mike

        S Offline
        S Offline
        skaanji
        wrote on last edited by
        #3

        Thanks for this link. You're right it seems to be time waste to do that, i think i better use bitmaps to realize my ideas :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups