-
August 13th, 2017, 05:09 PM
#1
c++ graphic class/library
I want to learn to create a game.
Im looking for a class ( perhaps it is by default installed in IDE ) to:
-Load picture for the display, instead of console. Preferred If could be resizeable ( window ).
-Scale, translate, rotate picture, transparency recognision (bmp) for pictures.
-Adding buttons, so user can clicks it, and perform actions once button is clicked.
-Scene switching would be not bad.
-Supporting CSS for decorations. Not must tho.
I tried SFML, but I cannot understand how to set up for visual studio. Code blocks was broken for it.
Open GL is too hard.
-
December 16th, 2017, 01:33 AM
#2
Re: c++ graphic class/library
C++ has no graphics library.
C has no graphics library.
I didn't know C# had one but apparently it's part of the (.NET) Framework.
Of course you can just use an already made graphics library.
-
December 16th, 2017, 05:53 AM
#3
Re: c++ graphic class/library
Currently c++ has no standard graphics library (perhaps c++20??). For simple graphics consider FLTK (Fast Light Toolkit) http://www.fltk.org/index.php. This is introduced by Bjarne Stroustrup (the inventor of c++) in his book 'Programming Principles & Practice Using c++'. https://www.amazon.co.uk/Programming...ustrup+c%2B%2B
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++23 Compiler: Microsoft VS2022 (17.6.5)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|