sdl2-cairo-example
A simple SDL2 and cairo example.
Build
make
Usage
./sdl2-cairo
Screenshot
Platform
SDL2 is a cross-platform library.
It has been confirmed that sdl2-cairo
runs on following platforms.
- Ubuntu
- macOS
- MSYS2 + MinGW-w64 (Windows 10)
A simple SDL2 and cairo example
A simple SDL2 and cairo example.
make
./sdl2-cairo
SDL2 is a cross-platform library.
It has been confirmed that sdl2-cairo
runs on following platforms.
Hello,
I have fixed
You need replace "...scale" with "..._offset"
and
cairo_surface_set_device_offset(cr_surface, cairo_x_multiplier, cairo_y_multiplier);
It works fine.
I have ported from your source to C# But Cairo by Cra0zy or Mono Developer can't use it because byte[] was for pixels/data
I have created own CairoSharp and pixels/data uses to IntPtr now.
That is why I show you example I have made.
Sorry for late I explain you cairo_surface_set_device_scale() is old version. That is why we would like to use with "cairo_surface_set_device_offset()" in latest libcairo.so.2 from Linux.
Best regards and stay your healthy!
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.