DX9 Subsystem v0.5
DX9 Subsystem v0.5
Hi
As you maybe already noticed, I am developing a DX9 Subsystem for PureBasic.
For now it supports the complete Sprite,Sprite3D,Keyboard,Mouse,Joystick and Sound Library.
Link:http://stefanmoebius.de/DX9S_0_5.zip (To install it, simply extract it into your PureBasic folder.)
Sourcecode:
http://stefanmoebius.de/Files/DX9S_Src_3_07_07.zip
regards
Stefan
As you maybe already noticed, I am developing a DX9 Subsystem for PureBasic.
For now it supports the complete Sprite,Sprite3D,Keyboard,Mouse,Joystick and Sound Library.
Link:http://stefanmoebius.de/DX9S_0_5.zip (To install it, simply extract it into your PureBasic folder.)
Sourcecode:
http://stefanmoebius.de/Files/DX9S_Src_3_07_07.zip
regards
Stefan
Last edited by S.M. on Sun Jan 27, 2008 4:41 pm, edited 9 times in total.
-
- Enthusiast
- Posts: 276
- Joined: Fri Apr 25, 2003 5:06 pm
- Location: Gummersbach - Germany
- Contact:
Good work! Looks very promising! Thanx for the accelerated DisplayTranslucentSprite()! It would be nice to have a
Display(Transparent)Sprite with a brightness (0-255) parameter, just like DisplayTranslucentSprite() but without merging with the background.
I'll do some tests tonight using my game, it uses lot's of 2D Spritecommands!
Display(Transparent)Sprite with a brightness (0-255) parameter, just like DisplayTranslucentSprite() but without merging with the background.
I'll do some tests tonight using my game, it uses lot's of 2D Spritecommands!
The Human Code Machine / Masters' Design Group
For now you must use PeekS(KeyboardInkey())THCM wrote:Purebasi Line 1271: Can't mix strings with numerical values
I will correct this bug later, when I use no DLL anymore.
This happens if you use other libraries(Mouse/Joystick/Sound) with the DX9 subsystem, right ?Unresolved external symbol '_PB_IsScreenActive'
I will look whether I can correct this, otherwise you must wait until I wrote the Lib on my own.
@Shannara
I probably write a extension library(which will include such a command), but first I have to improve the standard Libraries.
Ok, I removed the bug now.While compilation I'll get this error:
Purebasi Line 1271: Can't mix strings with numerical values

I added another example which show how this works.any chance to add in the a spritecolor(color, color, color, color) command, to be able to color the four corners of a sprite?
Link:http://www.stefanmoebius.de/DX9S.zip
new version:
Link: DX9S v0.1 (395 KB)
@SFSxOI
It uses Direct3D 9 for the Sprite and Sprite3D Lib. For the Mouse and Keyboard Lib it uses DInput 8.
Link: DX9S v0.1 (395 KB)
It would be nice if you could test it a bit, because it still has many bugs.(especially the new Mouse Lib is almost untested.)Changes since version 0.08:
- Added: complete Mouse Library
- Corrected: small bug in SpriteDepth()
- Corrected: bug in ClipSprite()
- Corrected: bugs in CopySprite()
- Corrected: Bug in the texture manager if the device needs to be recreated
- Optimized: SpriteOutput()
- Improved: ChangeGamma() works now
Changes since version 0.06:
- Added: support for #PB_Sprite_Alpha
- Added: Command ChangeAlphaIntensity()
- Added: Command DisplayAlphaSprite() (doesn't work correctly)
- Added: Command DisplayShadowSprite()
- Added: Command DisplaySolidSprite()
- Optimized: ScreenOutput()
- Corrected: Bug with Clipping in DisplaySprite(), DisplayTransparentSprite() and DisplayTranslucentSprite()
- Corrected: Bug in SpritePixelCollision()
- Corrected: Bug with transparency in sprites
- Corrected: Bug in UseBuffer()
- Corrected: Bug in LoadSprite() and CatchSprite()
- Corrected: Bug in Start3D()
- Corrected: Bug in Sprite3DBlendingMode()
- Corrected: Bug in ZoomSprite3D()
@SFSxOI
It uses Direct3D 9 for the Sprite and Sprite3D Lib. For the Mouse and Keyboard Lib it uses DInput 8.