-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcpp.html
executable file
·105 lines (81 loc) · 3.81 KB
/
cpp.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>C++ / iOS • Gosu</title>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<div id="main">
<header id="logo_container">
<img src="website_header.png" alt="Gosu logo">
</header>
<aside class="links">
<h3>ask, explain, show off</h3>
<a href="https://www.libgosu.org/cgi-bin/mwf/forum.pl">forum</a>,
<a href="https://discord.gg/gTaHxdm">Discord server</a> <span class="new">new</span><br>
<h3>documentation</h3>
<a href="https://github.com/gosu/gosu/wiki/">wiki on github</a><br>
<a href="https://www.libgosu.org/rdoc">ruby reference</a><br>
<a href="https://www.libgosu.org/cpp">c++ reference</a><br>
<h3>development</h3>
<a href="https://github.com/gosu/gosu/">source on github</a><br>
<a href="https://github.com/gosu/gosu/issues">issues & wishlist</a><br>
<a href="https://github.com/gosu/gosu/releases">change log</a><br>
</aside>
<aside class="potd">
<!--#include virtual="/potd.inc" -->
</aside>
<nav id="tabs">
<a href="index.html">hello</a>
<a href="ruby.html">ruby</a>
<span>c++ / ios</span>
</nav>
<h2>Gosu for C++</h2>
<p>
Gosu is written in C++ 2017 with minimal dependencies (no boost). It has CMake files for macOS and Linux, Xcode support for macOS and iOS, and project files for Visual C++ 2019.
<br>
You can check out <a href="https://github.com/gosu/gosu/blob/master/.github/workflows">the GitHub CI configurations</a> to see which compilers and OS versions are verified to work at the moment.
</p>
<p>
Installation is especially easy on macOS with <a href="http://brew.sh">Homebrew</a>: <tt>brew install libgosu</tt>
</p>
<h3>C++ Project Structure</h3>
<p>
<a href="https://github.com/gosu/gosu/wiki">The wiki</a> has platform-specific guides for setting up C++ projects.
</p>
<p>
Alternatively, you can take a look at the <a href="https://github.com/jlnr/freegemas">Gosu port of TheOm3ga’s FreeGemas</a>.
</p>
<p>
The port is unfinished and rough, but the project can be built for Linux and macOS with CMake, and for macOS and iOS with Xcode.
</p>
<h2>Ruby/Gosu for iOS, via <a href="http://www.rubymotion.com/">RubyMotion</a>: motion-gosu</h2>
<p>
The RubyMotion version of Gosu is a work in progress port and does <strong>not</strong> support Android.
</p>
<p>
The <a href="https://github.com/gosu/motion-gosu">motion-gosu GitHub project</a> includes <a href="https://github.com/gosu/motion-gosu/tree/master/example">an example project</a> that is structured in a way that makes it easy to run the same code with ‘normal’ Ruby, RubyMotion for macOS, and RubyMotion for iOS.
</p>
<h2>A Word of Warning…</h2>
<p>
The C++ and RubyMotion versions of Gosu are not for the faint of heart.
They are nowhere near as polished as <a href="ruby.html">Ruby/Gosu</a>.
</p>
<p>
You’ll see terrible error messages, and you’ll need to know your tools well enough to fix them. <a href="https://github.com/gosu/gosu">Poking around the source code often helps, too.</a>
</p>
<p>
Nevertheless, if you have written a great Ruby/Gosu game, porting it to RubyMotion or C++ might be the best way to share it with the world through Apple’s App Store for iOS and macOS.
<a href="https://github.com/gosu/gosu/issues">Please file an issue</a> if you run into unexpected limitations.
</p>
<div style="clear: both"></div>
<footer>
<a href="imprint.html">imprint</a>
•
<a target="_blank" href="https://www.lurado.com/privacy">privacy policy</a>
</footer>
</div>
</body>
</html>