ok i dont know if any of you do this but im using sfml with qt, with qt creator. every thing works fine except loading images for the map window, one of the windows. i have a Main Window which has the menu buttons and stuff and i have 2 sfml windows... using the sfml tutorial base class and inheriting. one tile window and one map window. for loading tile sheets im using QFileDialog::getOpenFileName()(syntax check) then i loads for the tile window but not for the other window. how i load the sprites is when i create a new map i call
now the tiles show up at the right size and everything which tells me that it is loading somthing but why is it now showing up. if you want code just tell me what you want to see becuase there is a ton of it
ok just WHY??? Qt is a window manager (of sorts), and so is SFML. Why the hell are you using the two together? Just use opengl, cuz I know you can integrate that!
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
Ginto8 wrote:ok just WHY??? Qt is a window manager (of sorts), and so is SFML. Why the hell are you using the two together? Just use opengl, cuz I know you can integrate that!
that was what i was going to do but i just stated and sfml had tutorials on getting it to work so i thought i would give it a shot.
ill probably go opengl but it would be convenient to get sfml to work with it becuase im almost finished with it.
You don't have to straight into OpenGL. You can use QPainter if you want, it's much easier and it's back end is OpenGL. So if you're not comfortable with OpenGL go with that untill you get on your feet.
MrDeathNote wrote:You don't have to straight into OpenGL. You can use QPainter if you want, it's much easier and it's back end is OpenGL. So if you're not comfortable with OpenGL go with that untill you get on your feet.
thanks, im comfortable with opengl but i really dont want to handle images and stuff... i guess i can try qtpainter. one thing i saw was the QBitmap did not have a clipping function so i would have to make that.
Ginto8 wrote:ok just WHY??? Qt is a window manager (of sorts), and so is SFML. Why the hell are you using the two together? Just use opengl, cuz I know you can integrate that!
Using raw OpenGL would make image loading HARDER, not easier
Ryan Pridgeon C, C++, C#, Java, ActionScript 3, HaXe, PHP, VB.Net, Pascal Music | Blog
Ginto8 wrote:ok just WHY??? Qt is a window manager (of sorts), and so is SFML. Why the hell are you using the two together? Just use opengl, cuz I know you can integrate that!
Using raw OpenGL would make image loading HARDER, not easier
Qt actually makes loading OpenGL textures very simple.