File tree 4 files changed +3
-4
lines changed 4 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -468,7 +468,6 @@ impl<'self> ConvexShape<'self> {
468
468
* a pointer to the one that you passed to this function.
469
469
* If the source texture is destroyed and the shape tries to
470
470
* use it, the behaviour is undefined.
471
- * texture can be NULL to disable texturing.
472
471
* If reset_rect is true, the TextureRect property of
473
472
* the shape is automatically adjusted to the size of the new
474
473
* texture. If it is false, the texture rect is left unchanged.
Original file line number Diff line number Diff line change @@ -136,7 +136,8 @@ impl Image {
136
136
*
137
137
* # Arguments
138
138
* * filename - Path of the image file to load
139
- * Return a new Image object, or NULL if it failed
139
+ *
140
+ * Return a new Some(Image) object, or None if it failed
140
141
*/
141
142
#[ fixed_stack_segment] #[ inline( never) ]
142
143
pub fn new_from_file ( filename : ~str ) -> Option < Image > {
Original file line number Diff line number Diff line change @@ -513,7 +513,6 @@ impl<'self> RectangleShape<'self> {
513
513
* a pointer to the one that you passed to this function.
514
514
* If the source texture is destroyed and the shape tries to
515
515
* use it, the behaviour is undefined.
516
- * texture can be NULL to disable texturing.
517
516
* If reset_rect is true, the TextureRect property of
518
517
* the shape is automatically adjusted to the size of the new
519
518
* texture. If it is false, the texture rect is left unchanged.
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ impl<'self> Shader<'self> {
121
121
* Load both the vertex and fragment shaders from source codes in memory
122
122
*
123
123
* This function can load both the vertex and the fragment
124
- * shaders, or only one of them: pass NULL if you don't want to load
124
+ * shaders, or only one of them: pass None if you don't want to load
125
125
* either the vertex shader or the fragment shader.
126
126
* The sources must be valid shaders in GLSL language. GLSL is
127
127
* a C-like language dedicated to OpenGL shaders; you'll
You can’t perform that action at this time.
0 commit comments