Skip to content
forked from mity/windrawlib

C library for Windows for easy-to-use 2D painting with Direct2D or, on older Windows versions, GDI+.

License

Notifications You must be signed in to change notification settings

Antti-L/windrawlib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status (appveyor.com)

WinDrawLib

Home: http://github.com/mity/windrawlib

WinDrawLib is C library for Windows for easy-to-use painting with Direct2D or, on older Windows versions, GDI+.

The WinDrawLib was created by isolating and cleaning a helper painting code from the mCtrl project as it seems to be very useful on its own.

Building WinDrawLib

To build WinDrawLib you need to use CMake to generate MS Visual Studio solution or to generate Makefile. Then build that normally using your tool chain.

For example, to build with MSYS + mingw-w64 + Make:

$ cd path/to/windrawlib
$ mkdir build
$ cd build
$ cmake -G "MSYS Makefiles" ..
$ make

Static lib of WinDrawLib is built as well as few examples using the library.

Using WinDrawLib

Use WinDrawLib as a normal static library. There is single public header file, wdl.h in the include directory which you need to #include in your sources.

API is documented directly in the public header.

Then link with the static library WINDRAWLIB.LIB (Visual Studio) or LIBWINDRAWLIB.A (gcc).

Release Cycle and API Stability

Note the API is not considered rock-stable and it may be in a constant flux, although hopefully it will converge to something more or less stable in near future.

Also there is no typical release process and no official binary packages. The library is quite small and simple and the intended use is to directly embed it into a client project.

License

WinDrawLib is covered with MIT license:

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

C library for Windows for easy-to-use 2D painting with Direct2D or, on older Windows versions, GDI+.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.9%
  • CMake 1.1%