Comments (6)
Not sure what you mean? This library doesn't depend on SDL nor openGL, and can be compiled with a plain C compiler.
from lodepng.
Yep, it does support plain C90. There is an ifdef for C++ and for C in the same file, you can rename the .cpp to .c. It is just integrated all in one source file to keep it a single file library :)
from lodepng.
The good thing would be that there is X11 (without SDL or Opengl). Just show a picture using the basic Xorg X11 library.
from lodepng.
The core library itself is purely a "convert one byte stream to other byte stream" encoder/decoder, which doesn't interface with other libraries like graphics renderers. Adding such dependencies, even optional, is out of scope for this library.
An example, like the SDL example, might work. It would be more an example showing how to draw pixels in X11 than it is about PNG, but the SDL example is like that too of course. A contribution of such an example similar to the SDL one is welcome.
from lodepng.
The problem is that since sdl 2.0 and higher versions, the graphical applications may run slow on many hardwares.
Really x11 is surely not very fancy, beautiful, but it is just working (reliable).
from lodepng.
Well but the SDL example is just an example, if you want fast rendering it's better to use a good rendering engine anyway (SDL seems fast to me by the way, at least when I used it in the 1.2 era). Like, if X11 suits your needs, why not that one indeed.
In a real world application where speed matters, I assume you want to do more than just display a single PNG image in a window that closes as soon as you press any key, so there will be more work needed anyway than what a simple example in a PNG decoding library can give.
from lodepng.
Related Issues (20)
- fatal error LNK1120: 4 unresolved externals HOT 1
- W64 HOT 2
- sdl2 HOT 6
- vulnerability Discover HOT 2
- what's mean of this define LODEPNG_NO_COMPILE_ANCILLARY_CHUNKS and when should i define it
- code optimization
- Че за хрень 64 бит компиляция HOT 1
- Sudden increase in build size HOT 1
- Memory leaks in function benchmark.
- SEGV on unknown address in function pngdetail. HOT 2
- How to get a JSON string from the encoded image ? HOT 3
- Expected speed? HOT 6
- Fix warnings: `conversion from 'size_t' to 'unsigned short', possible loss of data` HOT 2
- chunk type is restricted to the decimal values 65 to 90 and 97 to 122
- Veracode discovered a race condition
- Consideration for changing the License to public domain
- allocate "reserved_size" extra memory
- Lodepng fails to open valid png image HOT 4
- Clarification on "filter_palette_zero"
- lodepng crashes ntdll.dll
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lodepng.