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:
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:.
are still there? i thought he delete them long time ago... :shock: :biggrin:
A couple are in this forum ( SWGPTG 01 and 02)
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)
Here it is the 64 bits version of this program. .exe and .asm in the .zip attached. :icon14:
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:
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