Publish durable applications

This commit is contained in:
2019-08-05 13:22:05 +03:00
parent cfc384d22b
commit d46501c255
298 changed files with 14278 additions and 7379 deletions

View File

@@ -9,13 +9,18 @@
padding: 0.7em;
text-align: left;
}
#header a
{
color: white;
text-decoration: none;
padding: 0.5em 1em 0.5em 1em;
}
#lang
{
float: right;
}
.news_item
{
background: #FFFFFF;
@@ -36,6 +41,11 @@
margin-bottom: 2em;
color: #aaa;
}
html
{
font-family: sans-serif;
}
body
{
background: #FAFAFA;
@@ -46,38 +56,20 @@
font-size: 1em;
color: #7f0a0c;
}
figure
{
margin: 0px;
padding: 0px;
}
img
{
width: 720px;
}
html
{
font-family: sans-serif;
}
a
{
color: #3A91CB;
text-decoration: none;
}
#lang
{
float: right;
}
figcaption
{
color: #aaa;
}
table
{
border-collapse: collapse;
}
table, th, td
{
border: 1px solid #aaa;
@@ -88,32 +80,32 @@
</style>
</head>
<body>
<center>
<div id="header">
<strong id="title">Open Game Studio</strong>
<a href="../../en/news/index.html">News</a>
<a href="../../en/page/games.html">Games</a>
<a href="../../en/game/index.html">Games</a>
<a href="../../en/tool/index.html">Tools</a>
<a href="../../en/page/about.html">About</a>
<div id="lang">
<a href="examples-and-dependencies.html">EN</a>
<a href="../../en/news/examples-and-dependencies.html">EN</a>
<a href="../../ru/news/examples-and-dependencies.html">RU</a>
</div>
</div>
<h1>In the news</h1>
<div class="news_item">
<h2 class="news_item_title">
<a href="examples-and-dependencies.html">Examples and dependencies</a>
</h2>
<p class="news_item_date">
2018-08-21 00:00
</p>
<div class="news_item_contents">
<figure>
<img src="../../images/2018-08-21-examples-and-dependencies.png" alt="Cloud" /><figcaption>Cloud</figcaption>
</figure>
<center>
<h1>In the news...</h1>
<div class="news_item">
<h2 class="news_item_title">
<a href="examples-and-dependencies.html">Examples and dependencies</a>
</h2>
<p class="news_item_date">
2018-08-21 00:00
</p>
<div class="news_item_contents">
<p><img src="../../images/2018-08-21-examples-and-dependencies.png" alt="Cloud" /></p>
<p>This article describes two new OpenSceneGraph cross-platform examples and the change in handling dependencies.</p>
<p><strong>Examples of HTTP client and node selection</strong></p>
<p>Once we finished working on <a href="https://github.com/OGStudio/openscenegraph-cross-platform-examples/tree/master/04.RemoteDebugging">the remote debugging example</a> and <a href="example-driven-development.html">reported its completion</a>, we were surprised by the fact that secure HTTP connection between a debugged application and debug broker was only working in the web version of the example. Desktop and mobile versions only worked with insecure HTTP.</p>
<p>Since current debug scheme has no authentication, insecure debugging over HTTP doesnt really hurt. However, if we want to access resources located at popular sites like GitHub and BitBucket, we have to support secure HTTP.</p>
<p>Since current debug scheme has no authentication, insecure debugging over HTTP doesn't really hurt. However, if we want to access resources located at popular sites like GitHub and BitBucket, we have to support secure HTTP.</p>
<p>The need to support HTTPS on each platform spurred us to create <a href="https://github.com/OGStudio/openscenegraph-cross-platform-examples/tree/master/03.HTTPClient">HTTP client example</a>. Turned out, each platform had its own preferred way of doing secure HTTP:</p>
<ul>
<li>web (Emscripten) provides Fetch API</li>
@@ -121,19 +113,15 @@
<li>Android provides HttpUrlConnection in Java</li>
<li>iOS provides NSURLSession in Objective-C</li>
</ul>
<p>The need to support different languages on different platforms resulted in the creation of so-called host-guest pattern:</p>
<ul>
<li>guest (platform agnostic)
<p>The need to support different languages on different platforms resulted in the creation of so-called 'host-guest' pattern:</p>
<ul>
<li>guest (platform agnostic)<ul>
<li>provides networking representation</li>
<li>used by cross-platform C++ code</li>
</ul></li>
<li>host (specific platform)
<ul>
<li>used by cross-platform C++ code</li></ul></li>
<li>host (specific platform)<ul>
<li>polls guest for pending requests</li>
<li>processes them</li>
<li>reports results back to the guest</li>
</ul></li>
<li>reports results back to the guest</li></ul></li>
</ul>
<p><a href="https://github.com/OGStudio/openscenegraph-cross-platform-examples/tree/master/05.NodeSelection">Node selection example</a> was straightforward and caused no troubles.</p>
<p><strong>The change in handling dependencies</strong></p>
@@ -144,12 +132,16 @@
<li>iOS simulator and device builds of the same example being in separate Xcode projects</li>
<li>OpenSceneGraph taking 20-30 minutes to build</li>
</ul>
<p>These shortcomings were slowing us down and complicating the development of new examples. Upon hitting these problems ten more times this month we decided it was time to solve them once and for all. Now OpenSceneGraph is built as part of each example in 2-3 minutes, and theres no more dependency magic involved. We took the same approach of building dependencies as part of each example to other external libraries like Mongoose and libpng-android, too.</p>
<p>These shortcomings were slowing us down and complicating the development of new examples. Upon hitting these problems ten more times this month we decided it was time to solve them once and for all. Now OpenSceneGraph is built as part of each example in 2-3 minutes, and there's no more dependency magic involved. We took the same approach of building dependencies as part of each example to other external libraries like Mongoose and libpng-android, too.</p>
<p>With these obstacles out of the way, we can now iterate faster. Just in time for the next technical demonstration of Mahjong 2!</p>
<p>Thats it for describing two new OpenSceneGraph cross-platform examples and the change in handling dependencies.</p>
</div>
<p>That's it for describing two new OpenSceneGraph cross-platform examples and the change in handling dependencies.</p>
</div>
</div>
<div id="footer">
The site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>
from <a href="http://github.com/ogstudio/site-opengamestudio">this source code</a>.
The site is hosted by <a href="https://pages.github.com">GitHub Pages</a>.
</div>
</center>
</body>
</html>