adubbz / nanovg-deko3d Goto Github PK
View Code? Open in Web Editor NEWA port of NanoVG to the deko3d low level graphics API for the Nintendo Switch
License: zlib License
A port of NanoVG to the deko3d low level graphics API for the Nintendo Switch
License: zlib License
The error is related to the lack of including the optional
header in dk_renderer.hpp
.
Hey!
I tried to implement dynamic images in borealis, so I used nvgCreateImageMem. However, at some resolutions of the bitmap I generate, it fails. I tracked it down to nvgCreateImageMem -> stbi_load_from_memory -> stbi_load_flip -> stbi_load_main -> stbi_bmp_load -> stbi_malloc, which sometimes fails, and sometimes doesn't.
I tried the following .bmp resolutions:
170x170 - does NOT work
257x257 - works
259x259 - works
260x260 - works
261x261 - works
262x262 - works
263x263 - works
267x267 - does NOT work
Maybe the memory which is allocated inside sbti_malloc is not aligned? You can read more about the bitmap generation I use here, I thought it might be a nanovg issue, but probably it's more an issue of this port.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.