Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dankamongmen/ncvisual blit #2276

Merged
merged 51 commits into from
Oct 16, 2021
Merged
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
b8a66fe
[heuristics] GNU screen 4x never has rgb
dankamongmen Oct 12, 2021
febaff3
[BitmapSmoothMove] only WARN in test until sixel supports this #2258
dankamongmen Oct 12, 2021
b2d7458
add minimal example for #2266
joseluis Oct 13, 2021
939d54d
contour: enable sextants
dankamongmen Oct 13, 2021
d82cc8e
interp PoC: clean up ncvisual #2266
dankamongmen Oct 13, 2021
1152e2c
ncselector_options: constify string arguments
dankamongmen Oct 13, 2021
2015e8f
Constify strings in selector/mselector_items
dankamongmen Oct 13, 2021
abea3f9
constify ncmenu_item/_section strings
dankamongmen Oct 14, 2021
245f9f8
Use Windows pipes for input readiness notification (#2263)
dankamongmen Oct 14, 2021
b0b4c96
for now, if it's on windows, it's windows terminal #2248
dankamongmen Oct 14, 2021
99169ae
tabbed janitorial work
dankamongmen Oct 14, 2021
f05f65d
notcurses-demo FPS graph: back to straight seconds
dankamongmen Oct 14, 2021
b87d8f1
[info] expand some emoji into proper literals
dankamongmen Oct 14, 2021
fb2078d
drop textplay PoC
dankamongmen Oct 14, 2021
383edae
remove poc for issue #2266
joseluis Oct 14, 2021
1e1d1bb
constify ncselector_item reference fix #2270
joseluis Oct 14, 2021
ec67847
[ncplayer] restore pause functionality with NCTYPE_RELEASE
dankamongmen Oct 16, 2021
4fc1b44
stop pushing termtype to interrogate_terminfo
dankamongmen Oct 16, 2021
d6a91fb
menu PoC: ignore NCTYPE_RELEASE
dankamongmen Oct 16, 2021
d26374a
properly name Windows Terminal
dankamongmen Oct 16, 2021
eb032cc
[windows] HANDLE, not PHANDLE
dankamongmen Oct 16, 2021
be42ff9
ncvisual_render -> ncvisual_blit (core/test) #1462
dankamongmen Oct 16, 2021
bb2004e
ncvisual_render -> ncvisual_blit (docs)
dankamongmen Oct 16, 2021
e95e2fa
ncvisual_render -> ncvisual_blit (nctetris)
dankamongmen Oct 16, 2021
f096064
[keller] fix up for ncvisual_blit() #1462
dankamongmen Oct 16, 2021
2c8286c
stacking tests: ncvisual_render() -> ncvisual_blit() #1462
dankamongmen Oct 16, 2021
0afd815
all PoCs: ncvisual_render -> ncvisual_blit #1462
dankamongmen Oct 16, 2021
5db0f34
restore ncvisual_inflate(), for now
dankamongmen Oct 16, 2021
36646f1
pixel PoC / ncneofetch -> ncvisual_blit() #1462
dankamongmen Oct 16, 2021
02303ee
notcurses-info: ncvisual_blit, inline all emoji #1462
dankamongmen Oct 16, 2021
367c17a
rotate PoCpp: ncvisual_blit() #1462
dankamongmen Oct 16, 2021
d5626e6
xray/grid: ncvisual_blit() #1462
dankamongmen Oct 16, 2021
9d002fe
remove last instances of ncvisual_render() #1462
dankamongmen Oct 16, 2021
370c9c6
remove old-style notcurses_ rendering functions
dankamongmen Oct 11, 2021
cf176e5
ncstrwidth() becomes static inline wrapper #1777
dankamongmen Oct 11, 2021
a9a9c51
remove deprecated ncvisual_subtitle()
dankamongmen Oct 11, 2021
b5ee18f
kill ncvisual_inflate(), long deprecated #1777
dankamongmen Oct 11, 2021
9389563
remove deprecated palette256 wrappers #1777
dankamongmen Oct 11, 2021
5d31251
kill ncplane_new() #1777
dankamongmen Oct 11, 2021
962087a
remove deprecated renderfp field from notcurses_options #1777
dankamongmen Oct 11, 2021
021a6ea
reorder ncstats fields to match documentation #1777
dankamongmen Oct 11, 2021
59b64c3
kill deprecated style functions #1777
dankamongmen Oct 11, 2021
6f0c6a8
ncplane_move{top, bottom} become static inline #1777
dankamongmen Oct 11, 2021
a75e8f9
fix up move_above()/move_below() #1777
dankamongmen Oct 11, 2021
17425e2
ncplane_pixelgeom -> ncplane_pixel_geom() #1777
dankamongmen Oct 11, 2021
e30117c
ncstyle functions ought return uint16_t #1777 #2200
dankamongmen Oct 11, 2021
308d788
ncvisualplane_create: provide new pile functionality #1462
dankamongmen Oct 12, 2021
3598760
introduce ncvisual_blit() #1462
dankamongmen Oct 12, 2021
2f9da32
reduce ncvisual_render() to wrapper around ncvisual_blit() #1462
dankamongmen Oct 12, 2021
1630730
convert most ncvisual_render()s to ncvisual_blit() #1642
dankamongmen Oct 12, 2021
bcf7af7
Merge branch 'dankamongmen/3.0.0' into dankamongmen/ncvisual_blit
dankamongmen Oct 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ncvisualplane_create: provide new pile functionality #1462
  • Loading branch information
dankamongmen committed Oct 16, 2021
commit 308d78836565619d6af1ba273eeed9905dfc1e00
2 changes: 2 additions & 0 deletions doc/man/man3/notcurses_visual.3.md
Original file line number Diff line number Diff line change
@@ -79,6 +79,8 @@ typedef int (*streamcb)(struct notcurses*, struct ncvisual*, void*);

**static inline struct ncplane* ncvisualplane_create(struct notcurses* ***nc***, const struct ncplane_options* ***opts***, struct ncvisual* ***ncv***, struct ncvisual_options* ***vopts***);**

**static inline struct ncplane* ncvisualplane_create(struct notcurses* ***nc***, const struct ncplane_options* ***opts***, struct ncvisual* ***ncv***, struct ncvisual_options* ***vopts***);**

**int ncvisual_simple_streamer(struct ncplane* ***n***, struct ncvisual* ***ncv***, const struct timespec* ***disptime***, void* ***curry***);**

**int ncvisual_stream(struct notcurses* ***nc***, struct ncvisual* ***ncv***, float ***timescale***, streamcb ***streamer***, const struct ncvisual_options* ***vopts***, void* ***curry***);**
12 changes: 6 additions & 6 deletions include/notcurses/notcurses.h
Original file line number Diff line number Diff line change
@@ -2933,12 +2933,12 @@ API int ncvisual_set_yx(const struct ncvisual* n, int y, int x, uint32_t pixel)
__attribute__ ((nonnull (1)));

// Render the decoded frame according to the provided options (which may be
// NULL). The plane used for rendering depends on vopts->n and vopts->flags. If
// NCVISUAL_OPTION_CHILDPLANE is set, vopts->n must not be NULL, and the plane
// will always be created as a child of vopts->n. If this flag is not set, and
// vopts->n is NULL, a new plane is created as a child of the standard plane.
// If the flag is not set and vopts->n is not NULL, we render to vopts->n. A
// subregion of the visual can be rendered using 'begx', 'begy', 'lenx', and
// NULL). The plane used for rendering depends on vopts->n and vopts->flags.
// If NCVISUAL_OPTION_CHILDPLANE is set, vopts->n must not be NULL, and the
// plane will always be created as a child of vopts->n. If this flag is not
// set, and vopts->n is NULL, a new plane is created as root of a new pile.
// If the flag is not set and vopts->n is not NULL, we render to vopts->n.
// A subregion of the visual can be rendered using 'begx', 'begy', 'lenx', and
// 'leny'. Negative values for 'begy' or 'begx' are an error. It is an error to
// specify any region beyond the boundaries of the frame. Returns the (possibly
// newly-created) plane to which we drew. Pixels may not be blitted to the