Jump to content
  • Advertisement
Sign in to follow this  
Kitasia

2D OpenGL rendering in SDL

This topic is 4899 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

I was wondering if anyone has any good tutorials on 2D OpenGL rendering in SDL. I don't want to use OpenGL for anything other than drawing. It seems like SDL was set up to do that easily but I'm having a bit of trouble (probably because I don't know the first thing about OpenGL). I'm making the OpenGL blitting switch because I noticed major slowdown in better computers. Any help would be appreciated. Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
Well, it's still under revision, but you can take hxRender for a spin. It's been used in shareware projects already. http://home.student.uu.se/gone7061/

you can download it here: https://mavdisk.mnsu.edu/longaj/hxrender/

the documentation is here: https://mavdisk.mnsu.edu/longaj/hxrender/apiref.html

The source is provided so you can write your own if this doesn't work for you. I think it is prety clean, so you can use that as a tutorial if you like. Any questions, just ask.

Share this post


Link to post
Share on other sites
This looks like it could be very handy! Only problem is I'm having trouble blitting surfaces. I keep getting this blue diamond that fades into black. Once I got light green. I think it changes color depending on the IMG. I'll have to look a bit closer on the documentation. (A sample would've been nice [crying])

Share this post


Link to post
Share on other sites
I've tried setting up to where I can move the blue diamond and from what I can see, it looks like a hyper zoomed in version of the image[oh].This seems to be getting better and better once I figure this problem out.

Updated: It was a camera issue [grin]. From what I've tested this looks very promising. I've drawn 6 640x480 surfaces at 36 fps. A hefty improvment over my old setup. Thanks fro the help!

Share this post


Link to post
Share on other sites
Quote:
Original post by AntiGuy
I've tried setting up to where I can move the blue diamond and from what I can see, it looks like a hyper zoomed in version of the image[oh].This seems to be getting better and better once I figure this problem out.

Updated: It was a camera issue [grin]. From what I've tested this looks very promising. I've drawn 6 640x480 surfaces at 36 fps. A hefty improvment over my old setup. Thanks fro the help!


Not a problem ;). Feel free to PM me for contact info, if you run into any roadblocks.

Share this post


Link to post
Share on other sites
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!