Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
What are some good cross-platform alternatives to Windows-specific 2D APIs? I'm looking for an API for rendering simple geometric objects as well as an API for rendering text with subpixel antialiasing (ClearType) and OpenType support, specifically support for hinting.
OpenGL is the defacto cross-platform graphics API. OpenGL supports the FreeType and OpenType libraries. Newer versions of FreeType (2.7+) have support for sub-pixel hinting similar to what DirectWrite offers.
Have a look at the Simple DirectMedia Layer (SDL), it contains exactly what you need. SDL_ttf is an extension to libsdl that provides functionality for rendering of text.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm looking for a library I can use for C++ or MATLAB so that I can do some rigid-body and particle simulations which I can then render and view.
I'd like to be able to use a library to draw particles or rigid bodies and then programmatically specify rotation, translation, etc.
Additionally, I'd like for the library to have the smallest learning curve possible.
Thanks in advance for your help!
Use Open Scene Graph in c++:
http://www.openscenegraph.org/projects/osg
That library wraps openGL and allows great rendering and has some really good tutorials.
http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials
You will be able to define objects positions by their transform from the 0,0,0 frame allowing to to move objects easily in a physics emulation style.
Hope this helps.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Is it possible to write/draw graphics (3D & 2D) using Visual C++ 2010 Express? (I found a series of tutorials on youtube about game programming, but 'ttraps'-the guy who made them- never got to graphics. His last post was in 2010.)
If so, what project type should I build and what library headers do I need?
If this is impossible, please direct me to some other resources that I could use.
(I am using Windows 7.)
There are a whole range of libraries for drawing graphics using C/C++.
If you are on Windows and not afraid to use platform dependent code then you can use the Windows GDI API. GDI is usually used to build interactive GUI Widgets, such as custom drawn buttons and edit boxes.
If you are looking for 3D rendering you can use Microsoft's own DirectX API. There is also an OpenGL Windows implementation.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm refactoring some of my directx10 code to directx11 and trying to figure out DIrectWrite for my text functions. From MSDN, I hear that they're switching everything to this and that directwrite is now included with direct3d. But, eh - I can't find a tutorial that actually shows 3d Rendered text with directwrite. Anyone know an example?
Microsoft "Direct3D and Direct2D text overlay sample" should do the trick ! http://code.msdn.microsoft.com/windowsapps/Direct2D-Direct3D-Interop-ee641e46
You want to start with the code Samples that Microsoft provide:
http://archive.msdn.microsoft.com/DirectWrite
These are really good and I managed to implement DirectWrite quite easily following the samples. They are all documented pretty well. Check out the header file DWrite.h as well, this is fully documented (the same as the website).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I am wanting to code something with OpenGL, but I don't want to have to go through Windows API, is this Possible? If so then some links to tutorials on how to do this would be nice.
Yes.
GLFW
Qt + OpenGL
GLUT or FreeGLUT
Or see my question.
In order to create a Win32 window for displaying OpenGL content - without going through Win32 API, GLUT is the only option that I'm aware of.
If you need a complete visualization framework, then VTK is the best FREE choice.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
The current version of libsdl (1.2.x branch) is very, very slow with blending and per pixel alpha (as it uses software blending). Is there any other good alternative to it?
SFML is exactly what you need: http://sfml-dev.org/.
Skim through the tutorials, you'll see that it's way easier and more powerful than SDL.
There is SFML : http://www.sfml-dev.org/
Or... just use OpenGL on top of SDL.
GLFW. It only tries to do one thing (window creation/input handling). It is C based and pretty easy to use provides bindings for several languages.
SFML does all that and also provides an API for audio, fonts, and networking. It's nativity a C++ API but provides bindings for several languages.
There are other thousands of options: SDL (older), Unity and UDK if you want to create a game, ...