Skip to content

Commit 324d94c

Browse files
author
Robot
committed
Generate sources (a539b84)
1 parent 089da93 commit 324d94c

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The API of *CrSFML* (a library for Crystal) attempts to be similar to SFML (a C+
4545
- SFML sometimes requires that an instance must remain alive as long as it is attached to the object. For example, a textured shape will cause errors if the texture object is destroyed. *CrSFML* prevents this problem by keeping a reference to the object.
4646
- The `Event` *union* and `EventType` *enum* are represented as a class hierarchy. Instead of `ev.type == SF::Event::Resized` use `ev.is_a?(SF::Event::Resized)`; instead of `ev.size.width` use `ev.width`.
4747
- Instead of subclassing `Drawable`, include the `Drawable` module with an abstract `draw` method.
48-
- Most of the [documentation](http://blaxpirit.github.io/crsfml/api/) is taken directly from SFML, so don't be surprised if it talks in C++ terms.
48+
- Most of the [documentation](http://oprypin.github.io/crsfml/api/) is taken directly from SFML, so don't be surprised if it talks in C++ terms.
4949

5050

5151
Installation
@@ -109,7 +109,7 @@ Prerequisites: [Git][], [CMake][], [Crystal][], a C++ compiler
109109
#### Download latest generator source code
110110

111111
```bash
112-
git clone https://github.com/blaxpirit/crsfml
112+
git clone https://github.com/oprypin/crsfml
113113
cd crsfml
114114
```
115115

@@ -220,11 +220,11 @@ This library uses and is based on [SFML][sfml-authors].
220220
Thanks to [Alan Willms][alanwillms] for translating [tutorials][] to Crystal.
221221

222222

223-
[tutorials]: http://blaxpirit.github.io/crsfml/tutorials/
224-
[api documentation]: http://blaxpirit.github.io/crsfml/api/
225-
[releases]: https://github.com/blaxpirit/crsfml/releases
226-
[demos]: https://github.com/blaxpirit/crsfml-examples
227-
[sources]: https://github.com/blaxpirit/crsfml/tree/sources
223+
[tutorials]: http://oprypin.github.io/crsfml/tutorials/
224+
[api documentation]: http://oprypin.github.io/crsfml/api/
225+
[releases]: https://github.com/oprypin/crsfml/releases
226+
[demos]: https://github.com/oprypin/crsfml-examples
227+
[sources]: https://github.com/oprypin/crsfml/tree/sources
228228

229229
[sfml]: http://www.sfml-dev.org/ "Simple and Fast Multimedia Library"
230230
[csfml]: http://www.sfml-dev.org/download/csfml/
@@ -240,5 +240,5 @@ Thanks to [Alan Willms][alanwillms] for translating [tutorials][] to Crystal.
240240
[crystal]: http://crystal-lang.org/
241241
[shards]: https://github.com/crystal-lang/shards
242242

243-
[blaxpirit]: https://github.com/BlaXpirit
243+
[blaxpirit]: https://github.com/oprypin
244244
[alanwillms]: https://github.com/alanwillms

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
More interesting examples can be found in [a different repository][examples].
55

6-
[examples]: https://github.com/BlaXpirit/crsfml-examples
6+
[examples]: https://github.com/oprypin/crsfml-examples
77

88

99
Examples

shard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: crsfml
2-
version: 2.4.3
2+
version: 2.4.4
33

44
authors:
55
- Oleh Prypin <[email protected]>
@@ -9,7 +9,7 @@ description: |
99
1010
license: zlib
1111

12-
crystal: 0.20.1
12+
crystal: 0.20.4
1313

1414
libraries:
1515
SFML: 2.4.1

src/common.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require "./sizes"
22

33
module SF
4-
VERSION = "2.4.3"
4+
VERSION = "2.4.4"
55
SFML_VERSION = "2.4.1"
66

77
# Raised in shorthand class methods if initialization or resource loading fails

src/window/obj.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ module SF
8989
# * *minor* - Minor number of the context version
9090
# * *attributes* - Attribute flags of the context
9191
# * *s_rgb* - sRGB capable framebuffer
92-
def initialize(depth : Int = 0, stencil : Int = 0, antialiasing : Int = 0, major : Int = 1, minor : Int = 1, attributes : Int = Default, s_rgb : Bool = false)
92+
def initialize(depth : Int = 0, stencil : Int = 0, antialiasing : Int = 0, major : Int = 1, minor : Int = 1, attributes : Attribute = Default, s_rgb : Bool = false)
9393
@depth_bits = uninitialized UInt32
9494
@stencil_bits = uninitialized UInt32
9595
@antialiasing_level = uninitialized UInt32
9696
@major_version = uninitialized UInt32
9797
@minor_version = uninitialized UInt32
9898
@attribute_flags = uninitialized UInt32
9999
@s_rgb_capable = uninitialized Bool
100-
VoidCSFML.contextsettings_initialize_emSemSemSemSemSemSGZq(to_unsafe, LibC::UInt.new(depth), LibC::UInt.new(stencil), LibC::UInt.new(antialiasing), LibC::UInt.new(major), LibC::UInt.new(minor), LibC::UInt.new(attributes), s_rgb)
100+
VoidCSFML.contextsettings_initialize_emSemSemSemSemSemSGZq(to_unsafe, LibC::UInt.new(depth), LibC::UInt.new(stencil), LibC::UInt.new(antialiasing), LibC::UInt.new(major), LibC::UInt.new(minor), attributes, s_rgb)
101101
end
102102
@depth_bits : LibC::UInt
103103
# Bits of the depth buffer

voidcsfml/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Information
88

99
*VoidCSFML* is a library that allows [SFML][] (a library written in C++) to be used with pure C. It is not meant to be human-friendly or be used directly in C code (though it's possible). *VoidCSFML* is just an intermediate step between SFML and a higher-level binding (in this case, to [Crystal][] programming language) which is used because it's much easier to interface with a C library than a C++ one.
1010

11-
You can browse the [latest generated source code](https://github.com/BlaXpirit/crsfml/tree/sources/voidcsfml) of *VoidCSFML*, but it comes almost entirely from a [generator program](https://github.com/BlaXpirit/crsfml/blob/master/generate.cr), so contributions are accepted only in the *master* branch.
11+
You can browse the [latest generated source code](https://github.com/oprypin/crsfml/tree/sources/voidcsfml) of *VoidCSFML*, but it comes almost entirely from a [generator program](https://github.com/oprypin/crsfml/blob/master/generate.cr), so contributions are accepted only in the *master* branch.
1212

1313
Installation
1414
------------
@@ -26,9 +26,9 @@ For building, [CMake][] and a C++ compiler are required (to the best of the auth
2626

2727
### Obtaining the sources
2828

29-
Generating the sources is an **optional** step. If you are sure you have a matching version of SFML to the [pre-generated sources](https://github.com/BlaXpirit/crsfml/tree/sources/voidcsfml) (usually latest), you can use these. In fact, you may already be looking at the generated sources, just check whether the *voidcsfml/src* folder is populated. For development it's usually best to [build whole CrSFML](#building-crsfml). But, for completeness' sake, here's how to generate the sources manually:
29+
Generating the sources is an **optional** step. If you are sure you have a matching version of SFML to the [pre-generated sources](https://github.com/oprypin/crsfml/tree/sources/voidcsfml) (usually latest), you can use these. In fact, you may already be looking at the generated sources, just check whether the *voidcsfml/src* folder is populated. For development it's usually best to [build whole CrSFML](#building-crsfml). But, for completeness' sake, here's how to generate the sources manually:
3030

31-
Go to *CrSFML*'s root folder and run [generate.cr](https://github.com/BlaXpirit/crsfml/blob/master/generate.cr):
31+
Go to *CrSFML*'s root folder and run [generate.cr](https://github.com/oprypin/crsfml/blob/master/generate.cr):
3232

3333
```bash
3434
crystal run generate.cr -- /usr/include
@@ -167,7 +167,7 @@ Not to forget that *VoidCSFML* is made automatically, so it can be quickly updat
167167
Credits
168168
-------
169169

170-
*VoidCSFML* was made by [Oleh Prypin][blaxpirit].
170+
*VoidCSFML* was made by [Oleh Prypin][oprypin].
171171

172172
*VoidCSFML* is [licensed](LICENSE) under the terms and conditions of the *zlib/libpng* license.
173173

@@ -188,4 +188,4 @@ The CMake files are based on those of [CSFML][].
188188
[c]: https://en.wikipedia.org/wiki/C_(programming_language)
189189
[crystal]: http://crystal-lang.org/
190190

191-
[blaxpirit]: https://github.com/BlaXpirit
191+
[oprypin]: https://github.com/oprypin

0 commit comments

Comments
 (0)