Difference between revisions of "Modules/draw"

From MSX Game Library

< Modules

 
Line 2: Line 2:
 
|name=draw
 
|name=draw
 
|category=Graphic
 
|category=Graphic
|image=raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_draw.png
+
|image=raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_draw.jpg
 
|dependency1=vdp
 
|dependency1=vdp
 
|dependency2=
 
|dependency2=

Latest revision as of 01:02, 13 January 2024

draw

Code: draw.h

Category: Graphic

Dependencies:

Samples:

The draw module lets you draw simple shapes (line, box, circle, etc.) for bitmap screen modes using the MSX2's fast VDP commands.

Usage

To use this module, include "draw.h" in your source code, and add "draw" to the modules list (LibModules) in your project's configuration file (project_config.js).


Samples

See module use cases in the sample programs:

Settings

None.

Dependencies

Dependency on other modules:

Documentation