Sdl very basic question

Hello, this is my first time here. I would like to know how to see the questions of others…

i would like also to know how to obtain time information from SDL…
For example… I know

SDL_GetTicks() gives information about msec… i would like to get information in 1e-6

thanks

Hello, this is my first time here. I would like to know how to see the
questions of others…

Reading the mailing list is a good way… But, if you want to look at
old posting just go to http://twomix.devolution.com/pipermail/sdl/

i would like also to know how to obtain time information from SDL…
For example… I know

SDL_GetTicks() gives information about msec… i would like to get
information in 1e-6

SDL does not provide a way to do that. You will have to look for an OS
specific function to get that.

		Bob PendletonOn Wed, 2004-11-10 at 13:36, Cesar Mendoza wrote:

thanks



SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

±-------------------------------------+

“Cesar Mendoza” <c.mendoza at escet.urjc.es> wrote in
news:007b01c4c75c$a07d6e70$780180d4 at cmendoza:

This is a multi-part message in MIME format.

------=_NextPart_000_0078_01C4C764.FF3FE110
Hello, this is my first time here. I would like to know how to see the
questions of others…

you can also check old postings and do posting through gmane.org newserver.
That’s the way I do it and I find its usage quite convenient.

Here’s an interesting question:

If one uses SDL_image’s “IMG_Load” function to load an
SDL_Surface from a file – will this loaded surface be in
video memory or system memory? I can’t find any
information on the SDL_image documentation site.

I NEED the loaded image to be in video memory – as I need
hardware blitting for the surface.

How is one supposed to know?

Thanks,

Mr. Paul

P.S. David Olofson is my hero.

Paul Lowe wrote:

If one uses SDL_image’s “IMG_Load” function to load an
SDL_Surface from a file – will this loaded surface be in
video memory or system memory? I can’t find any
information on the SDL_image documentation site.

I’m pretty sure it is in system memory, and in the orginal pixel format.
Use SDL_DisplayFormat or SDL_DisplayFormatAlpha to convert the surface to
its optimal format. This will create the surface in video memory where
available.

–?
Rainer Deyke - rainerd at eldwood.com - http://eldwood.com

Paul Lowe wrote:

If one uses SDL_image’s “IMG_Load” function to load an
SDL_Surface from a file – will this loaded surface be in
video memory or system memory? I can’t find any
information on the SDL_image documentation site.

I’m pretty sure it is in system memory, and in the orginal pixel format.

It is always in system memory. There are two ways to get it into
system memory. If you are using OpenGL you must upload it as a texture.
If not, then you must create a hardware surface and blit the surface you
got from IMG_load to the hardware surface.

	Bob PendletonOn Fri, 2004-12-10 at 00:33, Rainer Deyke wrote:

Use SDL_DisplayFormat or SDL_DisplayFormatAlpha to convert the surface to
its optimal format. This will create the surface in video memory where
available.

–?
Rainer Deyke - rainerd at eldwood.com - http://eldwood.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

±-------------------------------------+

Bob Pendleton wrote:

It is always in system memory. There are two ways to get it into
system memory. If you are using OpenGL you must upload it as a texture.

He meant video/hardware memory here.> If not, then you must create a hardware surface and blit the surface you

got from IMG_load to the hardware surface.

  Bob Pendleton

Bob Pendleton wrote:

It is always in system memory. There are two ways to get it into
system memory. If you are using OpenGL you must upload it as a texture.

He meant video/hardware memory here.

Yes, that’s what I meant. (As I wipe the egg off my face…)

	Bob PendletonOn Fri, 2004-12-10 at 12:28, Scott Harper wrote:

If not, then you must create a hardware surface and blit the surface you
got from IMG_load to the hardware surface.

  Bob Pendleton

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

±-------------------------------------+