|
|
| version 1.1, 2003/12/11 15:11:56 | version 1.4, 2005/03/12 12:36:13 |
|---|---|
| Line 1 | Line 1 |
| /* $Id$ */ | |
| /* | /* |
| * Copyright (c) 2003 NONAKA Kimihiro | * Copyright (c) 2003 NONAKA Kimihiro |
| * All rights reserved. | * All rights reserved. |
| Line 10 | Line 12 |
| * 2. Redistributions in binary form must reproduce the above copyright | * 2. Redistributions in binary form must reproduce the above copyright |
| * notice, this list of conditions and the following disclaimer in the | * notice, this list of conditions and the following disclaimer in the |
| * documentation and/or other materials provided with the distribution. | * documentation and/or other materials provided with the distribution. |
| * 3. The name of the author may not be used to endorse or promote products | |
| * derived from this software without specific prior written permission. | |
| * | * |
| * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
| * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| Line 30 | Line 30 |
| #include "compiler.h" | #include "compiler.h" |
| #include "cmndraw.h" | |
| typedef struct { | typedef struct { |
| RGB32 mask; | RGB32 mask; |
| BYTE r16b; | BYTE r16b; |
| Line 37 typedef struct { | Line 39 typedef struct { |
| BYTE l16g; | BYTE l16g; |
| } PAL16MASK; | } PAL16MASK; |
| typedef struct { | |
| CMNVRAM vram; | |
| int width; | |
| int height; | |
| int lpitch; | |
| RECT_T src; | |
| POINT_T dest; | |
| PAL16MASK pal16mask; | |
| BOOL drawing; | |
| } _DRAWMNG_HDL, *DRAWMNG_HDL; | |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif | |
| DRAWMNG_HDL drawmng_create(void *parent, int width, int height); | |
| void drawmng_release(DRAWMNG_HDL hdl); | |
| CMNVRAM *drawmng_surflock(DRAWMNG_HDL hdl); | |
| void drawmng_surfunlock(DRAWMNG_HDL hdl); | |
| void drawmng_blt(DRAWMNG_HDL hdl, RECT_T *sr, POINT_T *dp); | |
| void drawmng_set_size(DRAWMNG_HDL hdl, int width, int height); | |
| void drawmng_invalidate(DRAWMNG_HDL hdl, RECT_T *r); | |
| void *drawmng_get_widget_handle(DRAWMNG_HDL hdl); | |
| void drawmng_make16mask(PAL16MASK *pal16, UINT32 bmask, UINT32 rmask, UINT32 gmask); | void drawmng_make16mask(PAL16MASK *pal16, UINT32 bmask, UINT32 rmask, UINT32 gmask); |
| RGB16 drawmng_makepal16(PAL16MASK *pal16, RGB32 pal32); | RGB16 drawmng_makepal16(PAL16MASK *pal16, RGB32 pal32); |
| #ifdef __cplusplus | |
| } | |
| #endif | |
| #endif /* NP2_X11_DRAWMNG_H__ */ | #endif /* NP2_X11_DRAWMNG_H__ */ |