News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

writing to frame buffer

Started by www.:).com, November 15, 2010, 12:50:11 AM

Previous topic - Next topic

www.:).com

ok I'll do a web search on it, thanks.

Also how would i use bitblt to transfer my buffer to the frame. would it be something like this:

.data
buffer db 64000 dup(0) ; define bytes depending on size of frame

.code
invoke BeginPaint, hWnd, addr st ; st being the paint struct, hWnd being the frame.
invoke bitblt, eax, 0, 0,  320, 200, buffer, 0, 0, SCR_COPY; eax being the return value from Begin Paint -- ??the return value is stored in eax??

got info about bitblt at http://msdn.microsoft.com/en-us/library/dd183370(VS.85).aspx

BogdanOntanu

Quote from: www.:).com on November 16, 2010, 04:59:47 PM
ok I'll do a web search on it, thanks.

Also how would i use bitblt to transfer my buffer to the frame. would it be something like this:

.data
buffer db 64000 dup(0) ; define bytes depending on size of frame

.code
invoke BeginPaint, hWnd, addr st ; st being the paint struct, hWnd being the frame.
invoke bitblt, eax, 0, 0,  320, 200, buffer, 0, 0, SCR_COPY
; eax being the return value from Begin Paint -- ??the return value is stored in eax??

got info about bitblt at http://msdn.microsoft.com/en-us/library/dd183370(VS.85).aspx

No... it is not that GDI kind of BitBlt ... 

It will be one of the methods on one of the interfaces of DirectX that you need to learn and study.

IMHO you are way over your head and probably going in the wrong direction anyway.
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

Farabi

DirectX is not friendly for ASM users, it only nice to C++ programmers. You better switch to OpenGL.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"