|
-
Nov 6th, 2002, 08:01 AM
#1
Thread Starter
Frenzied Member
Load Bitmaps....
I have asked this question a million times, but I never get it to work....how can I load a picture into the game I'm currently working on(I'm using DirectX) without a bunch of advanced functions???
I have tried LoadBitmap but it didn't load the picture...
BTW: I'm using C++
-
Nov 6th, 2002, 10:12 AM
#2
Addicted Member
Well... I've done a litle bit of directdraw a while back, and i'm sure I remember seeing a CreateSurfaceFromFile function or something like that... couldn't you use that?
-
Nov 6th, 2002, 11:29 AM
#3
Thread Starter
Frenzied Member
hmmm dont know that function
-
Nov 6th, 2002, 01:55 PM
#4
I hav never used DX in C++, but I looked it up in my DX for VB book and I found it. The function Valkan is refering to looks like this.
CreateSurfaceFromFile( file as String, dd As DDSURFACEDESC2) As DirectDrawSurface7
If you have problems using this, post again...
-
Nov 6th, 2002, 06:58 PM
#5
Addicted Member
don't know the function... what version of DX are you using? Because if your using DX8, i think that DD was remove from it (meaning no CreateSurfaceFromFile.)
-
Nov 7th, 2002, 01:32 AM
#6
That is true. As you can see of my code. It was a DD7 Surface. That means that you have to use the DX7 SDK. How smart this is, depends on what kind of App/Game you are making.
If only want to use DX8 (You could use both DX8 and DX7) you have to use D3D I think, and then you would have to load a picture, and set the camera to look right at it, so it looks like a 2D image. I don't know how to do this jet. Sorry....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|