mirror of https://github.com/buggins/dlangui.git
53 lines
1.5 KiB
HTML
53 lines
1.5 KiB
HTML
<html><head>
|
|
<META http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<title>dlangui.platforms.common.platform</title>
|
|
</head><body>
|
|
<h1>dlangui.platforms.common.platform</h1>
|
|
<!-- Generated by Ddoc from src/dlangui/platforms/common/platform.d -->
|
|
DLANGUI library.
|
|
<br><br>
|
|
This module contains common Plaform definitions.
|
|
<br><br>
|
|
|
|
Platform is abstraction layer for application.
|
|
<br><br>
|
|
|
|
|
|
<br><br>
|
|
<b>Synopsis:</b><br>
|
|
<pre class="d_code"><font color=blue>import</font> dlangui.platforms.common.<u>platform</u>;
|
|
|
|
</pre>
|
|
|
|
<br><br>
|
|
<b>License:</b><br>
|
|
Boost License 1.0
|
|
<br><br>
|
|
<b>Authors:</b><br>
|
|
Vadim Lopatin, coolreader.org@gmail.com<br><br>
|
|
|
|
<dl><dt><big><a name="platform"></a>@property Platform <u>platform</u>();
|
|
</big></dt>
|
|
<dd>get current <u>platform</u> object instance<br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="openglEnabled"></a>@property bool <u>openglEnabled</u>();
|
|
</big></dt>
|
|
<dd>check if hardware acceleration is enabled<br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="setOpenglEnabled"></a>void <u>setOpenglEnabled</u>();
|
|
</big></dt>
|
|
<dd>call on app initialization if OpenGL support is detected<br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="APP_ENTRY_POINT"></a>template <u>APP_ENTRY_POINT</u>()</big></dt>
|
|
<dd>put "mixin <u>APP_ENTRY_POINT</u>;" to main module of your dlangui based app<br><br>
|
|
|
|
</dd>
|
|
</dl>
|
|
|
|
<hr><small>Page generated by <a href="http://dlang.org/ddoc.html">Ddoc</a>. Vadim Lopatin, 2014
|
|
</small>
|
|
</body></html>
|