CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2017

    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.

  2. #2
    Join Date
    Aug 2017

    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.

  3. #3
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012

    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++17 Compiler: Microsoft VS2017 (15.7.4)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.