Graphics Modes

Blitz3D Forums/Blitz3D Programming/Graphics Modes

Yue(Posted 2010) [#1]
Hi how many modes currently supports a graphics card commands blitz3d mine tell me that supports 14 graphics modes.

And by the way how I can implement a function in variables I recover high width and depth of supported graphic modes to display on screen one by one.

Last edited 2010


Matty(Posted 2010) [#2]
Hi Yue,

have a look in many of the samples that come with blitz3d - they make use of these kinds of functions..

or look in the documentation under command reference->graphics and look at the commands relating to graphics modes.


Yue(Posted 2010) [#3]
From the examples I have this code.



For X = 1 to CountGfxModes3D

Print X
Print GfxModeDepth(X)
print GfxModeHeight(X)
print GfxModeWidth(X)

next 





I have no clear is how to retrieve the width and height of each mode to display on screen one by one as in commercial games.

Last edited 2010

Last edited 2010


Yue(Posted 2010) [#4]
Ok, no problem.

Local Widht[20]


For i = 1 To CountGfxModes()
	Widht[i] = GfxModeWidth(i)
	Print Widht[14]
Next


WaitKey()