OpenDBC
Menu

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.

55 programs — 5568 lines

DBPro examples

DarkBASIC Professional showcase tutorials and the Hello World project, with a construction breakdown and cross-linked commands for each program.

37 programs — 7527 lines

Language

Basic commands

Control-flow statements (IF, THEN, FOR, WHILE…), declarations, operators and directives.

75 entries

Maths

Math functions: trigonometry, random numbers, rounding, interpolation.

29 commands — 26 implemented

Arrays, stacks & queues

DBPro commands for dynamic array, stack and queue manipulation.

20 commands — 19 implemented

2D

Text & strings

Text output, fonts and string functions.

50 commands — 38 implemented

2D drawing

Drawing primitives: dots, lines, boxes, circles, ink.

12 commands — 12 implemented

Screen & display

Display modes, resolution, synchronization, window control.

119 commands — 51 implemented

Bitmaps

Off-screen drawing surfaces: creation, copy, mirror, blur.

21 commands — 18 implemented

Images

Loading, grabbing and managing images used by sprites and textures.

22 commands — 13 implemented

Sprites

2D sprites: position, scale, collision, animation.

51 commands — 50 implemented

Bobs

Blitter objects inherited from DarkBASIC Classic (ancestors of sprites).

23 commands — 23 implemented

3D

3D objects

Creating and manipulating 3D objects, limbs, meshes, collisions.

394 commands — 262 implemented

Cameras

3D cameras: position, rotation, backdrop, render-to-image.

54 commands — 52 implemented

Lights & fog

Lighting, ambience, fog and light mapping.

44 commands — 37 implemented

Matrices (DBC terrain)

Historical grid terrains: tiles, heights, normals.

33 commands — 32 implemented

Advanced terrain

DBPro advanced terrains (heightmaps, LOD).

13 commands — 10 implemented

Vectors & Matrix4

DBPro linear algebra: 2/3/4-component vectors, 4×4 matrices, quaternions.

244 commands — 123 implemented

Effects & shaders

DBPro effects (.fx files), shaders and techniques.

36 commands — 15 implemented

Particles

DBPro core particle emitters (fire, snow, chaos).

74 commands — 24 implemented

Media

Animations & video

AVI video and animation playback.

25 commands — 21 implemented

Music & CD

Music playback; MIDI renders through a built-in General MIDI bank unless a same-stem MP3/WAV sits beside it.

22 commands — 15 implemented

Sounds

Sound effects, 3D sounds, recording, EAX.

120 commands — 39 implemented

Input & system

Input devices

Keyboard, mouse, joystick, force feedback.

118 commands — 70 implemented

System

Timing, checklists, DLLs, clipboard, machine information.

679 commands — 58 implemented

Data & files

Files

Files, directories, sequential reading/writing.

114 commands — 49 implemented

Memblocks

Raw memory blocks and conversions to/from images, sounds, meshes.

51 commands — 34 implemented

Network

Multiplayer & network

Multiplayer sessions, network messages and FTP.

83 commands — 36 implemented

Extensions

ODE extension

ODE physics (Open Dynamics Engine) integrated with DBPro.

121 commands — 87 implemented

OpenDBC New (mobile)

Documented mobile additions for the future DbcNew/DbProNew profiles (signatures to recover).

10 commands — 0 implemented