OpenDBC Language Reference
Unified DarkBASIC Classic (DBC) and DarkBASIC Professional (DBPro) API
documentation for OpenDBC: parameters, return types, per-profile compatibility and examples —
plus a guided tour of every example program shipped with the project.
Generated from src/language/language_catalogue.inc.
2742 catalogue entries + 75 syntax elements + 92 documented example programs, covering DBC and DBPro together. Shared commands carry both “dbc” and “dbpro” tags; commands whose behavior differs get one section per profile.
Examples
DBC examples
Classic-profile tutorials and demo games, with a construction breakdown and cross-linked commands for each program.
DBPro examples
DarkBASIC Professional showcase tutorials and the Hello World project, with a construction breakdown and cross-linked commands for each program.
Language
Basic commands
Control-flow statements (IF, THEN, FOR, WHILE…), declarations, operators and directives.
Maths
Math functions: trigonometry, random numbers, rounding, interpolation.
Arrays, stacks & queues
DBPro commands for dynamic array, stack and queue manipulation.
2D
Text & strings
Text output, fonts and string functions.
2D drawing
Drawing primitives: dots, lines, boxes, circles, ink.
Screen & display
Display modes, resolution, synchronization, window control.
Bitmaps
Off-screen drawing surfaces: creation, copy, mirror, blur.
Images
Loading, grabbing and managing images used by sprites and textures.
Sprites
2D sprites: position, scale, collision, animation.
Bobs
Blitter objects inherited from DarkBASIC Classic (ancestors of sprites).
3D
3D objects
Creating and manipulating 3D objects, limbs, meshes, collisions.
Cameras
3D cameras: position, rotation, backdrop, render-to-image.
Lights & fog
Lighting, ambience, fog and light mapping.
Matrices (DBC terrain)
Historical grid terrains: tiles, heights, normals.
Advanced terrain
DBPro advanced terrains (heightmaps, LOD).
Vectors & Matrix4
DBPro linear algebra: 2/3/4-component vectors, 4×4 matrices, quaternions.
Effects & shaders
DBPro effects (.fx files), shaders and techniques.
Particles
DBPro core particle emitters (fire, snow, chaos).
Media
Animations & video
AVI video and animation playback.
Music & CD
Music playback; MIDI renders through a built-in General MIDI bank unless a same-stem MP3/WAV sits beside it.
Sounds
Sound effects, 3D sounds, recording, EAX.
Input & system
Input devices
Keyboard, mouse, joystick, force feedback.
System
Timing, checklists, DLLs, clipboard, machine information.
Data & files
Files
Files, directories, sequential reading/writing.
Memblocks
Raw memory blocks and conversions to/from images, sounds, meshes.