"Graphics3D" and how do I...

Blitz3D Forums/Blitz3D Programming/"Graphics3D" and how do I...

Create a user32.decls file, or add this line to an existing one:
User32_GetSystemmetrics%( flags% ):"GetSystemMetrics"

Then in BB
nTemp% = User32_GetSystemmetrics(0) ; Width
nTemp% = User32_GetSystemmetrics(1) ; Height


That should do the trick.

Note: This will return the desktop size so you might want to do something like:
screenx = User32_GetSystemmetrics(0)-6 ; Width
screeny = User32_GetSystemmetrics(1)-45 ; Height
to make space for borders and the task bar.