Module dagon.core.application

Generic applicaton class and corresponding utility functions

Description

The dagon.core.application module provides the base Application class and related functionality for creating and managing a Dagon-based application. This includes SDL window and OpenGL context management, event handling, functions for error handling, taking screenshots and others.

Functions

NameDescription
compressedTextureFormatSupported(format) Checks if a compressed texture format is supported.
globalShaderCache() Returns global ShaderCache object.
globalVFS() Returns VFS used by the Application.
isExtensionSupported(extName) Checks if a given OpenGL extension is supported.
isImageFileFormatSupported(ffmt) Checks if a given image file format is supported.
maxTextureSize() Returns the maximum supported texture size.
maxTextureUnits() Returns the maximum number of texture units supported by the hardware.

Classes

NameDescription
Application Base class to inherit application object from.

Structs

NameDescription
DagonVersion Structure that represents Dagon version number.
FramebufferFormat OpenGL backbuffer pixel format info.
FTVersion Structure that represents FreeType version number.

Enums

NameDescription
ColorProfile Supported color profiles.
DagonEvent Internally reserved event codes.
ImageFileFormat Supported image formats.
VSyncMode Vertical synchronization mode.

Global variables

NameTypeDescription
dagonVersion immutable(DagonVersion) Engine version number as a read-only structure.
dagonVersionString immutable(char[]) Engine version number as a read-only string.