bbsystemproperty in v105 works??
Blitz3D Forums/Blitz3D Programming/bbsystemproperty in v105 works??
| ||
I know this is the wrong forum but the b3dsdk forum is virtually dead. and the forums are linked together anyways so i don't see much harm in posting this. Perhaps someone here could shed some light on it. So i went ahead and externed bbsystemproperty from V105, and it appears to actually be spitting out a pointer now. I'm not sure if it is the correct pointer or not. I tried running an Initex function from fastextension and it doesn't crash until i try to use one of the bbcommands in the sdk. I'm guessing it does grab the device but could it be because all the function names in the sdk lib begin with bb that is crashing it? The only other possible cause i could think of is it requires me to pass a type to the init function, i'm not sure if the byte ptr of the type i send through is going to work the same as a blitz3d type. this is more or less what i have so far. Import blitz3d.blitz3dsdk Import fastext.fastext bbBeginBlitz3D() bbGraphics3D 800,600,0,2 Print "Device "+Int(bbSystemProperty("Direct3DDevice7")) InitExt ' <<<< Обязательно инициализуем после Graphics3D ' <<<< Initialize library after Graphics3D Function cam=bbCreateCamera()'<----- crashes b3dsdk this is the initialization function here Function InitExt () If FE_InitExtFlag=0 Then FE_InitExtFlag = 1 FE_PivotSys = bbCreatePivot() DeInitPostprocess() InitExt_ ( Int(bbSystemProperty("Direct3DDevice7")), bbBackBuffer(), GfxDriverCapsEx ) EndIf End Function the type for GfxDriverCapsEx is Type GfxDriverCapsEx_Type Field BrushBlendsSrc Field BrushBlendsDest Field TextureCaps Field TextureBlends Field TextureMaxStages Field TextureMaxWidth Field TextureMaxHeight Field TextureMaxAspectRatio Field ClipplanesMax Field LightsMax Field Bump Field BumpLum Field AnisotropyMax End Type Global GfxDriverCapsEx:GfxDriverCapsEx_Type = New GfxDriverCapsEx_Type perhaps this doesn't work in blitzmax? |
| ||
Excuse me, but FastExt library not support B3D SDK |
| ||
ah well it was a shot. wasn't sure what exactly was going on in the backend of the dll i figured if i could pass the directx device it would work. |