Jump to content

  • Log In with Google      Sign In   
  • Create Account


Handling libraries


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 Victor Rocha   Members   -  Reputation: 105

Like
0Likes
Like

Posted 10 September 2013 - 07:02 AM

I'm almost fresh to the game development and I have one question about libraries. If I choose one library, such as SFMl, to develop the menu of my game, is it possible to merge with, for example, Direct X to handle the graphics(load maps and etc)? I don't know how to handle load maps or etc, sorry If I said something dumb, but thats subject for another topic, I really would like to start from the basics. Thanks for the help.



Sponsor:

#2 Serapth   Crossbones+   -  Reputation: 5260

Like
3Likes
Like

Posted 10 September 2013 - 08:25 AM

It ultimately comes down to the library and the way it is setup.  In that particular case, no, as SFML is built over OpenGL.  OpenGL and DirectX aren't compatible.  Some libraries are a bit more self contained and easily slotted into your setup, so you can use a portion of the functionality provided.  DirectX and OpenGL aren't such libraries.



#3 Satharis   Members   -  Reputation: 949

Like
0Likes
Like

Posted 10 September 2013 - 02:19 PM

It would kind of defeat the purpose of SFML to support multiple platforms if they used a graphics library that is designed to only work with Windows, so no.

If you -really- need DirectX you'll have to look elsewhere or go and pretty much mutilate SFML to get it working correctly with DirectX, but honestly it's worth being familiar with both DirectX and OpenGL anyway.

#4 wintertime   Members   -  Reputation: 1640

Like
-2Likes
Like

Posted 11 September 2013 - 02:31 AM

The question is a bit similar to this: "Hi, I have this fantastic motorbike, but now I saw that other motorbike, can I ride both at the same time?"

You could try but it will most likely not end well, better just choose one and maybe use the other later for something else.



#5 CaptainKraft   Members   -  Reputation: 266

Like
0Likes
Like

Posted 11 September 2013 - 09:15 AM

Generally the larger frameworks won't work well with others. Like someone already said, OpenGL and DirectX won't work well together. 

 

First, you'll want to choose a framework to start with, probably something OpenGL or DirectX based, like SFML and others. Once you know which of those you will use, you can find solutions to particular problems. For example, if you want a way to create a menu in a certain way, it would be better to search for a way to do it in your framework and possibly find some open source code out there that does what you need. 

 

Better to stick with one and learn the ins and outs to get what you need done.



#6 IndyOfComo   Members   -  Reputation: 545

Like
0Likes
Like

Posted 11 September 2013 - 01:10 PM

Here's another question along the same line:

How would someone know this going into things? What questions would they ask? What should they look at?


Here is my technical background info.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS