Permalink
Switch branches/tags
Nothing to show
Commits on Oct 8, 2017
  1. Emscripten support

    DeXP committed Oct 8, 2017
Commits on Oct 4, 2017
  1. nk_ prefix

    DeXP committed Oct 4, 2017
Commits on Oct 1, 2017
  1. GDI+ multiple fonts support

    DeXP committed Oct 1, 2017
    Each custom loaded font requires own `GpFontCollection`. So there is array of font collections now.
  2. Revert X11 changes

    DeXP committed Oct 1, 2017
  3. Open GL ES 2 demo

    DeXP committed Oct 1, 2017
    Can be used on: Linux, Mac OS X, Android, Emscripten
  4. Revert X11 changes

    DeXP committed Oct 1, 2017
  5. Revert X11 changes

    DeXP committed Oct 1, 2017
  6. GDI+ nk_gdip_fill_rect background fix

    DeXP committed Oct 1, 2017
    1. Main background area was filled by 2 big overlapping rectangles. It works good on solid but not on semi-transparent themes. Just replaced 2 big rectangles with 1 big and 2 small.
    2. There is no need in [nk_gdip_fill_rect filled pies fix](7ab7327) anymore. It disturbs semi-transparent themes too.
Commits on Sep 11, 2017
  1. Xlib: remove text BG rectangle

    DeXP committed Sep 11, 2017
    It's already window or BGcolor on background.
  2. Optional stb_image defines

    DeXP committed Sep 11, 2017
Commits on Sep 4, 2017
  1. Fix stb_image path

    DeXP committed Sep 4, 2017
  2. stb_image with bit transparency

    DeXP committed Sep 4, 2017
    X11 do not support transparent images itself. So the clip mask is calculating in this code. X11 ClipMask support only bit transparency.
Commits on Feb 18, 2017
  1. Return global clipping back

    DeXP committed Feb 18, 2017
Commits on Feb 9, 2017
  1. Fix panel clipping

    DeXP committed Feb 9, 2017
    `layout->bounds` cannot be used (loc 16615) since we modify it up here:
    `layout->bounds.x += panel_padding.x;`  (16471)
    `layout->bounds.w -= 2*panel_padding.x;` (16472)
    Because of it there was no ability to `nk_draw_image` attached to window's edge. There alway was empty lines of right and left.
    
    This code breaks the other's code. Popups, for example. My paddings are 10px. To show popup at (20,20) without this patch I must use `nk_rect(10, 20, ...`. With this patch I must use `nk_rect(20, 20, ...`, not depending on paddings. I think (20,20) is a correct constant for (20,20) coordinate.
Commits on Feb 4, 2017
  1. GDI+ split rendering GUI and clear surface

    DeXP committed Feb 4, 2017
    For example, I draw something via GDI+. Now I can call `nk_gdip_render_gui(AA)` and it will not erase my drawings, just will draw on top. 
    Previos API was not changed.
  2. GDI+ text transparent background fix

    DeXP committed Feb 4, 2017
    There is no need do draw filled rectangle behind of any text
Commits on Jan 30, 2017
  1. Remove warning "unsigned only in ISO C90"

    DeXP committed Jan 30, 2017
    These warnings appear on GCC for Windows only. There a lot of them. Doesn't matter, native compilation or crosscompile.
    `nuklear.h:6836:9: warning: this decimal constant is unsigned only in ISO C90`
Commits on Jan 23, 2017
  1. Fix typo

    DeXP committed Jan 23, 2017
  2. Remove warning: 'nk_to_upper' defined but not used

    DeXP committed Jan 23, 2017
    There is function `NK_INTERN int nk_to_upper(int c)` in `UTIL` section. Implementation is almost the same to `NK_INTERN int nk_to_lower(int c)`. But only `nk_to_lower` used in Nuklear's code. To remove this warning we can: 
    1) Comment i.e. remove `nk_to_upper` from code. But it can break someone's code, if he used it in module with `NK_IMPLEMENTATION` defined.
    2) Hide it under define. Same. 
    3) Just use it somewhere in code. 
    I replaced two calls of `nk_to_lower` to `nk_to_upper`. It removes the warning, code works the same. The bad side - complication of the code. "Why `nk_to_upper` is used here, but not `nk_to_lower` as one line up?"
    Maybe there exists better solution? Or just add the comment about this line to code?
Commits on Jan 22, 2017
  1. Remove unused panel warnings

    DeXP committed Jan 22, 2017
    When NDEBUG defined:
    nuklear.h: In function 'nk_popup_begin':
    nuklear.h:20753:22: warning: variable 'panel' set but not used [-Wunused-but-set-variable]
    nuklear.h: In function 'nk_nonblock_begin':
    nuklear.h:20850:22: warning: variable 'panel' set but not used [-Wunused-but-set-variable]
Commits on Jan 20, 2017
  1. Added loading TTF font from file

    DeXP committed Jan 20, 2017
    Also font API rename to be the same with images.
Commits on Jan 19, 2017
  1. Define IStream interface

    DeXP committed Jan 19, 2017
Commits on Jan 7, 2017
  1. GDI+ load font from memory added

    DeXP committed Jan 7, 2017
    There is new user function: `nk_gdipfont_create_mem`. Added `fontCollection` member to `gdip` structure to automatically clean it up at execution end.
  2. nk_gdip_fill_rect filled pies fix

    DeXP committed Jan 7, 2017
    Added 1px overlap near filled pies. There is no empty space between pie and rectangle now. It was especially conspicuous on red theme.
Commits on Jan 6, 2017
  1. Added GDI+ images support

    DeXP committed Jan 6, 2017
Commits on Jan 3, 2017
  1. nk_gdip_fill_rect coordinates fix

    DeXP authored and seibelj committed Dec 29, 2016
    Fix incorrect button drawing (wrong stroke, empty spaces in stroke line near the corners). Since there are quarters of circle in the angles then lines must be moved to R, not to D.
Commits on Dec 29, 2016
  1. nk_gdip_fill_rect coordinates fix

    DeXP committed Dec 29, 2016
    Fix incorrect button drawing (wrong stroke, empty spaces in stroke line near the corners). Since there are quarters of circle in the angles then lines must be moved to R, not to D.