| |||||||||||||||
| Diese Funktion liefert bestimmte Systeminformationen zurück. Zur Auswahl stehen noch nicht sehr viele Möglichkeiten. Vorteil: Der Entwickler der Programmiersprache BlitzBasic kann es problemlos erweitern. | |||||||||||||||
| Parameter für Name | |||||||||||||||
Zur Auswahl stehen folgende String-Konstanten:
Weitere Paramter ab Blitz3D v1.88: Direct3D7, Direct3DDevice7, DirectDraw7, DirectInput7, AppHWND und AppHINSTANCE | |||||||||||||||
| Rückgabewert | |||||||||||||||
| Liefert einen String zurück, der dann vorher ausgewählte Informationen enthält. | |||||||||||||||
| Beispiel | |||||||||||||||
| Dieses Programm zeigt einige Systeminformationen: PRINT "BlitzBasic-Ordner: "+SYSTEMPROPERTY$("APPDIR") PRINT "System-Ordner: "+SYSTEMPROPERTY$("SYSTEMDIR") PRINT "Temp-Ordner: "+SYSTEMPROPERTY$("TEMPDIR") PRINT "Windows-Ordner: "+SYSTEMPROPERTY$("WINDOWSDIR") PRINT "Betriebssystem: "+SYSTEMPROPERTY$("OS") | |||||||||||||||
| Beispiel Blitz3D | |||||||||||||||
| Const D3DSHADE_FLAT= 1 Const D3DSHADE_GOURAUD= 2 Const D3DSHADE_PHONG= 3 Graphics3D 800,600,32,2 Direct3D7=SystemProperty$("Direct3D7") Direct3DDevice7=SystemProperty$("Direct3DDevice7") DirectDraw7=SystemProperty$("DirectDraw7") DirectInput7=SystemProperty$("DirectInput7") AppHWND=SystemProperty$("AppHWND") AppHINSTANCE=SystemProperty$("AppHINSTANCE") cam=CreateCamera() PositionEntity cam,0,0,-4 light=CreateLight() RotateEntity light,60,30,0 sphere=CreateSphere() While Not KeyHit(1) Text 0,0,"Press 1,2 or 3 to change the Render Style" If KeyHit(2) ChangeRenderStyle Direct3DDevice7,D3DSHADE_FLAT If KeyHit(3) ChangeRenderStyle Direct3DDevice7,D3DSHADE_GOURAUD If KeyHit(4) ChangeRenderStyle Direct3DDevice7,D3DSHADE_PHONG RenderWorld Flip Wend End C++ code (erfordert noch .decls in userlib): #define BBDECL extern "C" _declspec(dllexport) #define BBCALL _stdcall #include BBDECL void BBCALL ChangeRenderStyle(IDirect3DDevice7 *lpDev, unsigned int mode) { int hr = lpDev->SetRenderState(D3DRENDERSTATE_SHADEMODE, mode); } | |||||||||||||||
| Siehe auch | |||||||||||||||
| CURRENTDIR, GETENV, SETENV |