HaxeFlixel / flixel

Free, cross-platform 2D game engine powered by Haxe and OpenFL
https://haxeflixel.com/
MIT License
1.98k stars 439 forks source link

Consider OpenGL rendering for native targets #440

Open Beeblerox opened 11 years ago

Beeblerox commented 11 years ago

Here is an OpenGL sample projects:

https://github.com/haxenme/NME/blob/master/samples/22-OGL/src/Main.hx

https://github.com/haxenme/NME/tree/master/samples/HerokuShaders

PaulGene commented 11 years ago

Sounds like a HUGE amount of work but flixel would probably be a lot more versatile for it. Being able to use shaders for things like post processing would be cool. It would be really great if we could send our own triangle meshes to the gpu too!

shadwstalkr commented 11 years ago

I thought that drawTiles already uses OpenGL on native targets. What's the difference between using drawTiles and using OpenGL manually?

Beeblerox commented 11 years ago

Yes, drawTiles() uses OpenGL and very fast, but it's quite limited: you can only draw transformed rectangles with very limited number of effects (only additive blending for example, no filters).