The MASM Forum

General => The Workshop => Topic started by: felipe on December 24, 2018, 01:20:21 PM

Title: pixel by pixel
Post by: felipe on December 24, 2018, 01:20:21 PM
here it's a pixel by pixel made grid... :bgrin:
.asm and .exe attached... :icon14:
i think drawing (or painting) pixel by pixel is pretty fun, though i know, not pretty fast... :idea:
Title: Re: pixel by pixel
Post by: HSE on December 25, 2018, 01:32:22 AM
Hi Felipe!!

You missed the forum section.

Go to forum>projects>Game development.

You can to study Caballero tutorials, don't lost time with SetPixel  :biggrin:.
Title: Re: pixel by pixel
Post by: felipe on December 25, 2018, 02:00:52 AM
are still there? i thought he delete them long time ago... :shock:  :biggrin:
Title: Re: pixel by pixel
Post by: HSE on December 25, 2018, 02:19:51 AM
A couple are in this forum ( SWGPTG 01 and 02)
Title: Re: pixel by pixel
Post by: daydreamer on December 29, 2018, 05:17:33 PM
felipe here is d3d way of doing things,not everything needs to be trianglestrip,trianglelist,trianglefan
https://docs.microsoft.com/en-us/windows/desktop/api/d3d9/nf-d3d9-idirect3ddevice9-drawprimitive (https://docs.microsoft.com/en-us/windows/desktop/api/d3d9/nf-d3d9-idirect3ddevice9-drawprimitive)
Title: Re: pixel by pixel
Post by: felipe on January 15, 2019, 03:09:30 AM
Here it is the 64 bits version of this program. .exe and .asm in the .zip attached.  :icon14:
Title: Re: pixel by pixel
Post by: felipe on January 16, 2019, 10:58:46 AM
there's a little error in the 64 bits version it says:

endprogram:
            mov    qword ptr rcx,msg[16]                       ; wparam.
            call    ExitProcess


and should be:


endprogram:
            mov    qword ptr rcx,msg[12]                       ; wparam.
            call    ExitProcess


:idea:  :redface:
Title: Re: pixel by pixel
Post by: jj2007 on January 16, 2019, 02:16:06 PM
Quote from: felipe on January 16, 2019, 10:58:46 AM
there's a little error

The little error could have been avoided by using a so-called "STRUCTURE", e.g. as mov ecx, msg.wparam