Want to move onto a graphics library

Started by
15 comments, last by Fredericvo 9 years, 8 months ago


Based on this, you want a multi-purpose library, and not just a graphics library. OpenGL is purely a graphics library, so doesn't handle sound and input.

I just wanted to note that OpenGL and SFML work nicely together however(or glfw, if you want another option), and the sound/input parts of SFML are rather easy to implement(same goes for glfw). So, I'd say to not let this deter you too much from OpenGL. Between the three you really have most of the basics covered I think. If you are looking for a cross-platform and open source library, I still think OpenGL is a pretty viable option for you.

Beginner here <- please take any opinions with grain of salt

Advertisement

How do I include the .lib files to Visual Studio for SLD2?

#pragma comment(lib,'SDL2.lib')
#pragma comment(lib,'SDL2main.lib')

Pasted into my Evernote. Thank you.

How do I include the .lib files to Visual Studio for SLD2?

#pragma comment(lib,'SDL2.lib')
#pragma comment(lib,'SDL2main.lib')

Pasted into my Evernote. Thank you.

Don't use it in code you want anyone else to compile, as that will only work with MSVC.

How do I include the .lib files to Visual Studio for SLD2?

#pragma comment(lib,'SDL2.lib')
#pragma comment(lib,'SDL2main.lib')
Pasted into my Evernote. Thank you.

Don't use it in code you want anyone else to compile, as that will only work with MSVC.

True but he said visual studio explicitly. Ironically I edited my post removing "windows only" for this very reason. Lol

Starting to learn DirectX and looking into SDL. I am taking in a step at a time, looking up 2D graphics creation at the moment. I have finally got a window with a picture on it. Now, I just need to know how to develop sprites then use them in the program. Doesn't sound difficult now, does it...?


True but he said visual studio explicitly.

I just wanted him to be aware that while it might work for him while using VS, if he gave the code to someone else to compile, it might not work for them.


True but he said visual studio explicitly.

I just wanted him to be aware that while it might work for him while using VS, if he gave the code to someone else to compile, it might not work for them.

True but I think the pragmas are ignored by other compilers but have the added benefit to sort of self-document all required libs whereas IDE configurations etc get lost in translation and he would have to reconfigure his different IDE with whatever that uses to find libraries anyway, whether the pragmas are present or not.

This topic is closed to new replies.

Advertisement