Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


MARS_999

Member Since 06 Mar 2001
Offline Last Active Jul 31 2015 04:27 AM

Topics I've Started

sfml-tmxloader and how to keep objects in location when moving the screen?

12 April 2015 - 07:20 PM

I am using sfml-tmxloader to load the .tmx maps from tiled and when I call 

 

sf::Vector2f size = window->getView().getSize();
ml->UpdateQuadTree(sf::FloatRect(0.0f, 0.0f, size.x, size.y));
 
//get a vector of MapObjects contained in the quads intersected by query area
sf::Vector2f mousePos = window->mapPixelToCoords(sf::Mouse::getPosition(*window));
//NOTE quad tree MUST be updated before attempting to query it
 
std::vector<tmx::MapObject*> objects = ml->QueryQuadTree(sf::FloatRect(mousePos.x - 10.f, mousePos.y - 10.f, 20.f, 20.f));

Good parser and render lib for SFML and .tmx files?

05 April 2015 - 08:53 AM

I am looking for something that I can just drop into my project to load maps based on .tmx files and render the map.

 

Any good libs that are current and not needing ten million external libs? or something that has all the libs pre built if they need lots of external APIs/libs to compile...

 

Thanks!


SFML render many sprites...

04 April 2015 - 07:57 AM

I am new to SFML and was wondering if I use a renderlist and just want to render the whole list, how can I avoid call window.draw() 10 million times?

 

Is there some array call that one can send the whole list in one function call?

 

Thanks!

 

Oh and what is the correct way to setup a list to hold the many render types in SFML?

 

Is this correct?

std::list<sf::Drawble*> renderList;


PhysicsFS help needed to read a directories files

05 July 2014 - 04:50 PM

I am not following how one can use PhysicsFS to parse a directory for it's files and other directories... 

 

e.g. 

I want to parse my games map directory or texture directory how can I do this... I don't see a function to call to read the the directory.

 

Thanks


What are people using for a good GUI API with a layout editor...

30 June 2014 - 10:10 PM

I been looking at various GUI APIs and not really seeing much that is out there with a good tool set and works with SDL/OpenGL out of the box...

 

Anyone have any suggestions, would like a stand alone API not something like Unity ect... thanks!

 


PARTNERS