Re: Blade Brothers Engine: Creating my first 2D Game Engine
Posted: Thu Aug 05, 2010 9:58 am
If you'd like, I can give you my TextureLoader C++ class that I made for my engine. It's not great, but it'll show you the basics of loading a .png image with libpng, and setting it up for use with OpenGL, with full transparency working. I'm not completely done with the class, but it does work. If you want it, just send me a PM and I'll upload it somewhere for you.LeonBlade wrote:I'll look more into how to create textures without SDL when I wake up, it's 10 AM time for sleep haha.
Thanks for the help Milch!
Also...about your sluggishness when you start rending the map that way as well. Are you re-rendering each tile for the map each frame? Cause if so, that's the problem for you sluggishness...I fixed it by rendering the entire map to a texture, so I just have to use one draw call to draw the entire map to the screen.
I hope this helps. ^^