What's a engine?

This is a discussion on What's a engine? within the C++ Programming forums, part of the General Programming Boards category; I was wondering what's a engine? (In terms of programming)...

  1. #1
    newbieprogrammer
    Guest

    What's a engine?

    I was wondering what's a engine? (In terms of programming)

  2. #2
    Registered User xlnk's Avatar
    Join Date
    Mar 2002
    Posts
    186
    Well, ill give you an example. Lets take a 3d engine. Basically an engine is made so you can re-use the code in the engine. You can make a function to make a cube, plane, sphere, etc. and use it in a game. Then someone else can come along and can use those objects in a game their making.

    Basically an engine, is a group of code or functions that can be reused after and after. Take Quake3 for example, so many games have used the quake3 engine as a base.
    the best things in life are simple.

  3. #3
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    yo this is a newbie heres a more basic answer: a engine is a program that is all coded and all you got do is very basic stuff to it like.. in a platofrm game the complete engine would be the movement programmed and al you have to do is draw out the maps.
    Email: Klinerr1@nc.rr.com || AIM: MisterSako || MSN: sakotheinsane@hotmail.com

    -the shroom has spoken

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >I was wondering what's a engine?
    What does the engine of a car do? Take the same concept and put it into the field of programming.

    The jargon file answer:
    Code:
    engine n. 
    
    1. A piece of hardware that encapsulates some function but can't
     be used without some kind of front end. Today we have, 
    especially, `print engine': the guts of a laser printer. 2. An 
    analogous piece of software; notionally, one that does a lot of 
    noisy crunching, such as a `database engine'. 
    
    The hacker senses of `engine' are actually close to its original, 
    pre-Industrial-Revolution sense of a skill, clever device, or 
    instrument (the word is cognate to `ingenuity'). This sense had 
    not been completely eclipsed by the modern connotation of 
    power-transducing machinery in Charles Babbage's time, which 
    explains why he named the stored-program computer that he 
    designed in 1844 the `Analytical Engine'.
    -Prelude
    My best code is written with the delete key.

  5. #5
    Registered User moonwalker's Avatar
    Join Date
    Jul 2002
    Posts
    282

    question...

    so does engine mean the same as library ?

    another question:
    what's the difference between a header file and a library ?

  6. #6
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    header files access library(.lib) files so that they can be used in your program.

    btw libraries have different extensions too, not just .lib

  7. #7
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    yes an engine is a library, but a special kind of library. It is a set of functions, variables, etc. used for making a specific type of program.

    The type of engine you have probably heard most often is the game engine.

    A game engine will in many cases contain all functions needed for interfacing and interacting characters with each other, but you yourself must actually make the plot of the game, the characters themselves, etc.

    For example, an engine might contain a class which is designed to load an animation of the character, handle the character walking around the screen, attacking other units, etc....but you yourself have to make the animation of the character, decide how much damage the character will be able do, etc., depending on what your game will be. But the game engine, however, should have functions readily availble to easily input that stuff so you dont have to do a lot of coding on top of the engine.

    With the engine, you got a good 75% of your game made...you just have to put the pieces together...
    My Website

    "Circular logic is good because it is."

  8. #8
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    Header files do not neccessarily access library file Xterria. Some headers could simply be filled with class definitions, #defines, and no actual function prototypes.

  9. #9
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    perhaps not header files made by you and I, but like iostream, allegro, fstream, etc all access libraries

    and yeah some just contain functions too
    but when c++ was made they were meant to be hpp, so people would know that they do not access libraries, but, people like to use .h files either way

  10. #10
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    like when u say #include <suchandsuch.h> your putitng in a header file which has coding in it for stuff. a library file is a file you make that can be filled with varibales functions and such. and then u include th elibrary file to ur project. a library file is usualy a .cpp file i bielive.
    Email: Klinerr1@nc.rr.com || AIM: MisterSako || MSN: sakotheinsane@hotmail.com

    -the shroom has spoken

  11. #11
    Registered User
    Join Date
    Jun 2002
    Posts
    106
    lets say that you have to create a box everday using c++ instead of writing that code you can write a code that produces box code every day thats a engine
    C++ Makes you Feel Better

    "Gravity connot be held reponsible for people falling in love"--Albert Einstein

  12. #12
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    Originally posted by Klinerr1
    like when u say #include <suchandsuch.h> your putitng in a header file which has coding in it for stuff. a library file is a file you make that can be filled with varibales functions and such. and then u include th elibrary file to ur project. a library file is usualy a .cpp file i bielive.
    you make me cry.
    hello, internet!

  13. #13
    SpitBall
    Guest
    quote:
    --------------------------------------------------------------------------------
    Originally posted by Klinerr1
    like when u say #include <suchandsuch.h> your putitng in a header file which has coding in it for stuff. a library file is a file you make that can be filled with varibales functions and such. and then u include th elibrary file to ur project. a library file is usualy a .cpp file i bielive.
    --------------------------------------------------------------------------------

    I think you're just a bit confused there...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. In a game Engine...
    By Shamino in forum Game Programming
    Replies: 28
    Last Post: 02-19-2006, 11:30 AM
  2. Game Engine Link Prob
    By swgh in forum Game Programming
    Replies: 2
    Last Post: 01-26-2006, 12:14 AM
  3. Ultra chess engine contest
    By yodacpp in forum Projects and Job Recruitment
    Replies: 8
    Last Post: 11-21-2004, 07:58 AM
  4. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 12:38 PM
  5. Game structure, any thoughts?
    By Vorok in forum Game Programming
    Replies: 2
    Last Post: 06-07-2003, 02:47 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21