-
Data: 2015-03-30 10:08:20
Temat: choosing "small 2d graphics library" interface
Od: firr <p...@g...com> szukaj wiadomości tego autora
[ pokaż wszystkie nagłówki ](pytanie po angielsku bo nie che mi sie przepisywac)
(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?
Najnowsze wątki z tej grupy
- Can you activate BMW 48V 10Ah Li-Ion battery, connecting to CAN-USB laptop interface ?
- We Wrocławiu ruszyła Odra 5, pierwszy w Polsce komputer kwantowy z nadprzewodzącymi kubitami
- Ada-Europe - AEiC 2025 early registration deadline imminent
- John Carmack twierdzi, że gdyby gry były optymalizowane, to wystarczyły by stare kompy
- Ada-Europe Int.Conf. Reliable Software Technologies, AEiC 2025
- Linuks od wer. 6.15 przestanie wspierać procesory 486 i będzie wymagać min. Pentium
- ,,Polski przemysł jest w stanie agonalnym" - podkreślił dobitnie, wskazując na brak zamówień.
- Rewolucja w debugowaniu!!! SI analizuje zrzuty pamięci systemu M$ Windows!!!
- Brednie w wiki - hasło Dehomag
- Perfidne ataki krakerów z KRLD na skrypciarzy JS i Pajton
- Instytut IDEAS może zacząć działać: "Ma to być unikalny w europejskiej skali ośrodek badań nad sztuczną inteligencją."
- Instytut IDEAS może zacząć działać: "Ma to być unikalny w europejskiej skali ośrodek badań nad sztuczną inteligencją."
- Instytut IDEAS może zacząć działać: "Ma to być unikalny w europejskiej skali ośrodek badań nad sztuczną inteligencją."
- U nas propagują modę na SI, a w Chinach naukowcy SI po kolei umierają w wieku 40-50lat
- C++. Podróż Po Języku - komentarz
Najnowsze wątki
- 2025-07-11 Warszawa => International Freight Forwarder <=
- 2025-07-11 Warszawa => Spedytor Międzynarodowy <=
- 2025-07-11 MObywatel - fantazja poniosła
- 2025-07-11 Białystok => Programista Kotlin <=
- 2025-07-11 Kraków => PHP Developer (Full Stack) <=
- 2025-07-11 Warszawa => Specialist in Administration <=
- 2025-07-11 Warszawa => Specjalista/tka ds. Administracji <=
- 2025-07-11 Warszawa => Senior Product Manager <=
- 2025-07-11 Szczecin => Key Account Manager IT <=
- 2025-07-11 Łódź => Programista Mainframe (z/OS, Assembler) <=
- 2025-07-11 Łódź => Mainframe (z/OS, Assembler) Developer <=
- 2025-07-11 Wrocław => Konsultant wdrożeniowy (systemy controlingowe) <=
- 2025-07-11 Warszawa => Senior Fullstack Developer <=
- 2025-07-11 Tymczasowe wprowadzenie towaru na obszar celny EU przy przesyłce pocztowej
- 2025-07-10 Re: Co roku przez turbiny wiatrowe ginie nawet półmiliona ptaków