Thread: Game Graphics with C++

  1. #1
    Registered User
    Join Date
    May 2020
    Posts
    1

    Game Graphics with C++

    Is there any way I can use C++ to create 3D or 2D graphics for games? I am mostly familiar with C++ so I am trying to find an efficient way to use it for creating video game graphics. I am new to this stuff as well. Does OpenGL have any relation with C++? Are there any graphics libraries in C++ that can help with graphics? If C++ is not the best language for making graphics, is there any way I can use it for something else related to graphics.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > Is there any way I can use C++ to create 3D or 2D graphics for games?
    You've seen games in the real world right?
    Guess how they're made.

    Simple DirectMedia Layer - Homepage
    SFML

    > Does OpenGL have any relation with C++?
    As far as C++ is concerned, it's just another library.

    If you make the right OpenGL function calls, you see pretty pictures.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by mathgeek
    Does OpenGL have any relation with C++?
    If you visit the OpenGL website and click on "Getting Started with OpenGL", you will be rewarded with this piece of information:
    The first step is to pick your language. Bindings for OpenGL exist in many languages, from C# and Java to Python and Lua. Some languages have multiple sets of OpenGL bindings, none of them being official. All of them are ultimately based on the C/C++ bindings.
    While there isn't a language called "C/C++", in this context it can be taken to mean "C and C++".
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. a simple Dev-C++ game graphics system
    By shintaro in forum Game Programming
    Replies: 1
    Last Post: 08-11-2005, 05:49 PM
  2. Game Graphics!
    By L_I_Programmer in forum Game Programming
    Replies: 3
    Last Post: 03-13-2003, 05:43 AM
  3. 2D Graphics In Game
    By drdroid33 in forum Game Programming
    Replies: 16
    Last Post: 02-23-2002, 10:01 PM
  4. graphics help!! for my game under turbo C
    By newbie17 in forum Game Programming
    Replies: 1
    Last Post: 10-26-2001, 01:40 PM

Tags for this Thread