Module dagon.core.application
Generic applicaton class and corresponding utility functions
Description
The dagon 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
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
Application
|
Base class to inherit application object from. |
Structs
| Name | Description |
|---|---|
DagonVersion
|
Structure that represents Dagon version number. |
FramebufferFormat
|
OpenGL backbuffer pixel format info. |
FTVersion
|
Structure that represents FreeType version number. |
Enums
| Name | Description |
|---|---|
ColorProfile
|
Supported color profiles. |
DagonEvent
|
Internally reserved event codes. |
ImageFileFormat
|
Supported image formats. |
VSyncMode
|
Vertical synchronization mode. |
Global variables
| Name | Type | Description |
|---|---|---|
dagonVersion
|
immutable(DagonVersion)
|
Engine version number as a read-only structure. |
dagonVersionString
|
immutable(char[])
|
Engine version number as a read-only string. |