Sign in to follow this  
gonegaming12

Does SDL.Net support...

Recommended Posts

So I was trying to figure out how to use SDL.Net when and I got this code going...

        Dim surface As New SdlDotNet.Graphics.Surface(SC.Width, SC.Height)
        Dim sprite As New SdlDotNet.Graphics.Sprites.Sprite("c:/theface.png")
        surface.Blit(sprite)
        SC.Blit(surface)



Then I was going to change that sprite to a surface loading in one of my games tilesets and mess around with tile engine stuff and I didnt see what I needed. So DirectDraw has this line of code.

     Dim backbuffer As Microsoft.DirectX.DirectDraw.Surface
     backbuffer.Draw(destrectangle as system.drawing.rectangle, sourcesurface as directdraw.surface, srcrectangle as system.drawing.rectangle, flags as directdraw.flags)



I am like ok got the destination point in SDL.Net, got the sourcesurface too...flags idk, probably dont need em,...WAIT OMG NOT SRCRECTANGLE. the only srcrectangle i could find was for a core.basesdlresource. So does SDL.Net support doing blitting out part of a image and I am just not finding how to do this or whats going on. [Edited by - gonegaming12 on October 14, 2007 8:32:26 AM]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this