Dear all,
Finally got round to producing these.
https://1drv.ms/u/s!AqibHqCkE1VQgetjcHw ... Q?e=O1UHt3
D3D9 lessons converted from DirectXTutorial.com
Happy Viewing
Regards Ric
D3D9 Lessons
-
- Posts: 208
- Joined: Tue 17 Apr 2018, 21:03
D3D9 Lessons
Kind Regards Ric.
6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
Re: D3D9 Lessons
Thanks, Ric. I'll be interested to have a look through these. A quick look shows you solved the use of arrays of structures! 
I found it crashed when I exited (pressing space terminated the program, but it took BB4W down with it...).
Best wishes,
D

I found it crashed when I exited (pressing space terminated the program, but it took BB4W down with it...).
Best wishes,
D
-
- Posts: 208
- Joined: Tue 17 Apr 2018, 21:03
Re: D3D9 Lessons
Yeah, I can't figure out why they crash on close. They all seem to work first time, but then randomly crash on the next few closures.
Thanks, I did sort the structure issue.
Feel free to investigate the crashing, it must be much of nothing, just can't see it. If you find it I'll update all the files and repost.
Regards Ric
Thanks, I did sort the structure issue.
Feel free to investigate the crashing, it must be much of nothing, just can't see it. If you find it I'll update all the files and repost.
Regards Ric
Kind Regards Ric.
6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
Re: D3D9 Lessons
What does do?
Code: Select all
DEF PROCd3ddev_set
!(^d3ddev{}+4) = !d3ddev%
ENDPROC
-
- Posts: 208
- Joined: Tue 17 Apr 2018, 21:03
Re: D3D9 Lessons
Hi D,
Is sets the pointer to the bb4w structure to the device pointer so that the SYS d3ddev.function, d3ddev% statements work with bb4w structures.
Hope that's said in a clear way
Not sure how else to explain it.
Regards Ric
Ps. In essence it is just to make the code more readable.
SYS d3ddev.Release%, d3ddev%
Would read
SYS !(!d3ddev%+8), d3ddev%
It also relieves the requirement to know what all the offsets are by number.
Is sets the pointer to the bb4w structure to the device pointer so that the SYS d3ddev.function, d3ddev% statements work with bb4w structures.
Hope that's said in a clear way
Regards Ric
Ps. In essence it is just to make the code more readable.
SYS d3ddev.Release%, d3ddev%
Would read
SYS !(!d3ddev%+8), d3ddev%
It also relieves the requirement to know what all the offsets are by number.
Kind Regards Ric.
6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
-
- Posts: 208
- Joined: Tue 17 Apr 2018, 21:03
Re: D3D9 Lessons
Evening all who read this,
DDRM, did you (or anyone else) manage to find what was crashing the D3D9 programs?
Regards Ric
DDRM, did you (or anyone else) manage to find what was crashing the D3D9 programs?
Regards Ric
Kind Regards Ric.
6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
Re: D3D9 Lessons
Been doing my exams - I had a quick look at the code, and it seemed long and complex, so I parked it, I'm afraid. I'll have another look, and see if I can work out what you've done...

D

D
-
- Posts: 208
- Joined: Tue 17 Apr 2018, 21:03
Re: D3D9 Lessons
Hope the exams went/are going well DDRM. If it helps, the fault starts when buffers are introduced.
Regards Ric
Regards Ric
Kind Regards Ric.
6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023