Menu

Graphics3D

UltraBas

Graphics3D width, height, depth, mode, rate

Initialise the library; this command will set horizontal and vertical resolution with width and height. Other parameters (depth, mode, rate) are optional, and currently unused.

ATTENTION: this command does not create an openGL context (that is, a place where the 3d image is rendered: it can be the full screen, a window, or a place inside a window); you'll need to create it manually: in FreeBasic, the simplest way to do that is with SCREEN command:

SCREEN 18, 32, , &h02


Graphics3d 640,480,32,1,1

(the &h02 parameter in SCREEN command specify to use openGL); of course, SCREENRES, too, can be used:

SCREENRES 640, 480, 32, , &h02  
Graphics3d 640,480,32,1,1

Otherwise, external libraries like GluT can be used, or system-specific APIs can be called.


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.