SDL + SVG Vectors

I havnt really had a chance to read up / research what if anything is possible
with using vectors to create SDL_Surface’s.

I’m not sure what technologies may be avaliable and if there is what sort of
things they may be capable off, anti alias… rotate… shading?

if anyone can give me any tips before i do a 4 hour google trawl please …

I am wanting to do this so that ( in theory ) i can use the same graphics files
and the program adapts according to screen size.

Tux Paint uses libRSVG (or can also use libSVG and Cairo).
http://www.tuxpaint.org/download/source/

-bill!On Tue, Feb 26, 2008 at 06:29:26PM +0000, neil at cloudsprinter.com wrote:

I havnt really had a chance to read up / research what if anything is possible
with using vectors to create SDL_Surface’s.

libsdl-svg is a library that aims to do the same thing.> ----- Original Message -----

From: “neil at cloudsprinter.com
To: sdl at lists.libsdl.org
Sent: Tuesday, February 26, 2008 11:29:26 AM
Subject: [SDL] SDL + SVG Vectors

I

havnt

really

had

a

chance

to

read

up

/

research

what

if

anything

is

possible

with

using

vectors

to

create

SDL_Surface’s.

I’m

not

sure

what

technologies

may

be

avaliable

and

if

there

is

what

sort

of

things

they

may

be

capable

off,

anti

alias…

rotate…

shading?

if

anyone

can

give

me

any

tips

before

i

do

a

4

hour

google

trawl

please

I

am

wanting

to

do

this

so

that

(

in

theory

)

i

can

use

the

same

graphics

files

and

the

program

adapts

according

to

screen

size.


SDL

mailing

list

SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Tux Paint uses libRSVG (or can also use libSVG and Cairo).
http://www.tuxpaint.org/download/source/

you use this to create a pixel dump you put in to a surface?

sorry i should read the source and stuff

whatever it is i use it needs to be easily cross compatible ( might be able to
nudge people to make it work for me ), and preferably pretty much easy linked
to SDL ( lazy me )

Quoting Kevron Rees :

libsdl-svg is a library that aims to do the same thing.

URL? google results seem random

Tux Paint uses libRSVG (or can also use libSVG and Cairo).
http://www.tuxpaint.org/download/source/

you use this to create a pixel dump you put in to a surface?

Correct. If you’ve never used Tux Paint, it has a ‘Stamps’ tool.
Most of the stamps are PNGs, but recently we’ve been adding SVG ones.

sorry i should read the source and stuff

whatever it is i use it needs to be easily cross compatible ( might be able to
nudge people to make it work for me ), and preferably pretty much easy linked
to SDL ( lazy me )

The SVG support is available in Tux Paint on modern Windows systems
(XP, 2000, Vista). I think the older (non-libRSVG stuff) works on older
Windows (95, 98, ME).

The SVG support is available on Mac OS X. And, of course, Linux.

The bits of code in Tux Paint that you want are within tuxpaint.c,
in “load_svg()” and “myIMG_load()”. (If SVG support is completely off,
I simply “#define myIMG_load IMG_Load” (SDL_Image’s function). If SVG support
is on, it wraps around IMG_load for PNGs, and my own SVG loading stuff,
for SVGs.)

Note: There are two "load_svg()“s in Tux Paint. One is used when
"OLD_SVG” is #defined (that’s the libSVG and libCairo stuff).
The other is used with the better, more modern, heftier libraries (libRSVG
and friends).

The modern load_svg() is about 180 lines of C code, including blank lines,
some debug printouts, and comments. :)On Tue, Feb 26, 2008 at 10:43:51PM +0000, neil at cloudsprinter.com wrote:


-bill!
bill at newbreedsoftware.com
http://www.newbreedsoftware.com/

URL?
google
results
seem
random

http://www.linuxmotors.com/SDL_svg/

No updates since late 2005. :(On Wed, Feb 27, 2008 at 05:28:16AM -0800, Kevron Rees wrote:

http://www.linuxmotors.com/SDL_svg/


-bill!
bill at newbreedsoftware.com
http://www.newbreedsoftware.com/