The stick2xyz Documentation 1.14.1
pane2dgray16.h
Go to the documentation of this file.
1/***************************************************************************
2 * stick2xyz - Can create and convert stick figure animations for CG. *
3 * Copyright (C) 2021 by Kevin McBride <dolphindddd@aol.com> *
4 * *
5 * This program is free software: you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation, either version 3 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17 ***************************************************************************/
18
19
20#ifndef PANE2DGRAY16_H
21#define PANE2DGRAY16_H (1)
22
23#include <stick2xyz.h>
24
25/* Pane2D General Module Info Functions */
34
43
51void pane2dgray16_version ( int * dest );
52
74int pane2dgray16_type ( void );
75
86void pane2dgray16_set_tty ( void * fildescout, void * fildescerr );
87
96
103
107void pane2dgray16_getref ( pane2d_handle pane, int * refcount, int * refwaiting );
115int pane2dgray16_releaseref ( pane2d_handle pane, int asyncrelease, int shutdown );
120#if defined(__WINDOWS__) | defined(DOXYGEN_BUILD)
125 pane2d_handle pane,
126 LPHANDLE destvar
127);
132 pane2d_handle pane,
133 struct pane2d_drawacl * dest
134);
139 pane2d_handle pane,
140 struct pane2d_drawacl * src
141);
146
147#endif /* defined(__WINDOWS__) | defined(DOXYGEN_BUILD) */
156#ifdef DOXYGEN_BUILD
161 pane2d_handle pane,
162 void * hthread,
163 int hthreadsize,
164 uint32_t flags
165);
166
171 pane2d_handle pane,
172 void * newthread,
173 int addref
174);
175
180#else /* not DOXYGEN_BUILD */
181#ifdef __WINDOWS__
183 pane2d_handle pane,
184 PHANDLE hthread,
185 int hthreadsize,
186 uint32_t flags
187);
188
190 pane2d_handle pane,
191 HANDLE newthread,
192 int addref
193);
194
196#else /* not __WINDOWS__ */
197#ifdef HAVE_THREADS_H
199 pane2d_handle pane,
200 thrd_t * hthread,
201 int hthreadsize,
202 uint32_t flags
203);
204
206 pane2d_handle pane,
207 thrd_t newthread,
208 int addref
209);
210#else /* not HAVE_THREADS_H */
212 pane2d_handle pane,
213 void * hthread,
214 int hthreadsize,
215 uint32_t flags
216);
217
219 pane2d_handle pane,
220 void * newthread,
221 int addref
222);
223#endif /* not HAVE_THREADS_H */
224#endif /* not __WINDOWS__ */
225#endif /* not DOXYGEN_BUILD */
226
227#ifndef __WINDOWS__
241void pane2dgray16_lang ( stick2xyz_print_ptr newval );
242#endif /* not __WINDOWS__ */
243
244/* Generic Drawing Pane (2-D) Allocation Functions */
253 int x,
254 int y,
255 size_t maxthreads,
256 uint32_t typesallowed
257);
269uint8_t ** pane2dgray16_dupdata ( pane2d_handle pane, int padding );
273uint8_t ** pane2dgray16_dupimage ( pane2d_handle pane, int padding );
277void pane2dgray16_freeimage ( pane2d_handle pane, uint8_t ** image );
281uint16_t ** pane2dgray16_dupimage16 ( pane2d_handle pane, int padding );
285void pane2dgray16_freeimage16 ( pane2d_handle pane, uint16_t ** image );
289uint8_t * pane2dgray16_dupdatap ( pane2d_handle pane, int padding );
293void pane2dgray16_freedatap ( pane2d_handle pane, uint8_t * image );
297uint16_t * pane2dgray16_dupdata16p ( pane2d_handle pane, int padding );
301void pane2dgray16_freedata16p ( pane2d_handle pane, uint16_t * image );
305void pane2dgray16_dupxy ( pane2d_handle pane, int * x, int * y);
310 uint32_t typerequested,
311 struct pane2d_dupgen_funcs * dest
312);
313
314
315/* Generic Drawing Pane (2-D) Debug Functions */
332void pane2dgray16_print_segment ( pane2d_handle image, int use_rgb );
333
334
335/* Generic Drawing Pane (2-D) Vertex Functions */
339void pane2dgray16_vertex_setopts ( pane2d_handle pane, uint32_t newopts );
348 pane2d_handle pane,
349 int elm,
350 struct pane2d_vertex_elm * dest
351);
356 pane2d_handle pane,
357 int elm,
358 struct pane2d_vertex_elm_v2 * dest
359);
360
361/* Generic Drawing Pane (2-D) Texture Functions */
369 pane2d_handle pane,
370 uint8_t gray,
371 uint8_t alpha,
373);
378 pane2d_handle pane,
379 uint16_t gray,
380 uint16_t alpha,
382);
390 pane2d_handle pane,
391 uint8_t red,
392 uint8_t green,
393 uint8_t blue,
394 uint8_t alpha,
396);
401 pane2d_handle pane,
402 uint16_t red,
403 uint16_t green,
404 uint16_t blue,
405 uint16_t alpha,
407);
412 pane2d_handle pane,
414 uint64_t number
415);
426uint32_t pane2dgray16_colortype ( void );
427
428/* Generic Drawing Pane (2-D) Drawing Functions */
432void pane2dgray16_drawpixel ( pane2d_handle pane, int x, int y );
437 pane2d_handle pane,
438 int d,
439 int x1,
440 int y1,
441 int x2,
442 int y2
443);
448 pane2d_handle pane,
449 int d,
450 int x,
451 int y,
452 int r
453);
458 pane2d_handle pane,
460 int x,
461 int y,
462 int r
463);
468 pane2d_handle pane,
469 int d,
470 int x,
471 int y,
472 int rx,
473 int ry
474);
479 pane2d_handle pane,
481 int x,
482 int y,
483 int rx,
484 int ry
485);
486
491 pane2d_handle pane,
492 int d,
493 int x1,
494 int y1,
495 int x2,
496 int y2
497);
502 pane2d_handle pane,
504 int x1,
505 int y1,
506 int x2,
507 int y2
508);
513 pane2d_handle pane,
514 int d,
515 int l,
516 int x1,
517 int y1
518);
523 pane2d_handle pane,
525 int l,
526 int x1,
527 int y1
528);
529
534 pane2d_handle pane,
535 int d,
536 int x1,
537 int y1,
538 int x2,
539 int y2,
540 int x3,
541 int y3
542);
547 pane2d_handle pane,
549 int x1,
550 int y1,
551 int x2,
552 int y2,
553 int x3,
554 int y3
555);
556
561 pane2d_handle pane,
562 int d,
563 int x1,
564 int y1,
565 int x2,
566 int y2,
567 int b
568);
573 pane2d_handle pane,
575 int x1,
576 int y1,
577 int x2,
578 int y2,
579 int b
580);
586 pane2d_handle pane,
587 int d,
588 int x1,
589 int y1,
590 int x2,
591 int y2
592);
593#endif /* not PANE2DGRAY16_H */
594
595
int pane2dgray16_changeowningthread(pane2d_handle pane, void *newthread, int addref)
void pane2dgray16_texture_clear(pane2d_handle pane)
uint64_t pane2dgray16_texture_add_rgb(pane2d_handle pane, uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha, pane2d_texture_handle *dest)
int pane2dgray16_type(void)
void pane2dgray16_set_tty(void *fildescout, void *fildescerr)
DWORD pane2dgray16_getownerinfo_windows(pane2d_handle pane, LPHANDLE destvar)
void pane2dgray16_getref(pane2d_handle pane, int *refcount, int *refwaiting)
void pane2dgray16_freeimage(pane2d_handle pane, uint8_t **image)
int pane2dgray16_is_multithreaded(pane2d_handle pane)
uint8_t ** pane2dgray16_dupimage(pane2d_handle pane, int padding)
int pane2dgray16_can_multithread(void)
int pane2dgray16_waituntilowner(pane2d_handle pane, int addref)
int pane2dgray16_addref(pane2d_handle pane)
void pane2dgray16_drawsquare(pane2d_handle pane, int d, int l, int x1, int y1)
void pane2dgray16_lang(stick2xyz_print_ptr newval)
int pane2dgray16_get_bpp(void)
pane2d_handle pane2dgray16_alloc_multithread(int x, int y, size_t maxthreads, uint32_t typesallowed)
pane2d_handle pane2dgray16_alloc(int x, int y)
void pane2dgray16_drawrect(pane2d_handle pane, int d, int x1, int y1, int x2, int y2)
uint16_t * pane2dgray16_dupdata16p(pane2d_handle pane, int padding)
void pane2dgray16_drawcircle(pane2d_handle pane, int d, int x, int y, int r)
int pane2dgray16_termwaituntilowner(pane2d_handle pane)
void pane2dgray16_print_segment(pane2d_handle image, int use_rgb)
void pane2dgray16_vertex_setopts(pane2d_handle pane, uint32_t newopts)
void pane2dgray16_freeimage16(pane2d_handle pane, uint16_t **image)
stick2xyz_pctchar pane2dgray16_desc(void)
void pane2dgray16_fillrighttriangle(pane2d_handle pane, pane2d_texture_handle src, int x1, int y1, int x2, int y2, int b)
BOOL pane2dgray16_freedrawaclinfo_windows(pane2d_handle pane, struct pane2d_drawacl *src)
void pane2dgray16_drawtriangle(pane2d_handle pane, int d, int x1, int y1, int x2, int y2, int x3, int y3)
stick2xyz_pctchar pane2dgray16_name(void)
void pane2dgray16_freedata16p(pane2d_handle pane, uint16_t *image)
int pane2dgray16_candraw(pane2d_handle pane)
void pane2dgray16_fillcircle(pane2d_handle pane, pane2d_texture_handle src, int x, int y, int r)
void * pane2dgray16_eventreleased(pane2d_handle pane)
BOOL pane2dgray16_getdrawaclinfo_windows(pane2d_handle pane, struct pane2d_drawacl *dest)
int pane2dgray16_texture_enum(pane2d_handle pane, pane2d_texture_handle *dest, uint64_t number)
int pane2dgray16_vertex_get(pane2d_handle pane, int elm, struct pane2d_vertex_elm *dest)
uint32_t pane2dgray16_vertex_getopts(pane2d_handle pane)
void pane2dgray16_fillellipse(pane2d_handle pane, pane2d_texture_handle src, int x, int y, int rx, int ry)
int pane2dgray16_changeaccesscontrol(pane2d_handle pane, void *hthread, int hthreadsize, uint32_t flags)
int pane2dgray16_dupfunc_getlist(uint32_t typerequested, struct pane2d_dupgen_funcs *dest)
void pane2dgray16_filltriangle(pane2d_handle pane, pane2d_texture_handle src, int x1, int y1, int x2, int y2, int x3, int y3)
uint64_t pane2dgray16_texture_add_gray(pane2d_handle pane, uint8_t gray, uint8_t alpha, pane2d_texture_handle *dest)
void pane2dgray16_drawpixel(pane2d_handle pane, int x, int y)
void pane2dgray16_freedatap(pane2d_handle pane, uint8_t *image)
void pane2dgray16_fillrect(pane2d_handle pane, pane2d_texture_handle src, int x1, int y1, int x2, int y2)
void pane2dgray16_drawline(pane2d_handle pane, int d, int x1, int y1, int x2, int y2)
void pane2dgray16_fillsquare(pane2d_handle pane, pane2d_texture_handle src, int l, int x1, int y1)
void pane2dgray16_drawtworighttriangles(pane2d_handle pane, int d, int x1, int y1, int x2, int y2)
void pane2dgray16_dupxy(pane2d_handle pane, int *x, int *y)
int pane2dgray16_vertex_get_v2(pane2d_handle pane, int elm, struct pane2d_vertex_elm_v2 *dest)
uint8_t ** pane2dgray16_dupdata(pane2d_handle pane, int padding)
void pane2dgray16_clear(pane2d_handle pane)
uint32_t pane2dgray16_colortype(void)
int pane2dgray16_releaseref(pane2d_handle pane, int asyncrelease, int shutdown)
void pane2dgray16_drawellipse(pane2d_handle pane, int d, int x, int y, int rx, int ry)
uint64_t pane2dgray16_texture_add_rgb16(pane2d_handle pane, uint16_t red, uint16_t green, uint16_t blue, uint16_t alpha, pane2d_texture_handle *dest)
void pane2dgray16_drawrighttriangle(pane2d_handle pane, int d, int x1, int y1, int x2, int y2, int b)
void pane2dgray16_version(int *dest)
uint64_t pane2dgray16_texture_add_gray16(pane2d_handle pane, uint16_t gray, uint16_t alpha, pane2d_texture_handle *dest)
uint16_t ** pane2dgray16_dupimage16(pane2d_handle pane, int padding)
uint8_t * pane2dgray16_dupdatap(pane2d_handle pane, int padding)
int pane2dgray16_isowner(pane2d_handle pane)
void pane2dgray16_free(pane2d_handle pane)
const wchar_t * stick2xyz_pctchar
Definition: stick2xyz.h:145
void * pane2d_texture_handle
Definition: stick2xyz.h:453
void * pane2d_handle
Definition: stick2xyz.h:447

SourceForge.net Logo  stick2xyz Project Page