flat assembler
Message board for the users of flat assembler.

Index > Windows > 7 examples from win game prog for dummies

Author
Thread Post new topic Reply to topic
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 10 May 2004, 15:38
In learning windows programming with FASM for windows, I've converted 7 examples from Windows Game Programming for dummies: Chapter 5.
See the readme.txt file for some minor instructions for their use.
I've tried these on WindowsXP and would like to know how they work on
older windows OS'es. Enjoy!
Post 10 May 2004, 15:38
View user's profile Send private message Reply with quote
coconut



Joined: 02 Apr 2004
Posts: 326
Location: US
coconut 11 May 2004, 00:33
looking good on win2k sp4
Post 11 May 2004, 00:33
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 11 May 2004, 01:20
very nice indeed

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 11 May 2004, 01:20
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 11 May 2004, 05:42
Thanks, These are just simple examples Wink . Hopefully will be able to get some DirectX samples up shortly, but, have to convert directdraw/directsound cpp includes to Fasm windows format Shocked . This could take a little while Crying or Very sad , unless someone already has done it, and knows where to download them. Wink . Oh yes, and some more sophisticated windows examples as well Very Happy !
Post 11 May 2004, 05:42
View user's profile Send private message Reply with quote
i-don



Joined: 18 Jul 2003
Posts: 66
i-don 11 May 2004, 18:49
I was posted a TASM D3DRM example files at this thread not long ago:

http://board.flatassembler.net/topic.php?t=1061

Probably converting from TASM is mush easier than from cpp. Hope it's helps... Wink
Post 11 May 2004, 18:49
View user's profile Send private message Reply with quote
aaro



Joined: 21 Jun 2003
Posts: 107
Location: hel.fi
aaro 11 May 2004, 19:04
Post 11 May 2004, 19:04
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 11 May 2004, 19:08
Looks Good, thanks. I may convert the includes for older windows os's. But, right now I'm concentrating on DX8 and DX9 includes only. The example shouldn't be to difficult to convert though.
Post 11 May 2004, 19:08
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 11 May 2004, 19:16
So aaro wrote the DX9 include interface! Cool correct? Very Good job! Wink I'm using these as a template to convert a lot of the rest of the DirectX includes, I have more time now so shouldn't be to long now before we have good DX includes for fasm. Also have a windows 2000 black book that says a lot about processes, threads, fibers, communications, etc. which means converting even more windows include files. Rolling Eyes Of course I'm getting way ahead of myself here. Shocked
Post 11 May 2004, 19:16
View user's profile Send private message Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex 11 May 2004, 19:20
madmatt,

Nice workImage

_________________
Code it... That's all...
Post 11 May 2004, 19:20
View user's profile Send private message Visit poster's website Reply with quote
aaro



Joined: 21 Jun 2003
Posts: 107
Location: hel.fi
aaro 11 May 2004, 22:12
madmatt, yes i did, but i'm thinking maybe i should change it.. Now it might be little bit too high level.. Wich one do you prefer:
Code:
  .data
       OBJECT D3D, IDirect3D9
      .code
       D3D CreateDevice, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, [hWnd], D3DCREATE_HARDWARE_VERTEXPROCESSING, eax, D3DDevice
    

or:
Code:
     .data
       D3D     IDirect3D9
  .code
       comcall D3D, CreateDevice, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, [hWnd], D3DCREATE_HARDWARE_VERTEXPROCESSING, eax, D3DDevice
    

I think even nicer would be this comcall D3D.CreateDevice, etc., but i'm not quite sure if this can be done..

And you'r talking about converting more of windows header/includes check this first: http://board.flatassembler.net/topic.php?t=1537 tell me if there's something missing and i'll add those. Thanks
Post 11 May 2004, 22:12
View user's profile Send private message Reply with quote
i-don



Joined: 18 Jul 2003
Posts: 66
i-don 11 May 2004, 22:53
madmatt wrote:
I've tried these on WindowsXP and would like to know how they work on older windows OS'es.


I'm using P3, Win95B with DX7. Your Executable example freeze my computer once it display a window with black background color of it client area.

-----------

I'm hoping someone would able to make an example for d3d for DX6 or DX7 and then goes upward. I think it would very easy for beginner catch up and learning from the very basic and the lowest version of D3D. I've tried use DX8 but all my favorite old games losing it video media visuality in game mode. So, I used back DX7.

I guess, there still millions people using WIn95/98 with DX7 or at least on their second machine.

just my 2 cents.
Post 11 May 2004, 22:53
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 12 May 2004, 06:59
Hi, idon. These examples do not use any directx functions. Did every example crash your system? Do the fasm examples work good on your system. Not sure why it would be crashing your system.
Post 12 May 2004, 06:59
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 12 May 2004, 07:02
Hi aaro, The first one is just fine. When using directx, a little extra high level wouldn't hurt at all.
Post 12 May 2004, 07:02
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 15 May 2004, 16:00
Hi aaro, finally downloaded the windows includes that you converted, Good Job!! Is this a replacement for all the includes included with fasm? Have you converted more directx includes, or do you plan to in the near future?
Post 15 May 2004, 16:00
View user's profile Send private message Reply with quote
aaro



Joined: 21 Jun 2003
Posts: 107
Location: hel.fi
aaro 17 May 2004, 12:54
Made those includes for the next version of my stdlib(http://board.flatassembler.net/topic.php?t=1107) but you can use them to replace includes that come with fasm. There should be all of the equates and structures that fasm includes have plus many more.

And no i haven't converted more of the directx headers and i think it will take a while before i have enought time to convert them Sad But when i have i'll post them here.
Post 17 May 2004, 12:54
View user's profile Send private message 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.