Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #5360 > unrolled thread

choosing "small 2d graphics library" interface

Started byfir <profesor.fir@gmail.com>
First post2015-03-29 00:59 -0700
Last post2015-03-29 07:58 -0700
Articles 3 — 2 participants

Back to article view | Back to comp.programming


Contents

  choosing "small 2d graphics library" interface fir <profesor.fir@gmail.com> - 2015-03-29 00:59 -0700
    Re: choosing "small 2d graphics library" interface Wally W. <ww84wa@aim.com> - 2015-03-29 10:21 -0400
      Re: choosing "small 2d graphics library" interface fir <profesor.fir@gmail.com> - 2015-03-29 07:58 -0700

#5360 — choosing "small 2d graphics library" interface

Fromfir <profesor.fir@gmail.com>
Date2015-03-29 00:59 -0700
Subjectchoosing "small 2d graphics library" interface
Message-ID<bd99236e-c76e-4e8a-9c61-7b19a4290ff7@googlegroups.com>
(here im speaking about c implementation only)

Im not sure if this question will find good 
answers here but imo problem is quite important 
(also interesting) 

I got something like that, small 2d per 
pixel library on my own, but the interface 
is a bit mess (not hard mess but i would 
like (ewentually) to get it really clean 
and tidy ;-) (im blinking becouse in my case 
it may be hard, but at least rethinking the 
interface is not bad) 

I need ExACT c intarface (small header) 
some questions to consider 

- should i make tlis library .lib or .dll, 
maybe source (if source should I put it in one 
file or more?) 

- should i make this library biger or smaller? 
I think smaller is beter, though it is not really 
clear if watching carefully, for example if 
i care about optimisation then i need like to provide more versions of routines) [such liberery is form its nature rather small, do not need 
vary many api calls, it seem that it should 
be for example between 10 to 50 functions 
exposed, draw line, set pixel, ew drav bezier, 
draw sprite etc 

- what should i put here (what functions ) to make it small but complete ?

- if i make variants for functions (for example 
draw line with antialiasing and without) should i make separate function calls of parametrise the one? 

- what style of function names should i exactly chose (this is most iportant question) 
[could someone maybe wrote down the complete exact header examle?]

- such library is a set of functions operating (writing to) a 2 dimensional pixel buffer (of size SIZE_X, SIZE_Y) i am not totally convinced how i should use this buffer, should it be 
encompased in library or should it be on the client code side and should i pass the pointer 
(and sizes) in each api call 
(efficiency is important so if i should pass 
those 3 values BUFF, SIZE_X, SIZE_Y to each 
draw pixel, drawline it would be probably a 
waste, so what options do i have? 

[toc] | [next] | [standalone]


#5361

FromWally W. <ww84wa@aim.com>
Date2015-03-29 10:21 -0400
Message-ID<te2ghap7p66vei21l1i8n0ed0gkrcpdv3p@4ax.com>
In reply to#5360
Expanding groups list. This was multi-posted.
http://oakroadsystems.com/genl/unice.htm#xpost
Crosspost, don’t multipost


On Sun, 29 Mar 2015 00:59:49 -0700 (PDT), fir wrote:

>(here im speaking about c implementation only)
>
>Im not sure if this question will find good 
>answers here but imo problem is quite important 
>(also interesting) 
>
>I got something like that, small 2d per 
>pixel library on my own, but the interface 
>is a bit mess (not hard mess but i would 
>like (ewentually) to get it really clean 
>and tidy ;-) (im blinking becouse in my case 
>it may be hard, but at least rethinking the 
>interface is not bad) 
>
>I need ExACT c intarface (small header) 
>some questions to consider 
>
>- should i make tlis library .lib or .dll, 
>maybe source (if source should I put it in one 
>file or more?) 
>
>- should i make this library biger or smaller? 
>I think smaller is beter, though it is not really 
>clear if watching carefully, for example if 
>i care about optimisation then i need like to provide more versions of routines) [such liberery is form its nature rather small, do not need 
>vary many api calls, it seem that it should 
>be for example between 10 to 50 functions 
>exposed, draw line, set pixel, ew drav bezier, 
>draw sprite etc 
>
>- what should i put here (what functions ) to make it small but complete ?
>
>- if i make variants for functions (for example 
>draw line with antialiasing and without) should i make separate function calls of parametrise the one? 
>
>- what style of function names should i exactly chose (this is most iportant question) 
>[could someone maybe wrote down the complete exact header examle?]
>
>- such library is a set of functions operating (writing to) a 2 dimensional pixel buffer (of size SIZE_X, SIZE_Y) i am not totally convinced how i should use this buffer, should it be 
>encompased in library or should it be on the client code side and should i pass the pointer 
>(and sizes) in each api call 
>(efficiency is important so if i should pass 
>those 3 values BUFF, SIZE_X, SIZE_Y to each 
>draw pixel, drawline it would be probably a 
>waste, so what options do i have? 

[toc] | [prev] | [next] | [standalone]


#5362

Fromfir <profesor.fir@gmail.com>
Date2015-03-29 07:58 -0700
Message-ID<06d6ab24-60a6-4865-b4c9-6ab789292d8c@googlegroups.com>
In reply to#5361
W dniu niedziela, 29 marca 2015 16:21:01 UTC+2 użytkownik Wally W. napisał:
> Expanding groups list. This was multi-posted.
> http://oakroadsystems.com/genl/unice.htm#xpost
> Crosspost, don’t multipost
> 

im using google groups probably i have no option for cross-posting (it would be better i think, but do i have such options in GG?)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.programming


csiph-web