DGLE-HQ / DGLE

Powerful independent cross-platform engine for 2D/3D games and visualizations. Young, strong and crazy!
http://dgle.dronprogs.org
GNU Lesser General Public License v3.0
161 stars 39 forks source link
c-plus-plus cross-platform csharp delphi game-engine rendering-2d-graphics rendering-3d-graphics rendering-engine visualization

Introduction

DGLE is a powerful independent cross-platform engine for 2D/3D games and real-time visualizations. Young, strong and crazy!

Project mission

The goal of the project is to provide developers with flexible and extendable cross-platform easy-to-learn professional technology, capable of building any 2D/3D games, real-time visualizations, scientific applications etc. It should be easy to make great projects only by using editors and scripts or go deeper and use your programming skills of your favorite language to create really exciting projects. Users can also add new formats and functionality by creating new plugins for engine and share them with others over the web or just get plugins already made by others. When project is complete it can be easily build for every popular platform.

What does DGLE abbreviation means?

This abbreviation is some kind of legacy and it is a long story... Now officially this means: Dynamite Groovy Lightweight Engine that is more correct, concerning to the spirit of the project. Sometimes engine is named DGLEngine or DGLE engine, both variants are also correct.

More information

Visit official website for more details about this project and also plugins, articles, tutorials, examples and support.

Features

Supported Platforms

Supported Programming Languages

Getting Started

Simple C++ "HelloWorld" application for Windows. This code will setup engine, create window and render "Hello, World!" text on screen via default font. You can copy-paste this code to your 'main.cpp' and you are done! Also don't forget to copy engine headers (you can find them in "include/cpp" folder) and library 'DGLE.dll' (you can find it in "bin/win" folder) in suitable locations to be found by compiler and executable.

#include "DGLE.h"

using namespace DGLE;

DGLE_DYNAMIC_FUNC

IEngineCore *pEngineCore = NULL;
IBitmapFont *pFont = NULL;

void DGLE_API Init(void *pParametr)
{
    IResourceManager *resMan;
    pEngineCore->GetSubSystem(ESS_RESOURCE_MANAGER, (IEngineSubSystem *&)resMan);
    resMan->GetDefaultResource(EOT_BITMAP_FONT, (IEngBaseObj *&)pFont);
}

void DGLE_API Render(void *pParametr)
{
    pFont->Draw2D(0, 0, "Hello World!");
}

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
    if ( GetEngine("DGLE.dll", pEngineCore) )
    {
        pEngineCore->InitializeEngine(NULL, "My First App");
        pEngineCore->AddProcedure(EPT_INIT, &Init);
        pEngineCore->AddProcedure(EPT_RENDER, &Render);
        pEngineCore->StartEngine();
        FreeEngine();
    }
    else
        MessageBoxA(NULL, "Couldn't load \"DGLE.dll\"!", "My First App", MB_OK | MB_ICONERROR | MB_SETFOREGROUND);

    return 0;
}

You can find more examples in the "src/examples" folder. Also for other supported languages.

You can find build instructions here.

Also if you want to participate in the project development process you must read and understand Development Rules.

Documentation

You can find engine API documentation and articles in the wiki.

License

Licensed under the LGPL license.

Latest SDK version

Compiled and ready to use latest cross-platform SDK always could be found here.

See ChangeLog for full list of changes.

Credits

Project Leader and Lead Programmer

Andrey Korotkov aka DRON

Additional Programming

Alexey Shaydurov aka Ash (3D graphics programming)

Kuznecov Stanislav aka STAlkerS (plugins and tools development)

Mikhail Shestakov aka Mike (C# GUI and tools development, also png and jpg loaders)

Firstin Anton aka First (Delphi/C# headers and minor additional programming)

Semen Kotlyarov aka Kimer (plugins and tools development)

Ilya Sivkov aka Sin (DCP packs and minor additional programming)

Svyatoslav Lobov aka FascioRoma (GUI components development)

Vlad Fomin aka phomm (Delphi/C# headers and examples)

Special Thanks

artyks aka Ksenya Artemova for logo design

Woolf for project support

MadRain for Pyro particles

John Moff, R.I.P. friend

All DeeProSoft employees for project support

Contacts

Visit http://dglengine.org for more information.

Follow us on Twitter, Facebook or VKontakte.

Feel free to mail us hello@dglengine.org with any questions.