资 源 简 介
Deadfrog Lib is a collection of simple portable functions to create a window, get keyboard and mouse input and provide various 2D drawing primitives. It was created due to the frustration I found in just getting a simple interactive program up and running on a PC. The PC should be as easy to program as my ZX Spectrum was in 1982.
It is a little like SDL, but smaller and with useful features like line drawing and text rendering that are oddly missing from SDL.
Functions include
Window creation.
32-bit RGBA bitmap creation.
Fast software based drawing routines (pixels, lines, polygons, text, blit, masked-blit etc).
Some alpha blending support.
Mouse and keyboard input.
Load and save BMP files.
Advantages
Simple easy to use API.
Predictable performance that scales linearly with CPU speed, unlike hardware accelerated drawing whose speed can vary by orders of magnitude