Click here to Skip to main content
16,015,991 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There are many nice effect of slideshow in the photo manger software. For example, ACDSee has a cube effect.
My question is how to make these effects, can it be done only in C++?
Thanks for your time.
Posted
Updated 25-Jan-11 22:07pm

1 solution

What do you mean exactly by "only in C++" ? If you mean the C++ defined purely in the standard, then no. C++ itself doen't have any support for UI stuff (e.g., not for windows UI neither).
For instance if you want to make a simple windows UI (e.g. dialogs with some buttons), you will need to use a specific library or API (win32 API, MFC, Qt, ...) which is not defined in the standard.

For advanced graphical effects, you could use OpenGL, DirectX, possibly GDI+ (I don't have experience with is) and maybe other libraries. Your application is still written in C++, but it uses external libraries.

Does it answer your question ?
 
Share this answer
 
Comments
yanxin 26-Jan-11 4:36am    
When I say only in C++,I hope it is platform-independent.So I can not use GDI+,but OpenGL is OK.But I dont have many experience about OpenGL. Can you give me some ideas or some examples about how to use it in graphical effects?
Cedric Moonen 26-Jan-11 4:51am    
I'm afraid this is not possible, I can't just give an example like that in OpenGL. OpenGL is a quite complex library (but also very powerful) and it will require some time to learn how to use it properly. If you really want to do that, I suggest you buy a book about OpenGL (this one for instance: http://www.opengl.org/documentation/red_book/) and start learning from that. There are also some nice tutorials on this website: http://nehe.gamedev.net/ (but it is a bit more targeted to games).
I'm not aware of other cross-platform graphical libraries which are easier to use. Maybe you should google for it and see if you find something interesting.
yanxin 26-Jan-11 21:07pm    
Thank you very much for your help.
Harrison H 26-Jan-11 16:37pm    
Gotta say that OGL is the way to go for cross-platform graphics.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900