Skip to main content

History: Gorilla

Source of version: 9

Copy to clipboard
            !!Overview

Gorilla is a 2D drawing engine for Ogre, which can be projected into 3D space, or onto the screen as a 2D overlay, it comes in two files Gorilla.cpp and Gorilla.h. Gorilla is intended to substitute the Ogre overlay system, and to provide a good framework and basis for any Ogre programmer to build their HUD or GUI system upon.

{maketoc}

!!Features

Gorilla is designed for speed, thus it uses Texture Atlases, Caching and tries to render everything in one batch. Gorilla screens can be either in an ((-overlay|overlay)) form (2D), or attached to a ((-SceneNode|SceneNode)) (3D).

Gorilla can draw the following types of shapes:

* Filled (Solid, Gradient or Sprite-based) Rectangles (Canvas Rectangles)
* Outlined Rectangles (Canvas Boxes)
* Lines with n-thickness (Canvas Lines)
* Sprites (SpriteLayer Sprites)
* Plain and formatted text (Canvas Captions and Text)

Gorilla only uses Ogre as a dependency, and is developed with Ogre 1.7 in mind; but should work with any 1.x version.

Gorilla is released under the MIT licence.


!!Downloads

Gorilla comes in two files, but also comes with a sample image and gorilla file called "dejavu".

* [http://github.com/betajaen/gorilla/zipball/master|Download] - A neat package
* [http://github.com/betajaen/gorilla|Repository] - Gorillas source code on GitHub


!!Code example

Using Gorilla is really easy, here is how show and update the FPS on the screen:

{CODE(wrap="1", colors="c++")}
mGorilla = new Gorilla::Silverback();
mGorilla->loadAtlas("dejavu");
mScreen = mGorilla->createScreen(mViewport, "dejavu");
mFPS = mScreen->createCaption(14, 10,10, "");

...

mTimer += evt.timeSinceLastFrame;
if (mTimer > 1.0f / 60.0f)
{
 mTimer = 0;
 mFPS->text("FPS: " + Ogre::StringConverter::toString(mWindow->getLastFPS()));
}
{CODE}

Other information can be read in the [http://github.com/betajaen/gorilla/blob/master/README.md|very long readme] file and [http://github.com/betajaen/gorilla/blob/master/GORILLA_SCHEMA.md|gorilla schema].


{TRANSCLUDE(page="seebox")}
* [http://www.ogre3d.org/forums/viewtopic.php?f=11&t=59984|Gorilla forum topic]
* [http://www.ogre3d.org/addonforums/viewtopic.php?f=8&t=14215&p=80448#p80114|MogreGorilla] - a wrapper for ((Mogre))
* [http://www.ogre3d.org/addonforums/viewtopic.php?f=8&t=14663|Gorilla.NET] - a port for Mogre
* [https://github.com/merlinblack/Game-Engine-Testbed/blob/master/media/src/packatlas.lua|Lua script to put images into an image atlas]
** [http://www.ogre3d.org/forums/viewtopic.php?p=422020#p422020|forum post] with more details
* [http://www.ogre3d.org/forums/viewtopic.php?f=11&t=41365|Canvas] - An other 2D-rendering engine for Ogre
* ((-GUI|GUI)) - An overview of GUI systems for Ogre
{TRANSCLUDE}

!!Screenshots and Videos

{img fileId="2021"} 
{YOUTUBE(movie="http://www.youtube.com/watch?v=e78Hfo5rIyU",allowFullScreen="n")}{YOUTUBE}
        

History

Information Version
Sat 08 of Nov, 2025 12:20 GMT-0000 paroj 19
Mon 01 of Feb, 2016 00:46 GMT-0000 c6burns updated fontgen repo link 18
Thu 05 of Sep, 2013 06:11 GMT-0000 RandomCitizen Updated the Downloadlink for the BFG. See Forum Post http://www.ogre3d.org/forums/viewtopic.php?f=11&t=59984&start=650#p494844 17
Thu 16 of Feb, 2012 17:08 GMT-0000 ekow Updates BFG download link (old: http://www.megaupload.com/?d=PVZAEP9N) 16
Sun 18 of Sep, 2011 22:52 GMT-0000 Beauty mistype correction 15
Thu 15 of Sep, 2011 04:36 GMT-0000 zarlox 14
Sat 27 of Aug, 2011 09:19 GMT-0000 jacmoe 13
Sat 27 of Aug, 2011 08:58 GMT-0000 jacmoe 12
Sat 27 of Aug, 2011 08:52 GMT-0000 jacmoe 11
Sat 27 of Aug, 2011 08:49 GMT-0000 jacmoe 10
Fri 12 of Aug, 2011 19:24 GMT-0000 pestaa I guess the example was outdated? [rollback version 7] 9
Fri 26 of Aug, 2011 22:43 GMT-0000 Beauty Removed page content by whish of the Gorilla author )-: 8
Tue 09 of Aug, 2011 11:51 GMT-0000 jacmoe 6
Tue 09 of Aug, 2011 11:51 GMT-0000 jacmoe 5
Sun 07 of Aug, 2011 10:12 GMT-0000 Beauty added link to Gorilla.NET 4
Sat 16 of Apr, 2011 20:48 GMT-0000 Beauty added link to MogreGorilla wrapper 3
Mon 14 of Mar, 2011 15:26 GMT-0000 spacegaier fixed youtube link 2
Mon 14 of Mar, 2011 12:55 GMT-0000 Beauty NEW PAGE 1