This would be another tiny example on how to include images in the executable and use them with HGE. Replace the #PROJECT_PATH and the image file at will.
I am going to say something though... as I read this... we probably don't need HGE.
I haven't seen one thing that Demivec and I aren't doing in pure PB with our particle engine.
OK 1 thing so far... the gravity in my silly plinko game... but heck I learned how to do that my second week with Blitz3D! I know I could do that here...
More good stuff - I was having a lot of fun messing with the first example last night byo, changing vertex colours etc to simulate lighting. It's all so simple!
I'm at work at the mo but I'll test this one tonight. It would be cool if neotoma or somebody could put a function in the dll to return a pointer to the D3D interface - that way we could probably get under the bonnet and add other effects directly and write our own functions using the D3D API - lighting and suchforth.
Rook Zimbabwe: Indeed. I agree with you that Purebasic builtin 2D game commands are as solid or maybe even more. But HGE has some really fast displace/resize/stretch routines which are really easy to achieve with one or two commands. Take a look at this demo:
untune: It's a nice idea. Maybe someday when the engine becomes Directx 9.0 fueled we'll have some additions since DirectDraw is getting obsolete with time. I'd take a look at HGE forum because there are some addons/libraries there that could be wrapped in Purebasic. Just a thought.
Proud registered Purebasic user.
Because programming should be fun.
byo wrote:untune: It's a nice idea. Maybe someday when the engine becomes Directx 9.0 fueled we'll have some additions since DirectDraw is getting obsolete with time. I'd take a look at HGE forum because there are some addons/libraries there that could be wrapped in Purebasic. Just a thought.
Well it's currently DX8 powered so everything in HGE is already 3D and hardware accelerated rather than using the old fashioned DirectDraw interface (I'm not sure if anything still uses DX7! )
I've been reading that quite a few people have already shifted it over to DX9 (as the source code is freely available and using the DX9 commands is as simple as changing DX calls from their current DX8 renditions into their DX9 counterparts) and there will probably be a branch off the source which uses DX9 (some people are strict about it staying DX8 and therefore more compatible with older hardware, which is one of it's most important features)
Think about what that would open up though - the use of DX9 technology like advanced shaders and other cool effects. It would be fantastic! And I've done some work (a few years back but still, it's all possible in PB) with the D3D API, I'm pretty sure a pointer to the interface that HGE is using is all that you'd need to get access to the low level D3D functions... making the whole thing even more versatile.