TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

LibNSFB – Framebuffer (bitmap on screen) abstraction library, written in C

72 点作者 peter_d_sherman7 个月前

6 条评论

peter_d_sherman7 个月前
&gt;LibNSFB: &quot;The overall idea of the library is to provide a<p><i>generic abstraction to a linear section of memory which corresponds to a visible array of pixel elements on a display [surface, context, software abstraction layer or] device</i><p>Different colour depths are supported and the library provides routines for tasks such as drawing onto the framebuffer and rectangle copy operations.<p>LibNSFB currently supports the following as framebuffer providers:<p>Linux framebuffer<p>X<p>SDL<p>VNC<p>ABLE framebuffer&quot;<p>Absolutely beautiful -- and necessary!<p>I was looking for a library like this that was not tightly coupled to other extraneous and unnecessary software (aka &quot;bloatware&quot;) but could work across multiple graphics context providers, providing the same abstraction to each (i.e., software that is written for one software stack, i.e., X, automatically works for another software stack, i.e., SDL).<p>Here we&#x27;re not trying to be a game engine or a sound engine or anything else.<p>We (by which I mean the developers!) are only trying to do one thing and do it right, and that&#x27;s to abstract a graphical drawing surface, a bitmap, a &quot;graphical viewport on the screen&quot; across all of the above lower-level implementations.<p>So, I was looking for something like this for some time...<p>Well done!
评论 #41950580 未加载
volemo7 个月前
I believe fenster [1] is an alternative.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;zserge&#x2F;fenster">https:&#x2F;&#x2F;github.com&#x2F;zserge&#x2F;fenster</a>
评论 #41953207 未加载
kragen7 个月前
My own solution to this problem is Yeso: <a href="https:&#x2F;&#x2F;gitlab.com&#x2F;kragen&#x2F;bubbleos&#x2F;-&#x2F;tree&#x2F;master&#x2F;yeso" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;kragen&#x2F;bubbleos&#x2F;-&#x2F;tree&#x2F;master&#x2F;yeso</a><p>Under 20 kilobytes, 24-bit TrueColor only, with backends for X-Windows and the Linux framebuffer, and frontends for C, Python, and LuaJIT, and also providing keyboard and mouse events and loading of PNG and JPEG files (via libpng and libjpeg) and some half-baked text rendering stuff.<p>Fenster looks great too. I hadn&#x27;t seen LibNSFB or miniFB before.
ChickeNES7 个月前
MiniFB is another option: <a href="https:&#x2F;&#x2F;github.com&#x2F;emoon&#x2F;minifb">https:&#x2F;&#x2F;github.com&#x2F;emoon&#x2F;minifb</a>
snvzz7 个月前
Also quite interesting, this is part of an original web browser project[0].<p>0. <a href="https:&#x2F;&#x2F;www.netsurf-browser.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.netsurf-browser.org&#x2F;</a>
Dwedit7 个月前
Dimensions, Pointer to Scanline 0, Stride, and Pixel Format. What else do you need before you start processing images?
评论 #41953008 未加载