Width and Height of 3d Screen ?

Just starting out? Need help? Post your questions and find answers here.
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

Width and Height of 3d Screen ?

Post by WolfgangS »

HI !
How can i figure out the actual height/width and depth of my actual 3d Screen or window ?

MFG
WolfgangS
VPureBasic
User
User
Posts: 59
Joined: Fri Apr 25, 2003 6:09 pm
Location: Quebec - Canada

Post by VPureBasic »

Hi WolfgangS,

Try my little library... ScreenEx.zip at the Resource Site! You gonna find three usefull functions for your screen info:

The Syntax Are:

Width.l = ScreenWidth()
Height.l = ScreenHeight()
Depth.l = ScreenDepth()

And...

Bool = IsScreenMode( Width, Height, Depth )
SetScreenMode()
ResetScreenMode()

Roger
Everything is possible with PureBASIC... All you're missing is imagination!
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

Post by WolfgangS »

HI
Thank you VPurebasic !
I figured out a more sleeky solution :wink:
Instet of the "Result" (handle of the Screen oder ScreenedWindow) i give back a STRUCTURE with all releated infos about my output screen/window.

Code: Select all

Structure Screen3dRequester
  width.l
  height.l
  depth.l
  hndscreen.l
  hndwindow.l
EndStructure
This saves me to use a external library ...
Maybe i will write an extended Screen3drequester with chooseable depth ..

MFG
WolfgangS
Post Reply