Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 78a71936 in mainline


Ignore:
Timestamp:
2019-10-15T16:33:25Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial
Children:
dcc4cb31
Parents:
159776f
Message:

Bitmap operations (WIP)

Location:
uspace/lib/gfx
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gfx/include/types/gfx/ops/context.h

    r159776f r78a71936  
    4040
    4141#include <errno.h>
     42#include <types/gfx/bitmap.h>
    4243#include <types/gfx/color.h>
    4344#include <types/gfx/coord.h>
     
    5051        /** Fill rectangle using the current drawing color */
    5152        errno_t (*fill_rect)(void *, gfx_rect_t *);
     53        /** Create bitmap */
     54        errno_t (*bitmap_create)(void *, gfx_bitmap_params_t *, void *,
     55            gfx_bitmap_t **);
     56        /** Delete bitmap */
     57        errno_t (*bitmap_delete)(void *, gfx_bitmap_t *);
     58        /** Render bitmap */
     59        errno_t (*bitmap_render)(void *, gfx_bitmap_t *, gfx_rect_t *,
     60            gfx_coord2_t *);
     61        /** Get bitmap allocation info */
     62        errno_t (*bitmap_get_alloc)(void *, gfx_bitmap_t *,
     63            gfx_bitmap_alloc_t *);
    5264} gfx_context_ops_t;
    5365
  • uspace/lib/gfx/meson.build

    r159776f r78a71936  
    2828
    2929src = files(
     30        'src/bitmap.c',
    3031        'src/color.c',
    3132        'src/context.c',
  • uspace/lib/gfx/private/color.h

    r159776f r78a71936  
    3838#define _GFX_PRIVATE_COLOR_H
    3939
    40 #include <types/gfx/ops/context.h>
    41 
    4240/** Actual structure of graphics color.
    4341 *
Note: See TracChangeset for help on using the changeset viewer.