Skip to content

rzumer/dosrender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dosrender

Graphics rendering engine/demo for 16-bit DOS with mode 13 hex.

Summary

This project is designed to support 16-bit graphical applications targeting DOS in mode 13h. The main goal is to achieve reasonable real-time rendering performance for mainly 2D applications, with some 3D support.

The current version supports creation, transformation and rendering of lines and polygons, including solid color filling. Both integer and floating point coordinates are also supported, though the latter are currently unstable and disabled by default.

Features

  • Lines
    • Arbitrary slope
    • Arbitrary color
    • Out-of-bounds support
    • Transformation support
      • Scaling/Mirroring
      • 2D Rotation
      • Shear
      • 3D Perspective
  • Rectangles
    • Arbitrary size
    • Arbitrary border and fill colors
    • Transparency support
    • Out-of-bounds support
    • Transformation support
      • Scaling/Mirroring
      • 2D Rotation
      • 3D Perspective
  • Free-form polygons
    • Arbitrary sides
    • Arbitrary border color
    • Out-of-bounds support
    • Arbitrary fill color
    • Transformation support
      • Scaling/Mirroring
      • 2D/3D Rotation
      • Shear
  • Sprites
  • Text

Building

The project is written in mostly C89 with some C99 extensions provided by the Watcom compiler, e.g. array designators. As such, Open Watcom (with 16-bit DOS support enabled during installation) is recommended for compiling out of the box, as it provides appropriate support for real 16-bit compilation and memory management.

Contributions to improve portability across compilers are welcome.

About

Graphics rendering engine for 16-bit DOS with mode 13 hex.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published