Updated README

This commit is contained in:
Daniel Collin 2014-06-06 18:16:01 +02:00
parent 2e7fb72a87
commit 6a1100b611

View File

@ -1,4 +1,4 @@
minifb
MinFB
======
MiniFB is a small cross platform library that makes it easy to render (32-bit) pixels in a window. An example is the best way to show how it works:
@ -21,7 +21,7 @@ MiniFB is a small cross platform library that makes it easy to render (32-bit) p
mfb_close();
First the code creates window with the mfb_open call that is used to display the data, next it's the applications resposiblity to allocate a buffer (which has to be at least the size of the window and in 32-bit) Next when calling mfb_update function the buffer will be copied over to the window and displayed. Currently the mfb_update will return -1 if ESC key is pressed but later on it will support to return a key code for a pressed button.
First the code creates window with the mfb_open call that is used to display the data, next it's the applications resposiblity to allocate a buffer (which has to be at least the size of the window and in 32-bit) Next when calling mfb_update function the buffer will be copied over to the window and displayed. Currently the mfb_update will return -1 if ESC key is pressed but later on it will support to return a key code for a pressed button. See https://github.com/emoon/minifb/blob/master/tests/noise.c for a complete example
MiniFB has been tested on Windows, Mac OS X and Linux but may of course have trouble depending on your setup. Currently the code will not do any converting of data if not a proper 32-bit display can be created.