@@ -25,9 +25,8 @@ and/or [website](https://www.raylib.com).
25
25
## binaries
26
26
27
27
raylibpy comes by default with 32bit binaries for Windows (` libraylib_shared.dll ` , mingw),
28
- Linux (` libraylib.so.2.0.0 ` , i386) and MacOS (` libraylib.2.0.0.dylib ` ), but raylib have
29
- other [ binary releases] ( https://github.com/raisan5/raylib/releases ) (win64, mingw or
30
- msvc15 and linux amd64).
28
+ Linux (` libraylib.so.2.0.0 ` , i386) and MacOS (` libraylib.2.0.0.dylib ` ), but you can find other
29
+ [ binary releases] ( https://github.com/raisan5/raylib/releases ) for 64bit Windows, Linux or OSX.
31
30
32
31
raylibpy will look for the respective binary in 3 locations:
33
32
* In the ` RAYLIB_BIN_PATH ` environment variable;
@@ -59,9 +58,7 @@ Python [enums](https://docs.python.org/3/library/enum.html).
59
58
60
59
### Structures
61
60
62
- #### In general
63
-
64
- All structures inherit from ` ctypes.Structure ` class. At the moment, constructors
61
+ In general, all structures inherit from ` ctypes.Structure ` class. At the moment, constructors
65
62
(except for vectors) require the exact argument types, so ` int ` s can't be passed
66
63
where ` float ` s are expected (although the argument can be omitted).
67
64
@@ -108,7 +105,6 @@ vec2 = vec3.uv # x and y respectively as u and v
108
105
vec3 = vec3.bgr # x, y and z respectively as r, g and b ( rgb is not available in Vector 2)
109
106
vec4 = vec2.rrrg # for attribute reading, is ok to repeat components
110
107
111
-
112
108
# Writing (__setattr__)
113
109
vec3 = Vector3(123.0 , 467.0 , 789.0 )
114
110
vec4.yxwz = 10 , 0 , - 1 , vec3.z # sequences of ints and/or floats are accepted as value
@@ -155,7 +151,7 @@ vec = Vector4(0., 1., 2., 3.)
155
151
print (len (vec)) # outputs 4
156
152
157
153
# __iter__()
158
- for comp in v :
154
+ for comp in vec :
159
155
print (comp) # iterates on Vector4 components
160
156
161
157
# __getitem__()
0 commit comments