Welcome, Guest! Log In | Create Account

Main Page

From eng

Jump to: navigation, search

ENG (Eng is Not a Game) Documentation

ENG is a cross-platform event/object based C and SDL engine designed to manage many common application subsystems.

Features

  • Initialisation, management and reconfiguration of an application's operating environment
  • Command line option management
  • Configuration file(s) data storage and retrieval
  • Plain text file object definitions and image declarations
  • Loading, the creation and freeing of objects and attached images
  • Objects represented as linkable rectangles with some inheritable properties
  • Object colour filling, image attaching and opacity for different events
  • Effects that can be paused, unpaused, finalised and terminated
  • A virtual mouse pointer with several operational modes
  • Standard object events such as over, out, press, release, click and drag
  • Engine events such as cycle, post load objects, post effect, quitting and shutdown
  • Wrapped/unwrapped proportional/fixed width text writing to object images
  • Extensive error checking and reporting with progress reports via standard out

Requirements

Licence

GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007

ENG Application Structure

The developer creates an ENG_OpEnv structure that defines an application's operating environment, such as an objects file and image directory, canvas, screen and viewport dimensions and importantly a function that will receive events. The address of this structure is then passed to ENG_Init.

ENG_Init makes a copy of the ENG_OpEnv structure and initialises the engine. At this point the command line and configuration file subsystems become accessible to facilitate the modification of the operating environment before starting the engine with ENG_Start.

ENG_Start starts SDL, loads the objects file and places the engine into a loop which is responsible for generating events, timing, applying effects, rendering objects and updating the screen and is ultimately stopped by calling ENG_Quit.

Whilst the engine is running, communication with ENG is achieved via events sent to the application's event processor function. Objects are referenced with ENG_GetObject, configuration file options read with ENG_GetConfigOption, individual objects created with ENG_CreateObject, effects created with ENG_CreateEffect and the operating environment modified using the appropriate ENG_SetOpEnv* function.

ENG_Quit saves any currently declared configuration file to disk and then initiates a clean-up operation to free resources allocated to the various subsystems.

ENG API Reference

MediaWiki Stuff

MediaWiki has been successfully installed.

Consult the User's Guide for information on using the wiki software.

Getting started

Project Logo

Click on the following image to upload a new version of the PNG logo image for your project:

Image:MediaWikiSidebarLogo.png