Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

Sign up now

Wrappers in Games

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 3Ddreamer   Members   

Posted 28 September 2012 - 02:37 PM


I'm a newbie to game development, so please bare with me.

Is a Wrapper in IT and more specifically game development basically a type of adapter? How common are wrappers in games in general and more specifically in the more common languages for GD? Are there any AAA games with wrappers? Is there a system which is easiest to make or use wrappers?

I noticed some game engines and render engines have wrappers available to bridge the gap between the native game language and another one. Is there always a significant performance hit in using such a wrapper? Are such wrappers basically connecting the engine available with a framework or is this not always the case?

Game engine examples with wrappers and a brief explanation would help me a lot.

I suppose that it is possible to create a wrapper for any program - is this true? Is this best done with an IDE, such as MonoDevelop or Visual Studio which I am considering for long term?

Any and all help and criticism is much appreciated. Posted Image


Edited by 3Ddreamer, 28 September 2012 - 02:39 PM.

Personal life and your private thoughts always effect your career. Research is the intellectual backbone of game development and the first order. Version Control is crucial for full management of applications and software.  The better the workflow pipeline, then the greater the potential output for a quality game.  Completing projects is the last but finest order.


by Clinton, 3Ddreamer

#2 Koobazaur   Members   

Posted 02 October 2012 - 01:46 PM

More or less yea. It is very common to use wrappers internally to support different video modes (DX / OpenGL / Software), audio (OpenAL, XAudio, EAX etc.). Good example is Quake/Quake2/Half-Life/Unreal or any similar engines from back in the day. But that's not as common anymore on the PC. In my own game I've also used wrappers for physics (so I upgraded my initial rudimentary physics with Bullet later on).

Triple-A, cross-platform engines (Unreal, Crysis, Source, Skyrim etc.) also rely heavily on wrappers for graphis (DX on 360, PSGL on PS3, wtf on Wii), audio, and additionally input, so you can map between different controllers, keyboards, touch screens etc. On small indie projects that will probably never use any other tech in the near future, using the different APIs/libraries directly is probably far more efficient, development-time wise.

But then you also have stuff like SMD and SFML which, being 3rd party libraries, are technically just really powerful wrappers with extra bells and whistles. Heck, even the whole .Net framework is in a away just a wrapper for good old Win32 (may not be true anymore with newer windows tho).

Edited by Koobazaur, 02 October 2012 - 01:50 PM.

Comrade, Listen! The Glorious Commonwealth's first Airship has been compromised! Who is the saboteur? Who can be saved? Uncover what the passengers are hiding and write the grisly conclusion of its final hours in an open-ended, player-driven adventure. Dziekujemy! -- Karaski: What Goes Up...

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.