Jump to content
  • Advertisement
Sign in to follow this  
gonegaming12

Does SDL.Net support...

This topic is 3934 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!