flat assembler
Message board for the users of flat assembler.

Index > Windows > basic app for direct graphics access

Author
Thread Post new topic Reply to topic
pabloreda



Joined: 24 Jan 2007
Posts: 99
Location: Argentina
pabloreda
Hi,

I work in a new lang for programing, free, of course, called R4
The first stage is complete, in gcc+SDL I have a compiler/interpreter and a graphics library (in c) , you can see www.reda4.org
I work in the compiler to ASM and I need a basic framework for windows and DexOs www.dex4u.com first
I need fullscreen en 1024x768x32 with direct access to video memory (for make the graphics library in R4 too)
for win I try some examples in russian for use directx in fasm, but not is too clear.
any suggestions ?

thanks !!

Pablo
Post 24 Jan 2007, 14:53
View user's profile Send private message Visit poster's website Reply with quote
pabloreda



Joined: 24 Jan 2007
Posts: 99
Location: Argentina
pabloreda
I try to modify the ddraw example and write the backbuffer

how I get the address of memory for flip ?

I try this

Code:
..in bss section...

VFRAME rd 1024*768

...in code

paint:

mov ebx,VFRAME
mov eax,255 ; blue in 32 bits
mov [ebx],eax ; first pixel ?

cominvk DDSBack,BLT,0,VFRAME,0,DDBLT_WAIT,0
cominvk DDSPrimary,FLIP,0,DDFLIP_WAIT

    


then flash the screen but not pixel show

help, plis !
Post 26 Jan 2007, 12:34
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
http://win32assembly.online.fr/files/dc-ddraw.zip <- A MASM example that doens't show how to access a pointer to the back buffer surface but show how to get a pointer to primary surface, so with some adjustments you should be able to access your desired pointer.
Post 26 Jan 2007, 23:11
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
You can go to my website where you'll find some directdraw examples. However, to recompile the examples you'll have to follow the instructions posted on the website. http://users.egl.net/talktomatt/default.html
Post 27 Jan 2007, 00:37
View user's profile Send private message Reply with quote
pabloreda



Joined: 24 Jan 2007
Posts: 99
Location: Argentina
pabloreda
thanks...
I check later...

hola loco, tenes alguna pagina activa, vi una que estaba vieja...
Post 30 Jan 2007, 16:29
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Quote:

hola loco, tenes alguna pagina activa, vi una que estaba vieja...

Quote:

Hello loco, do you have some active page, I saw one but it was old...
(I don't guarantee that the translation is 1:1 but it's very near)

Mine or about DirectDraw? Anyway I haven't got any active page Razz Unfortunatelly the SDK of DirectX doesn't document DirectDraw anymore, you have to download the SDK for DirectX 7.0 or earlier.

If you were referring to my "blog" I'm considering supporting MSN 8 once for all (even knowing that it's a stupid patch...), since there is people that still download the ultra old patch.

Saludos!!
Post 03 Feb 2007, 23:10
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
LocoDelAssembly: The latest windows SDK has the directdraw docs, and DirectVideo as well
Post 04 Feb 2007, 06:50
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Thanks madmatt, I'll check it out.
Post 04 Feb 2007, 12:02
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
Should warn you that the directdraw examples requires directx 9 to be installed because of the extra d3d9 drawing functions I put into my dll library.
Post 04 Feb 2007, 15:24
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/ddraw7/directdraw7/ddover_7dx3.asp <- Here the docs

About http://www.microsoft.com/downloads/info.aspx?na=40&p=3&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=484269E2-3B89-47E3-8EB7-1F2BE6D7123A&u=http%3a%2f%2fwww.microsoft.com%2fdownloads%2fdetails.aspx%3fFamilyId%3dE15438AC-60BE-41BD-AA14-7F1E0F19CA0D%26displaylang%3den (Windows® Server 2003 R2 Platform SDK ISO Download) there is no docs about DirectDraw, only DirectShow stuff... (which includes some details about DirectDraw but oriented to multimedia streamming)

BTW, there is no DirectVideo info on that SDK neither
Post 04 Feb 2007, 15:47
View user's profile Send private message Reply with quote
pabloreda



Joined: 24 Jan 2007
Posts: 99
Location: Argentina
pabloreda
ok, thanks all
I have a work demo..
I publish in this week or next.. if anybody like see the code..

thanks to all again !!!
Post 05 Feb 2007, 00:01
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.