diff --git a/generate.cr b/generate.cr index 9d6a30ce..49201073 100644 --- a/generate.cr +++ b/generate.cr @@ -1108,7 +1108,6 @@ class CFunction < CItem else cr_type += "*"*param.type.pointer end - cpp_arg = "(#{param.type.full_name.sub('&', '*')})#{cpp_arg}" if return_params.includes? param cpp_arg = "*#{cpp_arg}" end diff --git a/src/audio/ext.cpp b/src/audio/ext.cpp index 695a75be..ae232eab 100644 --- a/src/audio/ext.cpp +++ b/src/audio/ext.cpp @@ -9,13 +9,13 @@ void sfml_listener_free(void* self) { free(self); } void sfml_listener_setglobalvolume_Bw9(float volume) { - Listener::setGlobalVolume((float)volume); + Listener::setGlobalVolume(volume); } void sfml_listener_getglobalvolume(float* result) { *(float*)result = Listener::getGlobalVolume(); } void sfml_listener_setposition_Bw9Bw9Bw9(float x, float y, float z) { - Listener::setPosition((float)x, (float)y, (float)z); + Listener::setPosition(x, y, z); } void sfml_listener_setposition_NzM(void* position) { Listener::setPosition(*(Vector3f*)position); @@ -24,7 +24,7 @@ void sfml_listener_getposition(void* result) { *(Vector3f*)result = Listener::getPosition(); } void sfml_listener_setdirection_Bw9Bw9Bw9(float x, float y, float z) { - Listener::setDirection((float)x, (float)y, (float)z); + Listener::setDirection(x, y, z); } void sfml_listener_setdirection_NzM(void* direction) { Listener::setDirection(*(Vector3f*)direction); @@ -33,7 +33,7 @@ void sfml_listener_getdirection(void* result) { *(Vector3f*)result = Listener::getDirection(); } void sfml_listener_setupvector_Bw9Bw9Bw9(float x, float y, float z) { - Listener::setUpVector((float)x, (float)y, (float)z); + Listener::setUpVector(x, y, z); } void sfml_listener_setupvector_NzM(void* up_vector) { Listener::setUpVector(*(Vector3f*)up_vector); @@ -85,13 +85,13 @@ void sfml_soundsource_finalize(void* self) { ((_SoundSource*)self)->~_SoundSource(); } void sfml_soundsource_setpitch_Bw9(void* self, float pitch) { - ((_SoundSource*)self)->setPitch((float)pitch); + ((_SoundSource*)self)->setPitch(pitch); } void sfml_soundsource_setvolume_Bw9(void* self, float volume) { - ((_SoundSource*)self)->setVolume((float)volume); + ((_SoundSource*)self)->setVolume(volume); } void sfml_soundsource_setposition_Bw9Bw9Bw9(void* self, float x, float y, float z) { - ((_SoundSource*)self)->setPosition((float)x, (float)y, (float)z); + ((_SoundSource*)self)->setPosition(x, y, z); } void sfml_soundsource_setposition_NzM(void* self, void* position) { ((_SoundSource*)self)->setPosition(*(Vector3f*)position); @@ -100,10 +100,10 @@ void sfml_soundsource_setrelativetolistener_GZq(void* self, Int8 relative) { ((_SoundSource*)self)->setRelativeToListener(relative != 0); } void sfml_soundsource_setmindistance_Bw9(void* self, float distance) { - ((_SoundSource*)self)->setMinDistance((float)distance); + ((_SoundSource*)self)->setMinDistance(distance); } void sfml_soundsource_setattenuation_Bw9(void* self, float attenuation) { - ((_SoundSource*)self)->setAttenuation((float)attenuation); + ((_SoundSource*)self)->setAttenuation(attenuation); } void sfml_soundsource_getpitch(void* self, float* result) { *(float*)result = ((_SoundSource*)self)->getPitch(); @@ -205,19 +205,19 @@ void sfml_soundstream_initialize(void* self) { new(self) _SoundStream(); } void sfml_soundstream_initialize_emSemS(void* self, unsigned int channel_count, unsigned int sample_rate) { - ((_SoundStream*)self)->initialize((unsigned int)channel_count, (unsigned int)sample_rate); + ((_SoundStream*)self)->initialize(channel_count, sample_rate); } void sfml_soundstream_onloop(void* self, Int64* result) { *(Int64*)result = ((_SoundStream*)self)->onLoop(); } void sfml_soundstream_setpitch_Bw9(void* self, float pitch) { - ((_SoundStream*)self)->setPitch((float)pitch); + ((_SoundStream*)self)->setPitch(pitch); } void sfml_soundstream_setvolume_Bw9(void* self, float volume) { - ((_SoundStream*)self)->setVolume((float)volume); + ((_SoundStream*)self)->setVolume(volume); } void sfml_soundstream_setposition_Bw9Bw9Bw9(void* self, float x, float y, float z) { - ((_SoundStream*)self)->setPosition((float)x, (float)y, (float)z); + ((_SoundStream*)self)->setPosition(x, y, z); } void sfml_soundstream_setposition_NzM(void* self, void* position) { ((_SoundStream*)self)->setPosition(*(Vector3f*)position); @@ -226,10 +226,10 @@ void sfml_soundstream_setrelativetolistener_GZq(void* self, Int8 relative) { ((_SoundStream*)self)->setRelativeToListener(relative != 0); } void sfml_soundstream_setmindistance_Bw9(void* self, float distance) { - ((_SoundStream*)self)->setMinDistance((float)distance); + ((_SoundStream*)self)->setMinDistance(distance); } void sfml_soundstream_setattenuation_Bw9(void* self, float attenuation) { - ((_SoundStream*)self)->setAttenuation((float)attenuation); + ((_SoundStream*)self)->setAttenuation(attenuation); } void sfml_soundstream_getpitch(void* self, float* result) { *(float*)result = ((_SoundStream*)self)->getPitch(); @@ -310,13 +310,13 @@ void sfml_music_getloop(void* self, Int8* result) { *(bool*)result = ((Music*)self)->getLoop(); } void sfml_music_setpitch_Bw9(void* self, float pitch) { - ((Music*)self)->setPitch((float)pitch); + ((Music*)self)->setPitch(pitch); } void sfml_music_setvolume_Bw9(void* self, float volume) { - ((Music*)self)->setVolume((float)volume); + ((Music*)self)->setVolume(volume); } void sfml_music_setposition_Bw9Bw9Bw9(void* self, float x, float y, float z) { - ((Music*)self)->setPosition((float)x, (float)y, (float)z); + ((Music*)self)->setPosition(x, y, z); } void sfml_music_setposition_NzM(void* self, void* position) { ((Music*)self)->setPosition(*(Vector3f*)position); @@ -325,10 +325,10 @@ void sfml_music_setrelativetolistener_GZq(void* self, Int8 relative) { ((Music*)self)->setRelativeToListener(relative != 0); } void sfml_music_setmindistance_Bw9(void* self, float distance) { - ((Music*)self)->setMinDistance((float)distance); + ((Music*)self)->setMinDistance(distance); } void sfml_music_setattenuation_Bw9(void* self, float attenuation) { - ((Music*)self)->setAttenuation((float)attenuation); + ((Music*)self)->setAttenuation(attenuation); } void sfml_music_getpitch(void* self, float* result) { *(float*)result = ((Music*)self)->getPitch(); @@ -397,13 +397,13 @@ void sfml_sound_resetbuffer(void* self) { ((Sound*)self)->resetBuffer(); } void sfml_sound_setpitch_Bw9(void* self, float pitch) { - ((Sound*)self)->setPitch((float)pitch); + ((Sound*)self)->setPitch(pitch); } void sfml_sound_setvolume_Bw9(void* self, float volume) { - ((Sound*)self)->setVolume((float)volume); + ((Sound*)self)->setVolume(volume); } void sfml_sound_setposition_Bw9Bw9Bw9(void* self, float x, float y, float z) { - ((Sound*)self)->setPosition((float)x, (float)y, (float)z); + ((Sound*)self)->setPosition(x, y, z); } void sfml_sound_setposition_NzM(void* self, void* position) { ((Sound*)self)->setPosition(*(Vector3f*)position); @@ -412,10 +412,10 @@ void sfml_sound_setrelativetolistener_GZq(void* self, Int8 relative) { ((Sound*)self)->setRelativeToListener(relative != 0); } void sfml_sound_setmindistance_Bw9(void* self, float distance) { - ((Sound*)self)->setMinDistance((float)distance); + ((Sound*)self)->setMinDistance(distance); } void sfml_sound_setattenuation_Bw9(void* self, float attenuation) { - ((Sound*)self)->setAttenuation((float)attenuation); + ((Sound*)self)->setAttenuation(attenuation); } void sfml_sound_getpitch(void* self, float* result) { *(float*)result = ((Sound*)self)->getPitch(); @@ -457,7 +457,7 @@ void sfml_soundbuffer_loadfromstream_PO0(void* self, void* stream, Int8* result) *(bool*)result = ((SoundBuffer*)self)->loadFromStream(*(InputStream*)stream); } void sfml_soundbuffer_loadfromsamples_xzLJvtemSemS(void* self, Int16* samples, Uint64 sample_count, unsigned int channel_count, unsigned int sample_rate, Int8* result) { - *(bool*)result = ((SoundBuffer*)self)->loadFromSamples((Int16 const*)samples, sample_count, (unsigned int)channel_count, (unsigned int)sample_rate); + *(bool*)result = ((SoundBuffer*)self)->loadFromSamples(samples, sample_count, channel_count, sample_rate); } void sfml_soundbuffer_savetofile_zkC(void* self, std::size_t filename_size, char* filename, Int8* result) { *(bool*)result = ((SoundBuffer*)self)->saveToFile(std::string(filename, filename_size)); @@ -520,7 +520,7 @@ void sfml_soundrecorder_finalize(void* self) { ((_SoundRecorder*)self)->~_SoundRecorder(); } void sfml_soundrecorder_start_emS(void* self, unsigned int sample_rate, Int8* result) { - *(bool*)result = ((_SoundRecorder*)self)->start((unsigned int)sample_rate); + *(bool*)result = ((_SoundRecorder*)self)->start(sample_rate); } void sfml_soundrecorder_stop(void* self) { ((_SoundRecorder*)self)->stop(); @@ -551,7 +551,7 @@ void sfml_soundrecorder_getdevice(void* self, char** result) { *result = const_cast(str.c_str()); } void sfml_soundrecorder_setchannelcount_emS(void* self, unsigned int channel_count) { - ((_SoundRecorder*)self)->setChannelCount((unsigned int)channel_count); + ((_SoundRecorder*)self)->setChannelCount(channel_count); } void sfml_soundrecorder_getchannelcount(void* self, unsigned int* result) { *(unsigned int*)result = ((_SoundRecorder*)self)->getChannelCount(); @@ -587,7 +587,7 @@ void sfml_soundbufferrecorder_getbuffer(void* self, void** result) { *(SoundBuffer**)result = const_cast(&((SoundBufferRecorder*)self)->getBuffer()); } void sfml_soundbufferrecorder_start_emS(void* self, unsigned int sample_rate, Int8* result) { - *(bool*)result = ((SoundBufferRecorder*)self)->start((unsigned int)sample_rate); + *(bool*)result = ((SoundBufferRecorder*)self)->start(sample_rate); } void sfml_soundbufferrecorder_stop(void* self) { ((SoundBufferRecorder*)self)->stop(); @@ -618,7 +618,7 @@ void sfml_soundbufferrecorder_getdevice(void* self, char** result) { *result = const_cast(str.c_str()); } void sfml_soundbufferrecorder_setchannelcount_emS(void* self, unsigned int channel_count) { - ((SoundBufferRecorder*)self)->setChannelCount((unsigned int)channel_count); + ((SoundBufferRecorder*)self)->setChannelCount(channel_count); } void sfml_soundbufferrecorder_getchannelcount(void* self, unsigned int* result) { *(unsigned int*)result = ((SoundBufferRecorder*)self)->getChannelCount(); diff --git a/src/graphics/ext.cpp b/src/graphics/ext.cpp index 585698d5..746e705a 100644 --- a/src/graphics/ext.cpp +++ b/src/graphics/ext.cpp @@ -55,7 +55,7 @@ void sfml_transform_initialize(void* self) { new(self) Transform(); } void sfml_transform_initialize_Bw9Bw9Bw9Bw9Bw9Bw9Bw9Bw9Bw9(void* self, float a00, float a01, float a02, float a10, float a11, float a12, float a20, float a21, float a22) { - new(self) Transform((float)a00, (float)a01, (float)a02, (float)a10, (float)a11, (float)a12, (float)a20, (float)a21, (float)a22); + new(self) Transform(a00, a01, a02, a10, a11, a12, a20, a21, a22); } void sfml_transform_getmatrix(void* self, float** result) { *(float**)result = const_cast(((Transform*)self)->getMatrix()); @@ -64,7 +64,7 @@ void sfml_transform_getinverse(void* self, void* result) { *(Transform*)result = ((Transform*)self)->getInverse(); } void sfml_transform_transformpoint_Bw9Bw9(void* self, float x, float y, void* result) { - *(Vector2f*)result = ((Transform*)self)->transformPoint((float)x, (float)y); + *(Vector2f*)result = ((Transform*)self)->transformPoint(x, y); } void sfml_transform_transformpoint_UU2(void* self, void* point, void* result) { *(Vector2f*)result = ((Transform*)self)->transformPoint(*(Vector2f*)point); @@ -76,25 +76,25 @@ void sfml_transform_combine_FPe(void* self, void* transform, void* result) { *(Transform*)result = ((Transform*)self)->combine(*(Transform*)transform); } void sfml_transform_translate_Bw9Bw9(void* self, float x, float y, void* result) { - *(Transform*)result = ((Transform*)self)->translate((float)x, (float)y); + *(Transform*)result = ((Transform*)self)->translate(x, y); } void sfml_transform_translate_UU2(void* self, void* offset, void* result) { *(Transform*)result = ((Transform*)self)->translate(*(Vector2f*)offset); } void sfml_transform_rotate_Bw9(void* self, float angle, void* result) { - *(Transform*)result = ((Transform*)self)->rotate((float)angle); + *(Transform*)result = ((Transform*)self)->rotate(angle); } void sfml_transform_rotate_Bw9Bw9Bw9(void* self, float angle, float center_x, float center_y, void* result) { - *(Transform*)result = ((Transform*)self)->rotate((float)angle, (float)center_x, (float)center_y); + *(Transform*)result = ((Transform*)self)->rotate(angle, center_x, center_y); } void sfml_transform_rotate_Bw9UU2(void* self, float angle, void* center, void* result) { - *(Transform*)result = ((Transform*)self)->rotate((float)angle, *(Vector2f*)center); + *(Transform*)result = ((Transform*)self)->rotate(angle, *(Vector2f*)center); } void sfml_transform_scale_Bw9Bw9(void* self, float scale_x, float scale_y, void* result) { - *(Transform*)result = ((Transform*)self)->scale((float)scale_x, (float)scale_y); + *(Transform*)result = ((Transform*)self)->scale(scale_x, scale_y); } void sfml_transform_scale_Bw9Bw9Bw9Bw9(void* self, float scale_x, float scale_y, float center_x, float center_y, void* result) { - *(Transform*)result = ((Transform*)self)->scale((float)scale_x, (float)scale_y, (float)center_x, (float)center_y); + *(Transform*)result = ((Transform*)self)->scale(scale_x, scale_y, center_x, center_y); } void sfml_transform_scale_UU2(void* self, void* factors, void* result) { *(Transform*)result = ((Transform*)self)->scale(*(Vector2f*)factors); @@ -175,22 +175,22 @@ void sfml_transformable_finalize(void* self) { ((Transformable*)self)->~Transformable(); } void sfml_transformable_setposition_Bw9Bw9(void* self, float x, float y) { - ((Transformable*)self)->setPosition((float)x, (float)y); + ((Transformable*)self)->setPosition(x, y); } void sfml_transformable_setposition_UU2(void* self, void* position) { ((Transformable*)self)->setPosition(*(Vector2f*)position); } void sfml_transformable_setrotation_Bw9(void* self, float angle) { - ((Transformable*)self)->setRotation((float)angle); + ((Transformable*)self)->setRotation(angle); } void sfml_transformable_setscale_Bw9Bw9(void* self, float factor_x, float factor_y) { - ((Transformable*)self)->setScale((float)factor_x, (float)factor_y); + ((Transformable*)self)->setScale(factor_x, factor_y); } void sfml_transformable_setscale_UU2(void* self, void* factors) { ((Transformable*)self)->setScale(*(Vector2f*)factors); } void sfml_transformable_setorigin_Bw9Bw9(void* self, float x, float y) { - ((Transformable*)self)->setOrigin((float)x, (float)y); + ((Transformable*)self)->setOrigin(x, y); } void sfml_transformable_setorigin_UU2(void* self, void* origin) { ((Transformable*)self)->setOrigin(*(Vector2f*)origin); @@ -208,16 +208,16 @@ void sfml_transformable_getorigin(void* self, void* result) { *(Vector2f*)result = ((Transformable*)self)->getOrigin(); } void sfml_transformable_move_Bw9Bw9(void* self, float offset_x, float offset_y) { - ((Transformable*)self)->move((float)offset_x, (float)offset_y); + ((Transformable*)self)->move(offset_x, offset_y); } void sfml_transformable_move_UU2(void* self, void* offset) { ((Transformable*)self)->move(*(Vector2f*)offset); } void sfml_transformable_rotate_Bw9(void* self, float angle) { - ((Transformable*)self)->rotate((float)angle); + ((Transformable*)self)->rotate(angle); } void sfml_transformable_scale_Bw9Bw9(void* self, float factor_x, float factor_y) { - ((Transformable*)self)->scale((float)factor_x, (float)factor_y); + ((Transformable*)self)->scale(factor_x, factor_y); } void sfml_transformable_scale_UU2(void* self, void* factor) { ((Transformable*)self)->scale(*(Vector2f*)factor); @@ -241,25 +241,25 @@ void sfml_color_initialize(void* self) { new(self) Color(); } void sfml_color_initialize_9yU9yU9yU9yU(void* self, Uint8 red, Uint8 green, Uint8 blue, Uint8 alpha) { - new(self) Color((Uint8)red, (Uint8)green, (Uint8)blue, (Uint8)alpha); + new(self) Color(red, green, blue, alpha); } void sfml_color_initialize_saL(void* self, Uint32 color) { - new(self) Color((Uint32)color); + new(self) Color(color); } void sfml_color_tointeger(void* self, Uint32* result) { *(Uint32*)result = ((Color*)self)->toInteger(); } void sfml_color_setr_9yU(void* self, Uint8 r) { - ((Color*)self)->r = (Uint8)r; + ((Color*)self)->r = r; } void sfml_color_setg_9yU(void* self, Uint8 g) { - ((Color*)self)->g = (Uint8)g; + ((Color*)self)->g = g; } void sfml_color_setb_9yU(void* self, Uint8 b) { - ((Color*)self)->b = (Uint8)b; + ((Color*)self)->b = b; } void sfml_color_seta_9yU(void* self, Uint8 a) { - ((Color*)self)->a = (Uint8)a; + ((Color*)self)->a = a; } void sfml_operator_eq_QVeQVe(void* left, void* right, Int8* result) { *(bool*)result = operator==(*(Color*)left, *(Color*)right); @@ -325,22 +325,22 @@ void sfml_vertexarray_initialize(void* self) { new(self) VertexArray(); } void sfml_vertexarray_initialize_u9wvgv(void* self, int type, std::size_t vertex_count) { - new(self) VertexArray((PrimitiveType)type, (std::size_t)vertex_count); + new(self) VertexArray((PrimitiveType)type, vertex_count); } void sfml_vertexarray_getvertexcount(void* self, std::size_t* result) { *(std::size_t*)result = ((VertexArray*)self)->getVertexCount(); } void sfml_vertexarray_operator_indexset_vgvRos(void* self, std::size_t index, void* value) { - ((VertexArray*)self)->operator[]((std::size_t)index) = *(Vertex*)value; + ((VertexArray*)self)->operator[](index) = *(Vertex*)value; } void sfml_vertexarray_operator_index_vgv(void* self, std::size_t index, void* result) { - *(Vertex*)result = ((VertexArray*)self)->operator[]((std::size_t)index); + *(Vertex*)result = ((VertexArray*)self)->operator[](index); } void sfml_vertexarray_clear(void* self) { ((VertexArray*)self)->clear(); } void sfml_vertexarray_resize_vgv(void* self, std::size_t vertex_count) { - ((VertexArray*)self)->resize((std::size_t)vertex_count); + ((VertexArray*)self)->resize(vertex_count); } void sfml_vertexarray_append_Y3J(void* self, void* vertex) { ((VertexArray*)self)->append(*(Vertex*)vertex); @@ -414,7 +414,7 @@ void sfml_shape_setoutlinecolor_QVe(void* self, void* color) { ((_Shape*)self)->setOutlineColor(*(Color*)color); } void sfml_shape_setoutlinethickness_Bw9(void* self, float thickness) { - ((_Shape*)self)->setOutlineThickness((float)thickness); + ((_Shape*)self)->setOutlineThickness(thickness); } void sfml_shape_gettexture(void* self, void** result) { *(Texture**)result = const_cast(((_Shape*)self)->getTexture()); @@ -444,22 +444,22 @@ void sfml_shape_update(void* self) { ((_Shape*)self)->update(); } void sfml_shape_setposition_Bw9Bw9(void* self, float x, float y) { - ((_Shape*)self)->setPosition((float)x, (float)y); + ((_Shape*)self)->setPosition(x, y); } void sfml_shape_setposition_UU2(void* self, void* position) { ((_Shape*)self)->setPosition(*(Vector2f*)position); } void sfml_shape_setrotation_Bw9(void* self, float angle) { - ((_Shape*)self)->setRotation((float)angle); + ((_Shape*)self)->setRotation(angle); } void sfml_shape_setscale_Bw9Bw9(void* self, float factor_x, float factor_y) { - ((_Shape*)self)->setScale((float)factor_x, (float)factor_y); + ((_Shape*)self)->setScale(factor_x, factor_y); } void sfml_shape_setscale_UU2(void* self, void* factors) { ((_Shape*)self)->setScale(*(Vector2f*)factors); } void sfml_shape_setorigin_Bw9Bw9(void* self, float x, float y) { - ((_Shape*)self)->setOrigin((float)x, (float)y); + ((_Shape*)self)->setOrigin(x, y); } void sfml_shape_setorigin_UU2(void* self, void* origin) { ((_Shape*)self)->setOrigin(*(Vector2f*)origin); @@ -477,16 +477,16 @@ void sfml_shape_getorigin(void* self, void* result) { *(Vector2f*)result = ((_Shape*)self)->getOrigin(); } void sfml_shape_move_Bw9Bw9(void* self, float offset_x, float offset_y) { - ((_Shape*)self)->move((float)offset_x, (float)offset_y); + ((_Shape*)self)->move(offset_x, offset_y); } void sfml_shape_move_UU2(void* self, void* offset) { ((_Shape*)self)->move(*(Vector2f*)offset); } void sfml_shape_rotate_Bw9(void* self, float angle) { - ((_Shape*)self)->rotate((float)angle); + ((_Shape*)self)->rotate(angle); } void sfml_shape_scale_Bw9Bw9(void* self, float factor_x, float factor_y) { - ((_Shape*)self)->scale((float)factor_x, (float)factor_y); + ((_Shape*)self)->scale(factor_x, factor_y); } void sfml_shape_scale_UU2(void* self, void* factor) { ((_Shape*)self)->scale(*(Vector2f*)factor); @@ -516,22 +516,22 @@ void sfml_circleshape_free(void* self) { free(self); } void sfml_circleshape_initialize_Bw9vgv(void* self, float radius, std::size_t point_count) { - new(self) CircleShape((float)radius, (std::size_t)point_count); + new(self) CircleShape(radius, point_count); } void sfml_circleshape_setradius_Bw9(void* self, float radius) { - ((CircleShape*)self)->setRadius((float)radius); + ((CircleShape*)self)->setRadius(radius); } void sfml_circleshape_getradius(void* self, float* result) { *(float*)result = ((CircleShape*)self)->getRadius(); } void sfml_circleshape_setpointcount_vgv(void* self, std::size_t count) { - ((CircleShape*)self)->setPointCount((std::size_t)count); + ((CircleShape*)self)->setPointCount(count); } void sfml_circleshape_getpointcount(void* self, std::size_t* result) { *(std::size_t*)result = ((CircleShape*)self)->getPointCount(); } void sfml_circleshape_getpoint_vgv(void* self, std::size_t index, void* result) { - *(Vector2f*)result = ((CircleShape*)self)->getPoint((std::size_t)index); + *(Vector2f*)result = ((CircleShape*)self)->getPoint(index); } void sfml_circleshape_settexture_MXdGZq(void* self, void* texture, Int8 reset_rect) { ((CircleShape*)self)->setTexture((Texture*)texture, reset_rect != 0); @@ -546,7 +546,7 @@ void sfml_circleshape_setoutlinecolor_QVe(void* self, void* color) { ((CircleShape*)self)->setOutlineColor(*(Color*)color); } void sfml_circleshape_setoutlinethickness_Bw9(void* self, float thickness) { - ((CircleShape*)self)->setOutlineThickness((float)thickness); + ((CircleShape*)self)->setOutlineThickness(thickness); } void sfml_circleshape_gettexture(void* self, void** result) { *(Texture**)result = const_cast(((CircleShape*)self)->getTexture()); @@ -570,22 +570,22 @@ void sfml_circleshape_getglobalbounds(void* self, void* result) { *(FloatRect*)result = ((CircleShape*)self)->getGlobalBounds(); } void sfml_circleshape_setposition_Bw9Bw9(void* self, float x, float y) { - ((CircleShape*)self)->setPosition((float)x, (float)y); + ((CircleShape*)self)->setPosition(x, y); } void sfml_circleshape_setposition_UU2(void* self, void* position) { ((CircleShape*)self)->setPosition(*(Vector2f*)position); } void sfml_circleshape_setrotation_Bw9(void* self, float angle) { - ((CircleShape*)self)->setRotation((float)angle); + ((CircleShape*)self)->setRotation(angle); } void sfml_circleshape_setscale_Bw9Bw9(void* self, float factor_x, float factor_y) { - ((CircleShape*)self)->setScale((float)factor_x, (float)factor_y); + ((CircleShape*)self)->setScale(factor_x, factor_y); } void sfml_circleshape_setscale_UU2(void* self, void* factors) { ((CircleShape*)self)->setScale(*(Vector2f*)factors); } void sfml_circleshape_setorigin_Bw9Bw9(void* self, float x, float y) { - ((CircleShape*)self)->setOrigin((float)x, (float)y); + ((CircleShape*)self)->setOrigin(x, y); } void sfml_circleshape_setorigin_UU2(void* self, void* origin) { ((CircleShape*)self)->setOrigin(*(Vector2f*)origin); @@ -603,16 +603,16 @@ void sfml_circleshape_getorigin(void* self, void* result) { *(Vector2f*)result = ((CircleShape*)self)->getOrigin(); } void sfml_circleshape_move_Bw9Bw9(void* self, float offset_x, float offset_y) { - ((CircleShape*)self)->move((float)offset_x, (float)offset_y); + ((CircleShape*)self)->move(offset_x, offset_y); } void sfml_circleshape_move_UU2(void* self, void* offset) { ((CircleShape*)self)->move(*(Vector2f*)offset); } void sfml_circleshape_rotate_Bw9(void* self, float angle) { - ((CircleShape*)self)->rotate((float)angle); + ((CircleShape*)self)->rotate(angle); } void sfml_circleshape_scale_Bw9Bw9(void* self, float factor_x, float factor_y) { - ((CircleShape*)self)->scale((float)factor_x, (float)factor_y); + ((CircleShape*)self)->scale(factor_x, factor_y); } void sfml_circleshape_scale_UU2(void* self, void* factor) { ((CircleShape*)self)->scale(*(Vector2f*)factor); @@ -645,19 +645,19 @@ void sfml_convexshape_free(void* self) { free(self); } void sfml_convexshape_initialize_vgv(void* self, std::size_t point_count) { - new(self) ConvexShape((std::size_t)point_count); + new(self) ConvexShape(point_count); } void sfml_convexshape_setpointcount_vgv(void* self, std::size_t count) { - ((ConvexShape*)self)->setPointCount((std::size_t)count); + ((ConvexShape*)self)->setPointCount(count); } void sfml_convexshape_getpointcount(void* self, std::size_t* result) { *(std::size_t*)result = ((ConvexShape*)self)->getPointCount(); } void sfml_convexshape_setpoint_vgvUU2(void* self, std::size_t index, void* point) { - ((ConvexShape*)self)->setPoint((std::size_t)index, *(Vector2f*)point); + ((ConvexShape*)self)->setPoint(index, *(Vector2f*)point); } void sfml_convexshape_getpoint_vgv(void* self, std::size_t index, void* result) { - *(Vector2f*)result = ((ConvexShape*)self)->getPoint((std::size_t)index); + *(Vector2f*)result = ((ConvexShape*)self)->getPoint(index); } void sfml_convexshape_settexture_MXdGZq(void* self, void* texture, Int8 reset_rect) { ((ConvexShape*)self)->setTexture((Texture*)texture, reset_rect != 0); @@ -672,7 +672,7 @@ void sfml_convexshape_setoutlinecolor_QVe(void* self, void* color) { ((ConvexShape*)self)->setOutlineColor(*(Color*)color); } void sfml_convexshape_setoutlinethickness_Bw9(void* self, float thickness) { - ((ConvexShape*)self)->setOutlineThickness((float)thickness); + ((ConvexShape*)self)->setOutlineThickness(thickness); } void sfml_convexshape_gettexture(void* self, void** result) { *(Texture**)result = const_cast(((ConvexShape*)self)->getTexture()); @@ -696,22 +696,22 @@ void sfml_convexshape_getglobalbounds(void* self, void* result) { *(FloatRect*)result = ((ConvexShape*)self)->getGlobalBounds(); } void sfml_convexshape_setposition_Bw9Bw9(void* self, float x, float y) { - ((ConvexShape*)self)->setPosition((float)x, (float)y); + ((ConvexShape*)self)->setPosition(x, y); } void sfml_convexshape_setposition_UU2(void* self, void* position) { ((ConvexShape*)self)->setPosition(*(Vector2f*)position); } void sfml_convexshape_setrotation_Bw9(void* self, float angle) { - ((ConvexShape*)self)->setRotation((float)angle); + ((ConvexShape*)self)->setRotation(angle); } void sfml_convexshape_setscale_Bw9Bw9(void* self, float factor_x, float factor_y) { - ((ConvexShape*)self)->setScale((float)factor_x, (float)factor_y); + ((ConvexShape*)self)->setScale(factor_x, factor_y); } void sfml_convexshape_setscale_UU2(void* self, void* factors) { ((ConvexShape*)self)->setScale(*(Vector2f*)factors); } void sfml_convexshape_setorigin_Bw9Bw9(void* self, float x, float y) { - ((ConvexShape*)self)->setOrigin((float)x, (float)y); + ((ConvexShape*)self)->setOrigin(x, y); } void sfml_convexshape_setorigin_UU2(void* self, void* origin) { ((ConvexShape*)self)->setOrigin(*(Vector2f*)origin); @@ -729,16 +729,16 @@ void sfml_convexshape_getorigin(void* self, void* result) { *(Vector2f*)result = ((ConvexShape*)self)->getOrigin(); } void sfml_convexshape_move_Bw9Bw9(void* self, float offset_x, float offset_y) { - ((ConvexShape*)self)->move((float)offset_x, (float)offset_y); + ((ConvexShape*)self)->move(offset_x, offset_y); } void sfml_convexshape_move_UU2(void* self, void* offset) { ((ConvexShape*)self)->move(*(Vector2f*)offset); } void sfml_convexshape_rotate_Bw9(void* self, float angle) { - ((ConvexShape*)self)->rotate((float)angle); + ((ConvexShape*)self)->rotate(angle); } void sfml_convexshape_scale_Bw9Bw9(void* self, float factor_x, float factor_y) { - ((ConvexShape*)self)->scale((float)factor_x, (float)factor_y); + ((ConvexShape*)self)->scale(factor_x, factor_y); } void sfml_convexshape_scale_UU2(void* self, void* factor) { ((ConvexShape*)self)->scale(*(Vector2f*)factor); @@ -771,7 +771,7 @@ void sfml_glyph_initialize(void* self) { new(self) Glyph(); } void sfml_glyph_setadvance_Bw9(void* self, float advance) { - ((Glyph*)self)->advance = (float)advance; + ((Glyph*)self)->advance = advance; } void sfml_glyph_setbounds_5MC(void* self, void* bounds) { ((Glyph*)self)->bounds = *(FloatRect*)bounds; @@ -795,10 +795,10 @@ void sfml_image_finalize(void* self) { ((Image*)self)->~Image(); } void sfml_image_create_emSemSQVe(void* self, unsigned int width, unsigned int height, void* color) { - ((Image*)self)->create((unsigned int)width, (unsigned int)height, *(Color*)color); + ((Image*)self)->create(width, height, *(Color*)color); } void sfml_image_create_emSemS843(void* self, unsigned int width, unsigned int height, Uint8* pixels) { - ((Image*)self)->create((unsigned int)width, (unsigned int)height, (Uint8 const*)pixels); + ((Image*)self)->create(width, height, pixels); } void sfml_image_loadfromfile_zkC(void* self, std::size_t filename_size, char* filename, Int8* result) { *(bool*)result = ((Image*)self)->loadFromFile(std::string(filename, filename_size)); @@ -816,16 +816,16 @@ void sfml_image_getsize(void* self, void* result) { *(Vector2u*)result = ((Image*)self)->getSize(); } void sfml_image_createmaskfromcolor_QVe9yU(void* self, void* color, Uint8 alpha) { - ((Image*)self)->createMaskFromColor(*(Color*)color, (Uint8)alpha); + ((Image*)self)->createMaskFromColor(*(Color*)color, alpha); } void sfml_image_copy_dptemSemS2k1GZq(void* self, void* source, unsigned int dest_x, unsigned int dest_y, void* source_rect, Int8 apply_alpha) { - ((Image*)self)->copy(*(Image*)source, (unsigned int)dest_x, (unsigned int)dest_y, *(IntRect*)source_rect, apply_alpha != 0); + ((Image*)self)->copy(*(Image*)source, dest_x, dest_y, *(IntRect*)source_rect, apply_alpha != 0); } void sfml_image_setpixel_emSemSQVe(void* self, unsigned int x, unsigned int y, void* color) { - ((Image*)self)->setPixel((unsigned int)x, (unsigned int)y, *(Color*)color); + ((Image*)self)->setPixel(x, y, *(Color*)color); } void sfml_image_getpixel_emSemS(void* self, unsigned int x, unsigned int y, void* result) { - *(Color*)result = ((Image*)self)->getPixel((unsigned int)x, (unsigned int)y); + *(Color*)result = ((Image*)self)->getPixel(x, y); } void sfml_image_getpixelsptr(void* self, Uint8** result) { *(Uint8**)result = const_cast(((Image*)self)->getPixelsPtr()); @@ -852,7 +852,7 @@ void sfml_texture_finalize(void* self) { ((Texture*)self)->~Texture(); } void sfml_texture_create_emSemS(void* self, unsigned int width, unsigned int height, Int8* result) { - *(bool*)result = ((Texture*)self)->create((unsigned int)width, (unsigned int)height); + *(bool*)result = ((Texture*)self)->create(width, height); } void sfml_texture_loadfromfile_zkC2k1(void* self, std::size_t filename_size, char* filename, void* area, Int8* result) { *(bool*)result = ((Texture*)self)->loadFromFile(std::string(filename, filename_size), *(IntRect*)area); @@ -873,28 +873,28 @@ void sfml_texture_copytoimage(void* self, void* result) { *(Image*)result = ((Texture*)self)->copyToImage(); } void sfml_texture_update_843(void* self, Uint8* pixels) { - ((Texture*)self)->update((Uint8 const*)pixels); + ((Texture*)self)->update(pixels); } void sfml_texture_update_843emSemSemSemS(void* self, Uint8* pixels, unsigned int width, unsigned int height, unsigned int x, unsigned int y) { - ((Texture*)self)->update((Uint8 const*)pixels, (unsigned int)width, (unsigned int)height, (unsigned int)x, (unsigned int)y); + ((Texture*)self)->update(pixels, width, height, x, y); } void sfml_texture_update_DJb(void* self, void* texture) { ((Texture*)self)->update(*(Texture*)texture); } void sfml_texture_update_DJbemSemS(void* self, void* texture, unsigned int x, unsigned int y) { - ((Texture*)self)->update(*(Texture*)texture, (unsigned int)x, (unsigned int)y); + ((Texture*)self)->update(*(Texture*)texture, x, y); } void sfml_texture_update_dpt(void* self, void* image) { ((Texture*)self)->update(*(Image*)image); } void sfml_texture_update_dptemSemS(void* self, void* image, unsigned int x, unsigned int y) { - ((Texture*)self)->update(*(Image*)image, (unsigned int)x, (unsigned int)y); + ((Texture*)self)->update(*(Image*)image, x, y); } void sfml_texture_update_JRh(void* self, void* window) { ((Texture*)self)->update(*(Window*)window); } void sfml_texture_update_JRhemSemS(void* self, void* window, unsigned int x, unsigned int y) { - ((Texture*)self)->update(*(Window*)window, (unsigned int)x, (unsigned int)y); + ((Texture*)self)->update(*(Window*)window, x, y); } void sfml_texture_setsmooth_GZq(void* self, Int8 smooth) { ((Texture*)self)->setSmooth(smooth != 0); @@ -980,22 +980,22 @@ void sfml_font_getinfo(void* self, void** result) { *(Font::Info**)result = const_cast(&((Font*)self)->getInfo()); } void sfml_font_getglyph_saLemSGZqBw9(void* self, Uint32 code_point, unsigned int character_size, Int8 bold, float outline_thickness, void* result) { - *(Glyph*)result = ((Font*)self)->getGlyph((Uint32)code_point, (unsigned int)character_size, bold != 0, (float)outline_thickness); + *(Glyph*)result = ((Font*)self)->getGlyph(code_point, character_size, bold != 0, outline_thickness); } void sfml_font_getkerning_saLsaLemS(void* self, Uint32 first, Uint32 second, unsigned int character_size, float* result) { - *(float*)result = ((Font*)self)->getKerning((Uint32)first, (Uint32)second, (unsigned int)character_size); + *(float*)result = ((Font*)self)->getKerning(first, second, character_size); } void sfml_font_getlinespacing_emS(void* self, unsigned int character_size, float* result) { - *(float*)result = ((Font*)self)->getLineSpacing((unsigned int)character_size); + *(float*)result = ((Font*)self)->getLineSpacing(character_size); } void sfml_font_getunderlineposition_emS(void* self, unsigned int character_size, float* result) { - *(float*)result = ((Font*)self)->getUnderlinePosition((unsigned int)character_size); + *(float*)result = ((Font*)self)->getUnderlinePosition(character_size); } void sfml_font_getunderlinethickness_emS(void* self, unsigned int character_size, float* result) { - *(float*)result = ((Font*)self)->getUnderlineThickness((unsigned int)character_size); + *(float*)result = ((Font*)self)->getUnderlineThickness(character_size); } void sfml_font_gettexture_emS(void* self, unsigned int character_size, void** result) { - *(Texture**)result = const_cast(&((Font*)self)->getTexture((unsigned int)character_size)); + *(Texture**)result = const_cast(&((Font*)self)->getTexture(character_size)); } void sfml_font_initialize_7CF(void* self, void* copy) { new(self) Font(*(Font*)copy); @@ -1022,7 +1022,7 @@ void sfml_rectangleshape_getpointcount(void* self, std::size_t* result) { *(std::size_t*)result = ((RectangleShape*)self)->getPointCount(); } void sfml_rectangleshape_getpoint_vgv(void* self, std::size_t index, void* result) { - *(Vector2f*)result = ((RectangleShape*)self)->getPoint((std::size_t)index); + *(Vector2f*)result = ((RectangleShape*)self)->getPoint(index); } void sfml_rectangleshape_settexture_MXdGZq(void* self, void* texture, Int8 reset_rect) { ((RectangleShape*)self)->setTexture((Texture*)texture, reset_rect != 0); @@ -1037,7 +1037,7 @@ void sfml_rectangleshape_setoutlinecolor_QVe(void* self, void* color) { ((RectangleShape*)self)->setOutlineColor(*(Color*)color); } void sfml_rectangleshape_setoutlinethickness_Bw9(void* self, float thickness) { - ((RectangleShape*)self)->setOutlineThickness((float)thickness); + ((RectangleShape*)self)->setOutlineThickness(thickness); } void sfml_rectangleshape_gettexture(void* self, void** result) { *(Texture**)result = const_cast(((RectangleShape*)self)->getTexture()); @@ -1061,22 +1061,22 @@ void sfml_rectangleshape_getglobalbounds(void* self, void* result) { *(FloatRect*)result = ((RectangleShape*)self)->getGlobalBounds(); } void sfml_rectangleshape_setposition_Bw9Bw9(void* self, float x, float y) { - ((RectangleShape*)self)->setPosition((float)x, (float)y); + ((RectangleShape*)self)->setPosition(x, y); } void sfml_rectangleshape_setposition_UU2(void* self, void* position) { ((RectangleShape*)self)->setPosition(*(Vector2f*)position); } void sfml_rectangleshape_setrotation_Bw9(void* self, float angle) { - ((RectangleShape*)self)->setRotation((float)angle); + ((RectangleShape*)self)->setRotation(angle); } void sfml_rectangleshape_setscale_Bw9Bw9(void* self, float factor_x, float factor_y) { - ((RectangleShape*)self)->setScale((float)factor_x, (float)factor_y); + ((RectangleShape*)self)->setScale(factor_x, factor_y); } void sfml_rectangleshape_setscale_UU2(void* self, void* factors) { ((RectangleShape*)self)->setScale(*(Vector2f*)factors); } void sfml_rectangleshape_setorigin_Bw9Bw9(void* self, float x, float y) { - ((RectangleShape*)self)->setOrigin((float)x, (float)y); + ((RectangleShape*)self)->setOrigin(x, y); } void sfml_rectangleshape_setorigin_UU2(void* self, void* origin) { ((RectangleShape*)self)->setOrigin(*(Vector2f*)origin); @@ -1094,16 +1094,16 @@ void sfml_rectangleshape_getorigin(void* self, void* result) { *(Vector2f*)result = ((RectangleShape*)self)->getOrigin(); } void sfml_rectangleshape_move_Bw9Bw9(void* self, float offset_x, float offset_y) { - ((RectangleShape*)self)->move((float)offset_x, (float)offset_y); + ((RectangleShape*)self)->move(offset_x, offset_y); } void sfml_rectangleshape_move_UU2(void* self, void* offset) { ((RectangleShape*)self)->move(*(Vector2f*)offset); } void sfml_rectangleshape_rotate_Bw9(void* self, float angle) { - ((RectangleShape*)self)->rotate((float)angle); + ((RectangleShape*)self)->rotate(angle); } void sfml_rectangleshape_scale_Bw9Bw9(void* self, float factor_x, float factor_y) { - ((RectangleShape*)self)->scale((float)factor_x, (float)factor_y); + ((RectangleShape*)self)->scale(factor_x, factor_y); } void sfml_rectangleshape_scale_UU2(void* self, void* factor) { ((RectangleShape*)self)->scale(*(Vector2f*)factor); @@ -1145,19 +1145,19 @@ void sfml_view_initialize_UU2UU2(void* self, void* center, void* size) { new(self) View(*(Vector2f*)center, *(Vector2f*)size); } void sfml_view_setcenter_Bw9Bw9(void* self, float x, float y) { - ((View*)self)->setCenter((float)x, (float)y); + ((View*)self)->setCenter(x, y); } void sfml_view_setcenter_UU2(void* self, void* center) { ((View*)self)->setCenter(*(Vector2f*)center); } void sfml_view_setsize_Bw9Bw9(void* self, float width, float height) { - ((View*)self)->setSize((float)width, (float)height); + ((View*)self)->setSize(width, height); } void sfml_view_setsize_UU2(void* self, void* size) { ((View*)self)->setSize(*(Vector2f*)size); } void sfml_view_setrotation_Bw9(void* self, float angle) { - ((View*)self)->setRotation((float)angle); + ((View*)self)->setRotation(angle); } void sfml_view_setviewport_WPZ(void* self, void* viewport) { ((View*)self)->setViewport(*(FloatRect*)viewport); @@ -1178,16 +1178,16 @@ void sfml_view_getviewport(void* self, void* result) { *(FloatRect*)result = ((View*)self)->getViewport(); } void sfml_view_move_Bw9Bw9(void* self, float offset_x, float offset_y) { - ((View*)self)->move((float)offset_x, (float)offset_y); + ((View*)self)->move(offset_x, offset_y); } void sfml_view_move_UU2(void* self, void* offset) { ((View*)self)->move(*(Vector2f*)offset); } void sfml_view_rotate_Bw9(void* self, float angle) { - ((View*)self)->rotate((float)angle); + ((View*)self)->rotate(angle); } void sfml_view_zoom_Bw9(void* self, float factor) { - ((View*)self)->zoom((float)factor); + ((View*)self)->zoom(factor); } void sfml_view_gettransform(void* self, void* result) { *(Transform*)result = ((View*)self)->getTransform(); @@ -1238,7 +1238,7 @@ void sfml_rendertarget_draw_U2Dmi4(void* self, void* vertex_buffer, void* states ((RenderTarget*)self)->draw(*(VertexBuffer*)vertex_buffer, *(RenderStates*)states); } void sfml_rendertarget_draw_U2Dvgvvgvmi4(void* self, void* vertex_buffer, std::size_t first_vertex, std::size_t vertex_count, void* states) { - ((RenderTarget*)self)->draw(*(VertexBuffer*)vertex_buffer, (std::size_t)first_vertex, (std::size_t)vertex_count, *(RenderStates*)states); + ((RenderTarget*)self)->draw(*(VertexBuffer*)vertex_buffer, first_vertex, vertex_count, *(RenderStates*)states); } void sfml_rendertarget_setactive_GZq(void* self, Int8 active, Int8* result) { *(bool*)result = ((RenderTarget*)self)->setActive(active != 0); @@ -1265,10 +1265,10 @@ void sfml_rendertexture_finalize(void* self) { ((RenderTexture*)self)->~RenderTexture(); } void sfml_rendertexture_create_emSemSGZq(void* self, unsigned int width, unsigned int height, Int8 depth_buffer, Int8* result) { - *(bool*)result = ((RenderTexture*)self)->create((unsigned int)width, (unsigned int)height, depth_buffer != 0); + *(bool*)result = ((RenderTexture*)self)->create(width, height, depth_buffer != 0); } void sfml_rendertexture_create_emSemSFw4(void* self, unsigned int width, unsigned int height, void* settings, Int8* result) { - *(bool*)result = ((RenderTexture*)self)->create((unsigned int)width, (unsigned int)height, *(ContextSettings*)settings); + *(bool*)result = ((RenderTexture*)self)->create(width, height, *(ContextSettings*)settings); } void sfml_rendertexture_getmaximumantialiasinglevel(unsigned int* result) { *(unsigned int*)result = RenderTexture::getMaximumAntialiasingLevel(); @@ -1334,7 +1334,7 @@ void sfml_rendertexture_draw_U2Dmi4(void* self, void* vertex_buffer, void* state ((RenderTexture*)self)->draw(*(VertexBuffer*)vertex_buffer, *(RenderStates*)states); } void sfml_rendertexture_draw_U2Dvgvvgvmi4(void* self, void* vertex_buffer, std::size_t first_vertex, std::size_t vertex_count, void* states) { - ((RenderTexture*)self)->draw(*(VertexBuffer*)vertex_buffer, (std::size_t)first_vertex, (std::size_t)vertex_count, *(RenderStates*)states); + ((RenderTexture*)self)->draw(*(VertexBuffer*)vertex_buffer, first_vertex, vertex_count, *(RenderStates*)states); } void sfml_rendertexture_pushglstates(void* self) { ((RenderTexture*)self)->pushGLStates(); @@ -1355,10 +1355,10 @@ void sfml_renderwindow_initialize(void* self) { new(self) RenderWindow(); } void sfml_renderwindow_initialize_wg0bQssaLFw4(void* self, void* mode, std::size_t title_size, Uint32* title, Uint32 style, void* settings) { - new(self) RenderWindow(*(VideoMode*)mode, String::fromUtf32(title, title+title_size), (Uint32)style, *(ContextSettings*)settings); + new(self) RenderWindow(*(VideoMode*)mode, String::fromUtf32(title, title+title_size), style, *(ContextSettings*)settings); } void sfml_renderwindow_initialize_rLQFw4(void* self, WindowHandle handle, void* settings) { - new(self) RenderWindow((WindowHandle)handle, *(ContextSettings*)settings); + new(self) RenderWindow(handle, *(ContextSettings*)settings); } void sfml_renderwindow_finalize(void* self) { ((RenderWindow*)self)->~RenderWindow(); @@ -1373,10 +1373,10 @@ void sfml_renderwindow_capture(void* self, void* result) { *(Image*)result = ((RenderWindow*)self)->capture(); } void sfml_renderwindow_create_wg0bQssaLFw4(void* self, void* mode, std::size_t title_size, Uint32* title, Uint32 style, void* settings) { - ((RenderWindow*)self)->create(*(VideoMode*)mode, String::fromUtf32(title, title+title_size), (Uint32)style, *(ContextSettings*)settings); + ((RenderWindow*)self)->create(*(VideoMode*)mode, String::fromUtf32(title, title+title_size), style, *(ContextSettings*)settings); } void sfml_renderwindow_create_rLQFw4(void* self, WindowHandle handle, void* settings) { - ((RenderWindow*)self)->create((WindowHandle)handle, *(ContextSettings*)settings); + ((RenderWindow*)self)->create(handle, *(ContextSettings*)settings); } void sfml_renderwindow_close(void* self) { ((RenderWindow*)self)->close(); @@ -1406,7 +1406,7 @@ void sfml_renderwindow_settitle_bQs(void* self, std::size_t title_size, Uint32* ((RenderWindow*)self)->setTitle(String::fromUtf32(title, title+title_size)); } void sfml_renderwindow_seticon_emSemS843(void* self, unsigned int width, unsigned int height, Uint8* pixels) { - ((RenderWindow*)self)->setIcon((unsigned int)width, (unsigned int)height, (Uint8 const*)pixels); + ((RenderWindow*)self)->setIcon(width, height, pixels); } void sfml_renderwindow_setvisible_GZq(void* self, Int8 visible) { ((RenderWindow*)self)->setVisible(visible != 0); @@ -1427,10 +1427,10 @@ void sfml_renderwindow_setkeyrepeatenabled_GZq(void* self, Int8 enabled) { ((RenderWindow*)self)->setKeyRepeatEnabled(enabled != 0); } void sfml_renderwindow_setframeratelimit_emS(void* self, unsigned int limit) { - ((RenderWindow*)self)->setFramerateLimit((unsigned int)limit); + ((RenderWindow*)self)->setFramerateLimit(limit); } void sfml_renderwindow_setjoystickthreshold_Bw9(void* self, float threshold) { - ((RenderWindow*)self)->setJoystickThreshold((float)threshold); + ((RenderWindow*)self)->setJoystickThreshold(threshold); } void sfml_renderwindow_requestfocus(void* self) { ((RenderWindow*)self)->requestFocus(); @@ -1478,7 +1478,7 @@ void sfml_renderwindow_draw_U2Dmi4(void* self, void* vertex_buffer, void* states ((RenderWindow*)self)->draw(*(VertexBuffer*)vertex_buffer, *(RenderStates*)states); } void sfml_renderwindow_draw_U2Dvgvvgvmi4(void* self, void* vertex_buffer, std::size_t first_vertex, std::size_t vertex_count, void* states) { - ((RenderWindow*)self)->draw(*(VertexBuffer*)vertex_buffer, (std::size_t)first_vertex, (std::size_t)vertex_count, *(RenderStates*)states); + ((RenderWindow*)self)->draw(*(VertexBuffer*)vertex_buffer, first_vertex, vertex_count, *(RenderStates*)states); } void sfml_renderwindow_pushglstates(void* self) { ((RenderWindow*)self)->pushGLStates(); @@ -1529,16 +1529,16 @@ void sfml_shader_loadfromstream_PO0PO0PO0(void* self, void* vertex_shader_stream *(bool*)result = ((Shader*)self)->loadFromStream(*(InputStream*)vertex_shader_stream, *(InputStream*)geometry_shader_stream, *(InputStream*)fragment_shader_stream); } void sfml_shader_setparameter_zkCBw9(void* self, std::size_t name_size, char* name, float x) { - ((Shader*)self)->setParameter(std::string(name, name_size), (float)x); + ((Shader*)self)->setParameter(std::string(name, name_size), x); } void sfml_shader_setparameter_zkCBw9Bw9(void* self, std::size_t name_size, char* name, float x, float y) { - ((Shader*)self)->setParameter(std::string(name, name_size), (float)x, (float)y); + ((Shader*)self)->setParameter(std::string(name, name_size), x, y); } void sfml_shader_setparameter_zkCBw9Bw9Bw9(void* self, std::size_t name_size, char* name, float x, float y, float z) { - ((Shader*)self)->setParameter(std::string(name, name_size), (float)x, (float)y, (float)z); + ((Shader*)self)->setParameter(std::string(name, name_size), x, y, z); } void sfml_shader_setparameter_zkCBw9Bw9Bw9Bw9(void* self, std::size_t name_size, char* name, float x, float y, float z, float w) { - ((Shader*)self)->setParameter(std::string(name, name_size), (float)x, (float)y, (float)z, (float)w); + ((Shader*)self)->setParameter(std::string(name, name_size), x, y, z, w); } void sfml_shader_setparameter_zkCUU2(void* self, std::size_t name_size, char* name, void* vector) { ((Shader*)self)->setParameter(std::string(name, name_size), *(Vector2f*)vector); @@ -1613,22 +1613,22 @@ void sfml_sprite_getglobalbounds(void* self, void* result) { *(FloatRect*)result = ((Sprite*)self)->getGlobalBounds(); } void sfml_sprite_setposition_Bw9Bw9(void* self, float x, float y) { - ((Sprite*)self)->setPosition((float)x, (float)y); + ((Sprite*)self)->setPosition(x, y); } void sfml_sprite_setposition_UU2(void* self, void* position) { ((Sprite*)self)->setPosition(*(Vector2f*)position); } void sfml_sprite_setrotation_Bw9(void* self, float angle) { - ((Sprite*)self)->setRotation((float)angle); + ((Sprite*)self)->setRotation(angle); } void sfml_sprite_setscale_Bw9Bw9(void* self, float factor_x, float factor_y) { - ((Sprite*)self)->setScale((float)factor_x, (float)factor_y); + ((Sprite*)self)->setScale(factor_x, factor_y); } void sfml_sprite_setscale_UU2(void* self, void* factors) { ((Sprite*)self)->setScale(*(Vector2f*)factors); } void sfml_sprite_setorigin_Bw9Bw9(void* self, float x, float y) { - ((Sprite*)self)->setOrigin((float)x, (float)y); + ((Sprite*)self)->setOrigin(x, y); } void sfml_sprite_setorigin_UU2(void* self, void* origin) { ((Sprite*)self)->setOrigin(*(Vector2f*)origin); @@ -1646,16 +1646,16 @@ void sfml_sprite_getorigin(void* self, void* result) { *(Vector2f*)result = ((Sprite*)self)->getOrigin(); } void sfml_sprite_move_Bw9Bw9(void* self, float offset_x, float offset_y) { - ((Sprite*)self)->move((float)offset_x, (float)offset_y); + ((Sprite*)self)->move(offset_x, offset_y); } void sfml_sprite_move_UU2(void* self, void* offset) { ((Sprite*)self)->move(*(Vector2f*)offset); } void sfml_sprite_rotate_Bw9(void* self, float angle) { - ((Sprite*)self)->rotate((float)angle); + ((Sprite*)self)->rotate(angle); } void sfml_sprite_scale_Bw9Bw9(void* self, float factor_x, float factor_y) { - ((Sprite*)self)->scale((float)factor_x, (float)factor_y); + ((Sprite*)self)->scale(factor_x, factor_y); } void sfml_sprite_scale_UU2(void* self, void* factor) { ((Sprite*)self)->scale(*(Vector2f*)factor); @@ -1691,7 +1691,7 @@ void sfml_text_initialize(void* self) { new(self) Text(); } void sfml_text_initialize_bQs7CFemS(void* self, std::size_t string_size, Uint32* string, void* font, unsigned int character_size) { - new(self) Text(String::fromUtf32(string, string+string_size), *(Font*)font, (unsigned int)character_size); + new(self) Text(String::fromUtf32(string, string+string_size), *(Font*)font, character_size); } void sfml_text_setstring_bQs(void* self, std::size_t string_size, Uint32* string) { ((Text*)self)->setString(String::fromUtf32(string, string+string_size)); @@ -1700,16 +1700,16 @@ void sfml_text_setfont_7CF(void* self, void* font) { ((Text*)self)->setFont(*(Font*)font); } void sfml_text_setcharactersize_emS(void* self, unsigned int size) { - ((Text*)self)->setCharacterSize((unsigned int)size); + ((Text*)self)->setCharacterSize(size); } void sfml_text_setlinespacing_Bw9(void* self, float spacing_factor) { - ((Text*)self)->setLineSpacing((float)spacing_factor); + ((Text*)self)->setLineSpacing(spacing_factor); } void sfml_text_setletterspacing_Bw9(void* self, float spacing_factor) { - ((Text*)self)->setLetterSpacing((float)spacing_factor); + ((Text*)self)->setLetterSpacing(spacing_factor); } void sfml_text_setstyle_saL(void* self, Uint32 style) { - ((Text*)self)->setStyle((Uint32)style); + ((Text*)self)->setStyle(style); } void sfml_text_setcolor_QVe(void* self, void* color) { ((Text*)self)->setColor(*(Color*)color); @@ -1721,7 +1721,7 @@ void sfml_text_setoutlinecolor_QVe(void* self, void* color) { ((Text*)self)->setOutlineColor(*(Color*)color); } void sfml_text_setoutlinethickness_Bw9(void* self, float thickness) { - ((Text*)self)->setOutlineThickness((float)thickness); + ((Text*)self)->setOutlineThickness(thickness); } void sfml_text_getstring(void* self, Uint32** result) { static String str; @@ -1756,7 +1756,7 @@ void sfml_text_getoutlinethickness(void* self, float* result) { *(float*)result = ((Text*)self)->getOutlineThickness(); } void sfml_text_findcharacterpos_vgv(void* self, std::size_t index, void* result) { - *(Vector2f*)result = ((Text*)self)->findCharacterPos((std::size_t)index); + *(Vector2f*)result = ((Text*)self)->findCharacterPos(index); } void sfml_text_getlocalbounds(void* self, void* result) { *(FloatRect*)result = ((Text*)self)->getLocalBounds(); @@ -1765,22 +1765,22 @@ void sfml_text_getglobalbounds(void* self, void* result) { *(FloatRect*)result = ((Text*)self)->getGlobalBounds(); } void sfml_text_setposition_Bw9Bw9(void* self, float x, float y) { - ((Text*)self)->setPosition((float)x, (float)y); + ((Text*)self)->setPosition(x, y); } void sfml_text_setposition_UU2(void* self, void* position) { ((Text*)self)->setPosition(*(Vector2f*)position); } void sfml_text_setrotation_Bw9(void* self, float angle) { - ((Text*)self)->setRotation((float)angle); + ((Text*)self)->setRotation(angle); } void sfml_text_setscale_Bw9Bw9(void* self, float factor_x, float factor_y) { - ((Text*)self)->setScale((float)factor_x, (float)factor_y); + ((Text*)self)->setScale(factor_x, factor_y); } void sfml_text_setscale_UU2(void* self, void* factors) { ((Text*)self)->setScale(*(Vector2f*)factors); } void sfml_text_setorigin_Bw9Bw9(void* self, float x, float y) { - ((Text*)self)->setOrigin((float)x, (float)y); + ((Text*)self)->setOrigin(x, y); } void sfml_text_setorigin_UU2(void* self, void* origin) { ((Text*)self)->setOrigin(*(Vector2f*)origin); @@ -1798,16 +1798,16 @@ void sfml_text_getorigin(void* self, void* result) { *(Vector2f*)result = ((Text*)self)->getOrigin(); } void sfml_text_move_Bw9Bw9(void* self, float offset_x, float offset_y) { - ((Text*)self)->move((float)offset_x, (float)offset_y); + ((Text*)self)->move(offset_x, offset_y); } void sfml_text_move_UU2(void* self, void* offset) { ((Text*)self)->move(*(Vector2f*)offset); } void sfml_text_rotate_Bw9(void* self, float angle) { - ((Text*)self)->rotate((float)angle); + ((Text*)self)->rotate(angle); } void sfml_text_scale_Bw9Bw9(void* self, float factor_x, float factor_y) { - ((Text*)self)->scale((float)factor_x, (float)factor_y); + ((Text*)self)->scale(factor_x, factor_y); } void sfml_text_scale_UU2(void* self, void* factor) { ((Text*)self)->scale(*(Vector2f*)factor); @@ -1852,7 +1852,7 @@ void sfml_vertexbuffer_finalize(void* self) { ((VertexBuffer*)self)->~VertexBuffer(); } void sfml_vertexbuffer_create_vgv(void* self, std::size_t vertex_count, Int8* result) { - *(bool*)result = ((VertexBuffer*)self)->create((std::size_t)vertex_count); + *(bool*)result = ((VertexBuffer*)self)->create(vertex_count); } void sfml_vertexbuffer_getvertexcount(void* self, std::size_t* result) { *(std::size_t*)result = ((VertexBuffer*)self)->getVertexCount(); @@ -1861,7 +1861,7 @@ void sfml_vertexbuffer_update_46s(void* self, void* vertices, Int8* result) { *(bool*)result = ((VertexBuffer*)self)->update((Vertex*)vertices); } void sfml_vertexbuffer_update_46svgvemS(void* self, void* vertices, std::size_t vertex_count, unsigned int offset, Int8* result) { - *(bool*)result = ((VertexBuffer*)self)->update((Vertex*)vertices, vertex_count, (unsigned int)offset); + *(bool*)result = ((VertexBuffer*)self)->update((Vertex*)vertices, vertex_count, offset); } void sfml_vertexbuffer_update_U2D(void* self, void* vertex_buffer, Int8* result) { *(bool*)result = ((VertexBuffer*)self)->update(*(VertexBuffer*)vertex_buffer); diff --git a/src/network/ext.cpp b/src/network/ext.cpp index 7a0e160c..6d919652 100644 --- a/src/network/ext.cpp +++ b/src/network/ext.cpp @@ -39,7 +39,7 @@ void sfml_tcpsocket_getremoteport(void* self, unsigned short* result) { *(unsigned short*)result = ((TcpSocket*)self)->getRemotePort(); } void sfml_tcpsocket_connect_BfEbxif4T(void* self, void* remote_address, unsigned short remote_port, void* timeout, int* result) { - *(Socket::Status*)result = ((TcpSocket*)self)->connect(*(IpAddress*)remote_address, (unsigned short)remote_port, *(Time*)timeout); + *(Socket::Status*)result = ((TcpSocket*)self)->connect(*(IpAddress*)remote_address, remote_port, *(Time*)timeout); } void sfml_tcpsocket_disconnect(void* self) { ((TcpSocket*)self)->disconnect(); @@ -48,10 +48,10 @@ void sfml_tcpsocket_send_5h8vgv(void* self, void* data, std::size_t size, int* r *(Socket::Status*)result = ((TcpSocket*)self)->send(data, size); } void sfml_tcpsocket_send_5h8vgvi49(void* self, void* data, std::size_t size, std::size_t* sent, int* result) { - *(Socket::Status*)result = ((TcpSocket*)self)->send(data, size, *(std::size_t*)sent); + *(Socket::Status*)result = ((TcpSocket*)self)->send(data, size, *sent); } void sfml_tcpsocket_receive_xALvgvi49(void* self, void* data, std::size_t size, std::size_t* received, int* result) { - *(Socket::Status*)result = ((TcpSocket*)self)->receive(data, size, *(std::size_t*)received); + *(Socket::Status*)result = ((TcpSocket*)self)->receive(data, size, *received); } void sfml_tcpsocket_send_jyF(void* self, void* packet, int* result) { *(Socket::Status*)result = ((TcpSocket*)self)->send(*(Packet*)packet); @@ -170,7 +170,7 @@ void sfml_ftp_finalize(void* self) { ((Ftp*)self)->~Ftp(); } void sfml_ftp_connect_BfEbxif4T(void* self, void* server, unsigned short port, void* timeout, void* result) { - *(Ftp::Response*)result = ((Ftp*)self)->connect(*(IpAddress*)server, (unsigned short)port, *(Time*)timeout); + *(Ftp::Response*)result = ((Ftp*)self)->connect(*(IpAddress*)server, port, *(Time*)timeout); } void sfml_ftp_disconnect(void* self, void* result) { *(Ftp::Response*)result = ((Ftp*)self)->disconnect(); @@ -233,10 +233,10 @@ void sfml_ipaddress_initialize_Yy6(void* self, char* address) { new(self) IpAddress(address); } void sfml_ipaddress_initialize_9yU9yU9yU9yU(void* self, Uint8 byte0, Uint8 byte1, Uint8 byte2, Uint8 byte3) { - new(self) IpAddress((Uint8)byte0, (Uint8)byte1, (Uint8)byte2, (Uint8)byte3); + new(self) IpAddress(byte0, byte1, byte2, byte3); } void sfml_ipaddress_initialize_saL(void* self, Uint32 address) { - new(self) IpAddress((Uint32)address); + new(self) IpAddress(address); } void sfml_ipaddress_tostring(void* self, char** result) { static std::string str; @@ -304,7 +304,7 @@ void sfml_http_request_seturi_zkC(void* self, std::size_t uri_size, char* uri) { ((Http::Request*)self)->setUri(std::string(uri, uri_size)); } void sfml_http_request_sethttpversion_emSemS(void* self, unsigned int major, unsigned int minor) { - ((Http::Request*)self)->setHttpVersion((unsigned int)major, (unsigned int)minor); + ((Http::Request*)self)->setHttpVersion(major, minor); } void sfml_http_request_setbody_zkC(void* self, std::size_t body_size, char* body) { ((Http::Request*)self)->setBody(std::string(body, body_size)); @@ -350,10 +350,10 @@ void sfml_http_initialize(void* self) { new(self) Http(); } void sfml_http_initialize_zkCbxi(void* self, std::size_t host_size, char* host, unsigned short port) { - new(self) Http(std::string(host, host_size), (unsigned short)port); + new(self) Http(std::string(host, host_size), port); } void sfml_http_sethost_zkCbxi(void* self, std::size_t host_size, char* host, unsigned short port) { - ((Http*)self)->setHost(std::string(host, host_size), (unsigned short)port); + ((Http*)self)->setHost(std::string(host, host_size), port); } void sfml_http_sendrequest_Jatf4T(void* self, void* request, void* timeout, void* result) { *(Http::Response*)result = ((Http*)self)->sendRequest(*(Http::Request*)request, *(Time*)timeout); @@ -389,37 +389,37 @@ void sfml_packet_operator_bool(void* self, Int8* result) { *(bool*)result = (bool)((Packet*)self); } void sfml_packet_operator_shr_gRY(void* self, Int8* data) { - ((Packet*)self)->operator>>(*(bool*)data); + ((Packet*)self)->operator>>(*data); } void sfml_packet_operator_shr_0y9(void* self, Int8* data) { - ((Packet*)self)->operator>>(*(Int8*)data); + ((Packet*)self)->operator>>(*data); } void sfml_packet_operator_shr_8hc(void* self, Uint8* data) { - ((Packet*)self)->operator>>(*(Uint8*)data); + ((Packet*)self)->operator>>(*data); } void sfml_packet_operator_shr_4k3(void* self, Int16* data) { - ((Packet*)self)->operator>>(*(Int16*)data); + ((Packet*)self)->operator>>(*data); } void sfml_packet_operator_shr_Xag(void* self, Uint16* data) { - ((Packet*)self)->operator>>(*(Uint16*)data); + ((Packet*)self)->operator>>(*data); } void sfml_packet_operator_shr_NiZ(void* self, Int32* data) { - ((Packet*)self)->operator>>(*(Int32*)data); + ((Packet*)self)->operator>>(*data); } void sfml_packet_operator_shr_qTz(void* self, Uint32* data) { - ((Packet*)self)->operator>>(*(Uint32*)data); + ((Packet*)self)->operator>>(*data); } void sfml_packet_operator_shr_BuW(void* self, Int64* data) { - ((Packet*)self)->operator>>(*(Int64*)data); + ((Packet*)self)->operator>>(*data); } void sfml_packet_operator_shr_7H7(void* self, Uint64* data) { - ((Packet*)self)->operator>>(*(Uint64*)data); + ((Packet*)self)->operator>>(*data); } void sfml_packet_operator_shr_ATF(void* self, float* data) { - ((Packet*)self)->operator>>(*(float*)data); + ((Packet*)self)->operator>>(*data); } void sfml_packet_operator_shr_nIp(void* self, double* data) { - ((Packet*)self)->operator>>(*(double*)data); + ((Packet*)self)->operator>>(*data); } void sfml_packet_operator_shr_GHF(void* self, char** data) { static std::string str; @@ -430,34 +430,34 @@ void sfml_packet_operator_shl_GZq(void* self, Int8 data) { ((Packet*)self)->operator<<(data != 0); } void sfml_packet_operator_shl_k6g(void* self, Int8 data) { - ((Packet*)self)->operator<<((Int8)data); + ((Packet*)self)->operator<<(data); } void sfml_packet_operator_shl_9yU(void* self, Uint8 data) { - ((Packet*)self)->operator<<((Uint8)data); + ((Packet*)self)->operator<<(data); } void sfml_packet_operator_shl_yAA(void* self, Int16 data) { - ((Packet*)self)->operator<<((Int16)data); + ((Packet*)self)->operator<<(data); } void sfml_packet_operator_shl_BtU(void* self, Uint16 data) { - ((Packet*)self)->operator<<((Uint16)data); + ((Packet*)self)->operator<<(data); } void sfml_packet_operator_shl_qe2(void* self, Int32 data) { - ((Packet*)self)->operator<<((Int32)data); + ((Packet*)self)->operator<<(data); } void sfml_packet_operator_shl_saL(void* self, Uint32 data) { - ((Packet*)self)->operator<<((Uint32)data); + ((Packet*)self)->operator<<(data); } void sfml_packet_operator_shl_G4x(void* self, Int64 data) { - ((Packet*)self)->operator<<((Int64)data); + ((Packet*)self)->operator<<(data); } void sfml_packet_operator_shl_Jvt(void* self, Uint64 data) { - ((Packet*)self)->operator<<((Uint64)data); + ((Packet*)self)->operator<<(data); } void sfml_packet_operator_shl_Bw9(void* self, float data) { - ((Packet*)self)->operator<<((float)data); + ((Packet*)self)->operator<<(data); } void sfml_packet_operator_shl_mYt(void* self, double data) { - ((Packet*)self)->operator<<((double)data); + ((Packet*)self)->operator<<(data); } void sfml_packet_operator_shl_zkC(void* self, std::size_t data_size, char* data) { ((Packet*)self)->operator<<(std::string(data, data_size)); @@ -511,7 +511,7 @@ void sfml_tcplistener_getlocalport(void* self, unsigned short* result) { *(unsigned short*)result = ((TcpListener*)self)->getLocalPort(); } void sfml_tcplistener_listen_bxiBfE(void* self, unsigned short port, void* address, int* result) { - *(Socket::Status*)result = ((TcpListener*)self)->listen((unsigned short)port, *(IpAddress*)address); + *(Socket::Status*)result = ((TcpListener*)self)->listen(port, *(IpAddress*)address); } void sfml_tcplistener_close(void* self) { ((TcpListener*)self)->close(); @@ -541,22 +541,22 @@ void sfml_udpsocket_getlocalport(void* self, unsigned short* result) { *(unsigned short*)result = ((UdpSocket*)self)->getLocalPort(); } void sfml_udpsocket_bind_bxiBfE(void* self, unsigned short port, void* address, int* result) { - *(Socket::Status*)result = ((UdpSocket*)self)->bind((unsigned short)port, *(IpAddress*)address); + *(Socket::Status*)result = ((UdpSocket*)self)->bind(port, *(IpAddress*)address); } void sfml_udpsocket_unbind(void* self) { ((UdpSocket*)self)->unbind(); } void sfml_udpsocket_send_5h8vgvBfEbxi(void* self, void* data, std::size_t size, void* remote_address, unsigned short remote_port, int* result) { - *(Socket::Status*)result = ((UdpSocket*)self)->send(data, size, *(IpAddress*)remote_address, (unsigned short)remote_port); + *(Socket::Status*)result = ((UdpSocket*)self)->send(data, size, *(IpAddress*)remote_address, remote_port); } void sfml_udpsocket_receive_xALvgvi499ylYII(void* self, void* data, std::size_t size, std::size_t* received, void* remote_address, unsigned short* remote_port, int* result) { - *(Socket::Status*)result = ((UdpSocket*)self)->receive(data, size, *(std::size_t*)received, *(IpAddress*)remote_address, *(unsigned short*)remote_port); + *(Socket::Status*)result = ((UdpSocket*)self)->receive(data, size, *received, *(IpAddress*)remote_address, *remote_port); } void sfml_udpsocket_send_jyFBfEbxi(void* self, void* packet, void* remote_address, unsigned short remote_port, int* result) { - *(Socket::Status*)result = ((UdpSocket*)self)->send(*(Packet*)packet, *(IpAddress*)remote_address, (unsigned short)remote_port); + *(Socket::Status*)result = ((UdpSocket*)self)->send(*(Packet*)packet, *(IpAddress*)remote_address, remote_port); } void sfml_udpsocket_receive_jyF9ylYII(void* self, void* packet, void* remote_address, unsigned short* remote_port, int* result) { - *(Socket::Status*)result = ((UdpSocket*)self)->receive(*(Packet*)packet, *(IpAddress*)remote_address, *(unsigned short*)remote_port); + *(Socket::Status*)result = ((UdpSocket*)self)->receive(*(Packet*)packet, *(IpAddress*)remote_address, *remote_port); } void sfml_udpsocket_setblocking_GZq(void* self, Int8 blocking) { ((UdpSocket*)self)->setBlocking(blocking != 0); diff --git a/src/system/ext.cpp b/src/system/ext.cpp index dba127bd..56778ae2 100644 --- a/src/system/ext.cpp +++ b/src/system/ext.cpp @@ -47,16 +47,16 @@ void sfml_operator_sub_f4Tf4T(void* left, void* right, void* result) { *(Time*)result = operator-(*(Time*)left, *(Time*)right); } void sfml_operator_mul_f4TBw9(void* left, float right, void* result) { - *(Time*)result = operator*(*(Time*)left, (float)right); + *(Time*)result = operator*(*(Time*)left, right); } void sfml_operator_mul_f4TG4x(void* left, Int64 right, void* result) { - *(Time*)result = operator*(*(Time*)left, (Int64)right); + *(Time*)result = operator*(*(Time*)left, right); } void sfml_operator_div_f4TBw9(void* left, float right, void* result) { - *(Time*)result = operator/(*(Time*)left, (float)right); + *(Time*)result = operator/(*(Time*)left, right); } void sfml_operator_div_f4TG4x(void* left, Int64 right, void* result) { - *(Time*)result = operator/(*(Time*)left, (Int64)right); + *(Time*)result = operator/(*(Time*)left, right); } void sfml_operator_div_f4Tf4T(void* left, void* right, float* result) { *(float*)result = operator/(*(Time*)left, *(Time*)right); @@ -68,13 +68,13 @@ void sfml_time_initialize_PxG(void* self, void* copy) { new(self) Time(*(Time*)copy); } void sfml_seconds_Bw9(float amount, void* result) { - *(Time*)result = seconds((float)amount); + *(Time*)result = seconds(amount); } void sfml_milliseconds_qe2(Int32 amount, void* result) { - *(Time*)result = milliseconds((Int32)amount); + *(Time*)result = milliseconds(amount); } void sfml_microseconds_G4x(Int64 amount, void* result) { - *(Time*)result = microseconds((Int64)amount); + *(Time*)result = microseconds(amount); } void sfml_clock_allocate(void** result) { *result = malloc(sizeof(Clock)); @@ -177,7 +177,7 @@ void sfml_fileinputstream_read_xALG4x(void* self, void* data, Int64 size, Int64* *(Int64*)result = ((FileInputStream*)self)->read(data, size); } void sfml_fileinputstream_seek_G4x(void* self, Int64 position, Int64* result) { - *(Int64*)result = ((FileInputStream*)self)->seek((Int64)position); + *(Int64*)result = ((FileInputStream*)self)->seek(position); } void sfml_fileinputstream_tell(void* self, Int64* result) { *(Int64*)result = ((FileInputStream*)self)->tell(); @@ -204,7 +204,7 @@ void sfml_memoryinputstream_read_xALG4x(void* self, void* data, Int64 size, Int6 *(Int64*)result = ((MemoryInputStream*)self)->read(data, size); } void sfml_memoryinputstream_seek_G4x(void* self, Int64 position, Int64* result) { - *(Int64*)result = ((MemoryInputStream*)self)->seek((Int64)position); + *(Int64*)result = ((MemoryInputStream*)self)->seek(position); } void sfml_memoryinputstream_tell(void* self, Int64* result) { *(Int64*)result = ((MemoryInputStream*)self)->tell(); diff --git a/src/window/ext.cpp b/src/window/ext.cpp index 1aed4832..db7f27f1 100644 --- a/src/window/ext.cpp +++ b/src/window/ext.cpp @@ -29,25 +29,25 @@ void sfml_contextsettings_free(void* self) { free(self); } void sfml_contextsettings_initialize_emSemSemSemSemSemSGZq(void* self, unsigned int depth, unsigned int stencil, unsigned int antialiasing, unsigned int major, unsigned int minor, unsigned int attributes, Int8 s_rgb) { - new(self) ContextSettings((unsigned int)depth, (unsigned int)stencil, (unsigned int)antialiasing, (unsigned int)major, (unsigned int)minor, (unsigned int)attributes, s_rgb != 0); + new(self) ContextSettings(depth, stencil, antialiasing, major, minor, attributes, s_rgb != 0); } void sfml_contextsettings_setdepthbits_emS(void* self, unsigned int depth_bits) { - ((ContextSettings*)self)->depthBits = (unsigned int)depth_bits; + ((ContextSettings*)self)->depthBits = depth_bits; } void sfml_contextsettings_setstencilbits_emS(void* self, unsigned int stencil_bits) { - ((ContextSettings*)self)->stencilBits = (unsigned int)stencil_bits; + ((ContextSettings*)self)->stencilBits = stencil_bits; } void sfml_contextsettings_setantialiasinglevel_emS(void* self, unsigned int antialiasing_level) { - ((ContextSettings*)self)->antialiasingLevel = (unsigned int)antialiasing_level; + ((ContextSettings*)self)->antialiasingLevel = antialiasing_level; } void sfml_contextsettings_setmajorversion_emS(void* self, unsigned int major_version) { - ((ContextSettings*)self)->majorVersion = (unsigned int)major_version; + ((ContextSettings*)self)->majorVersion = major_version; } void sfml_contextsettings_setminorversion_emS(void* self, unsigned int minor_version) { - ((ContextSettings*)self)->minorVersion = (unsigned int)minor_version; + ((ContextSettings*)self)->minorVersion = minor_version; } void sfml_contextsettings_setattributeflags_saL(void* self, Uint32 attribute_flags) { - ((ContextSettings*)self)->attributeFlags = (Uint32)attribute_flags; + ((ContextSettings*)self)->attributeFlags = attribute_flags; } void sfml_contextsettings_setsrgbcapable_GZq(void* self, Int8 s_rgb_capable) { ((ContextSettings*)self)->sRgbCapable = s_rgb_capable != 0; @@ -83,7 +83,7 @@ void sfml_context_getactivecontextid(Uint64* result) { *(Uint64*)result = Context::getActiveContextId(); } void sfml_context_initialize_Fw4emSemS(void* self, void* settings, unsigned int width, unsigned int height) { - new(self) Context(*(ContextSettings*)settings, (unsigned int)width, (unsigned int)height); + new(self) Context(*(ContextSettings*)settings, width, height); } void sfml_cursor_allocate(void** result) { *result = malloc(sizeof(Cursor)); @@ -98,7 +98,7 @@ void sfml_cursor_finalize(void* self) { ((Cursor*)self)->~Cursor(); } void sfml_cursor_loadfrompixels_843t9zt9z(void* self, Uint8* pixels, void* size, void* hotspot, Int8* result) { - *(bool*)result = ((Cursor*)self)->loadFromPixels((Uint8 const*)pixels, *(Vector2u*)size, *(Vector2u*)hotspot); + *(bool*)result = ((Cursor*)self)->loadFromPixels(pixels, *(Vector2u*)size, *(Vector2u*)hotspot); } void sfml_cursor_loadfromsystem_yAZ(void* self, int type, Int8* result) { *(bool*)result = ((Cursor*)self)->loadFromSystem((Cursor::Type)type); @@ -133,34 +133,34 @@ void sfml_joystick_identification_getvendorid(void* self, unsigned int* result) *(unsigned int*)result = ((Joystick::Identification*)self)->vendorId; } void sfml_joystick_identification_setvendorid_emS(void* self, unsigned int vendor_id) { - ((Joystick::Identification*)self)->vendorId = (unsigned int)vendor_id; + ((Joystick::Identification*)self)->vendorId = vendor_id; } void sfml_joystick_identification_getproductid(void* self, unsigned int* result) { *(unsigned int*)result = ((Joystick::Identification*)self)->productId; } void sfml_joystick_identification_setproductid_emS(void* self, unsigned int product_id) { - ((Joystick::Identification*)self)->productId = (unsigned int)product_id; + ((Joystick::Identification*)self)->productId = product_id; } void sfml_joystick_identification_initialize_ISj(void* self, void* copy) { new(self) Joystick::Identification(*(Joystick::Identification*)copy); } void sfml_joystick_isconnected_emS(unsigned int joystick, Int8* result) { - *(bool*)result = Joystick::isConnected((unsigned int)joystick); + *(bool*)result = Joystick::isConnected(joystick); } void sfml_joystick_getbuttoncount_emS(unsigned int joystick, unsigned int* result) { - *(unsigned int*)result = Joystick::getButtonCount((unsigned int)joystick); + *(unsigned int*)result = Joystick::getButtonCount(joystick); } void sfml_joystick_hasaxis_emSHdj(unsigned int joystick, int axis, Int8* result) { - *(bool*)result = Joystick::hasAxis((unsigned int)joystick, (Joystick::Axis)axis); + *(bool*)result = Joystick::hasAxis(joystick, (Joystick::Axis)axis); } void sfml_joystick_isbuttonpressed_emSemS(unsigned int joystick, unsigned int button, Int8* result) { - *(bool*)result = Joystick::isButtonPressed((unsigned int)joystick, (unsigned int)button); + *(bool*)result = Joystick::isButtonPressed(joystick, button); } void sfml_joystick_getaxisposition_emSHdj(unsigned int joystick, int axis, float* result) { - *(float*)result = Joystick::getAxisPosition((unsigned int)joystick, (Joystick::Axis)axis); + *(float*)result = Joystick::getAxisPosition(joystick, (Joystick::Axis)axis); } void sfml_joystick_getidentification_emS(unsigned int joystick, void* result) { - *(Joystick::Identification*)result = Joystick::getIdentification((unsigned int)joystick); + *(Joystick::Identification*)result = Joystick::getIdentification(joystick); } void sfml_joystick_update() { Joystick::update(); @@ -229,10 +229,10 @@ void sfml_event_sizeevent_free(void* self) { free(self); } void sfml_event_sizeevent_setwidth_emS(void* self, unsigned int width) { - ((Event::SizeEvent*)self)->width = (unsigned int)width; + ((Event::SizeEvent*)self)->width = width; } void sfml_event_sizeevent_setheight_emS(void* self, unsigned int height) { - ((Event::SizeEvent*)self)->height = (unsigned int)height; + ((Event::SizeEvent*)self)->height = height; } void sfml_event_sizeevent_initialize_isq(void* self, void* copy) { new(self) Event::SizeEvent(*(Event::SizeEvent*)copy); @@ -274,7 +274,7 @@ void sfml_event_textevent_free(void* self) { free(self); } void sfml_event_textevent_setunicode_saL(void* self, Uint32 unicode) { - ((Event::TextEvent*)self)->unicode = (Uint32)unicode; + ((Event::TextEvent*)self)->unicode = unicode; } void sfml_event_textevent_initialize_uku(void* self, void* copy) { new(self) Event::TextEvent(*(Event::TextEvent*)copy); @@ -289,10 +289,10 @@ void sfml_event_mousemoveevent_free(void* self) { free(self); } void sfml_event_mousemoveevent_setx_2mh(void* self, int x) { - ((Event::MouseMoveEvent*)self)->x = (int)x; + ((Event::MouseMoveEvent*)self)->x = x; } void sfml_event_mousemoveevent_sety_2mh(void* self, int y) { - ((Event::MouseMoveEvent*)self)->y = (int)y; + ((Event::MouseMoveEvent*)self)->y = y; } void sfml_event_mousemoveevent_initialize_1i3(void* self, void* copy) { new(self) Event::MouseMoveEvent(*(Event::MouseMoveEvent*)copy); @@ -310,10 +310,10 @@ void sfml_event_mousebuttonevent_setbutton_Zxg(void* self, int button) { ((Event::MouseButtonEvent*)self)->button = (Mouse::Button)button; } void sfml_event_mousebuttonevent_setx_2mh(void* self, int x) { - ((Event::MouseButtonEvent*)self)->x = (int)x; + ((Event::MouseButtonEvent*)self)->x = x; } void sfml_event_mousebuttonevent_sety_2mh(void* self, int y) { - ((Event::MouseButtonEvent*)self)->y = (int)y; + ((Event::MouseButtonEvent*)self)->y = y; } void sfml_event_mousebuttonevent_initialize_Tjo(void* self, void* copy) { new(self) Event::MouseButtonEvent(*(Event::MouseButtonEvent*)copy); @@ -328,13 +328,13 @@ void sfml_event_mousewheelevent_free(void* self) { free(self); } void sfml_event_mousewheelevent_setdelta_2mh(void* self, int delta) { - ((Event::MouseWheelEvent*)self)->delta = (int)delta; + ((Event::MouseWheelEvent*)self)->delta = delta; } void sfml_event_mousewheelevent_setx_2mh(void* self, int x) { - ((Event::MouseWheelEvent*)self)->x = (int)x; + ((Event::MouseWheelEvent*)self)->x = x; } void sfml_event_mousewheelevent_sety_2mh(void* self, int y) { - ((Event::MouseWheelEvent*)self)->y = (int)y; + ((Event::MouseWheelEvent*)self)->y = y; } void sfml_event_mousewheelevent_initialize_Wk7(void* self, void* copy) { new(self) Event::MouseWheelEvent(*(Event::MouseWheelEvent*)copy); @@ -352,13 +352,13 @@ void sfml_event_mousewheelscrollevent_setwheel_yiC(void* self, int wheel) { ((Event::MouseWheelScrollEvent*)self)->wheel = (Mouse::Wheel)wheel; } void sfml_event_mousewheelscrollevent_setdelta_Bw9(void* self, float delta) { - ((Event::MouseWheelScrollEvent*)self)->delta = (float)delta; + ((Event::MouseWheelScrollEvent*)self)->delta = delta; } void sfml_event_mousewheelscrollevent_setx_2mh(void* self, int x) { - ((Event::MouseWheelScrollEvent*)self)->x = (int)x; + ((Event::MouseWheelScrollEvent*)self)->x = x; } void sfml_event_mousewheelscrollevent_sety_2mh(void* self, int y) { - ((Event::MouseWheelScrollEvent*)self)->y = (int)y; + ((Event::MouseWheelScrollEvent*)self)->y = y; } void sfml_event_mousewheelscrollevent_initialize_Am0(void* self, void* copy) { new(self) Event::MouseWheelScrollEvent(*(Event::MouseWheelScrollEvent*)copy); @@ -373,7 +373,7 @@ void sfml_event_joystickconnectevent_free(void* self) { free(self); } void sfml_event_joystickconnectevent_setjoystickid_emS(void* self, unsigned int joystick_id) { - ((Event::JoystickConnectEvent*)self)->joystickId = (unsigned int)joystick_id; + ((Event::JoystickConnectEvent*)self)->joystickId = joystick_id; } void sfml_event_joystickconnectevent_initialize_rYL(void* self, void* copy) { new(self) Event::JoystickConnectEvent(*(Event::JoystickConnectEvent*)copy); @@ -388,13 +388,13 @@ void sfml_event_joystickmoveevent_free(void* self) { free(self); } void sfml_event_joystickmoveevent_setjoystickid_emS(void* self, unsigned int joystick_id) { - ((Event::JoystickMoveEvent*)self)->joystickId = (unsigned int)joystick_id; + ((Event::JoystickMoveEvent*)self)->joystickId = joystick_id; } void sfml_event_joystickmoveevent_setaxis_Hdj(void* self, int axis) { ((Event::JoystickMoveEvent*)self)->axis = (Joystick::Axis)axis; } void sfml_event_joystickmoveevent_setposition_Bw9(void* self, float position) { - ((Event::JoystickMoveEvent*)self)->position = (float)position; + ((Event::JoystickMoveEvent*)self)->position = position; } void sfml_event_joystickmoveevent_initialize_S8f(void* self, void* copy) { new(self) Event::JoystickMoveEvent(*(Event::JoystickMoveEvent*)copy); @@ -409,10 +409,10 @@ void sfml_event_joystickbuttonevent_free(void* self) { free(self); } void sfml_event_joystickbuttonevent_setjoystickid_emS(void* self, unsigned int joystick_id) { - ((Event::JoystickButtonEvent*)self)->joystickId = (unsigned int)joystick_id; + ((Event::JoystickButtonEvent*)self)->joystickId = joystick_id; } void sfml_event_joystickbuttonevent_setbutton_emS(void* self, unsigned int button) { - ((Event::JoystickButtonEvent*)self)->button = (unsigned int)button; + ((Event::JoystickButtonEvent*)self)->button = button; } void sfml_event_joystickbuttonevent_initialize_V0a(void* self, void* copy) { new(self) Event::JoystickButtonEvent(*(Event::JoystickButtonEvent*)copy); @@ -427,13 +427,13 @@ void sfml_event_touchevent_free(void* self) { free(self); } void sfml_event_touchevent_setfinger_emS(void* self, unsigned int finger) { - ((Event::TouchEvent*)self)->finger = (unsigned int)finger; + ((Event::TouchEvent*)self)->finger = finger; } void sfml_event_touchevent_setx_2mh(void* self, int x) { - ((Event::TouchEvent*)self)->x = (int)x; + ((Event::TouchEvent*)self)->x = x; } void sfml_event_touchevent_sety_2mh(void* self, int y) { - ((Event::TouchEvent*)self)->y = (int)y; + ((Event::TouchEvent*)self)->y = y; } void sfml_event_touchevent_initialize_1F1(void* self, void* copy) { new(self) Event::TouchEvent(*(Event::TouchEvent*)copy); @@ -451,13 +451,13 @@ void sfml_event_sensorevent_settype_jRE(void* self, int type) { ((Event::SensorEvent*)self)->type = (Sensor::Type)type; } void sfml_event_sensorevent_setx_Bw9(void* self, float x) { - ((Event::SensorEvent*)self)->x = (float)x; + ((Event::SensorEvent*)self)->x = x; } void sfml_event_sensorevent_sety_Bw9(void* self, float y) { - ((Event::SensorEvent*)self)->y = (float)y; + ((Event::SensorEvent*)self)->y = y; } void sfml_event_sensorevent_setz_Bw9(void* self, float z) { - ((Event::SensorEvent*)self)->z = (float)z; + ((Event::SensorEvent*)self)->z = z; } void sfml_event_sensorevent_initialize_0L9(void* self, void* copy) { new(self) Event::SensorEvent(*(Event::SensorEvent*)copy); @@ -469,13 +469,13 @@ void sfml_touch_free(void* self) { free(self); } void sfml_touch_isdown_emS(unsigned int finger, Int8* result) { - *(bool*)result = Touch::isDown((unsigned int)finger); + *(bool*)result = Touch::isDown(finger); } void sfml_touch_getposition_emS(unsigned int finger, void* result) { - *(Vector2i*)result = Touch::getPosition((unsigned int)finger); + *(Vector2i*)result = Touch::getPosition(finger); } void sfml_touch_getposition_emSJRh(unsigned int finger, void* relative_to, void* result) { - *(Vector2i*)result = Touch::getPosition((unsigned int)finger, *(Window*)relative_to); + *(Vector2i*)result = Touch::getPosition(finger, *(Window*)relative_to); } void sfml_videomode_allocate(void** result) { *result = malloc(sizeof(VideoMode)); @@ -487,7 +487,7 @@ void sfml_videomode_initialize(void* self) { new(self) VideoMode(); } void sfml_videomode_initialize_emSemSemS(void* self, unsigned int width, unsigned int height, unsigned int bits_per_pixel) { - new(self) VideoMode((unsigned int)width, (unsigned int)height, (unsigned int)bits_per_pixel); + new(self) VideoMode(width, height, bits_per_pixel); } void sfml_videomode_getdesktopmode(void* result) { *(VideoMode*)result = VideoMode::getDesktopMode(); @@ -502,13 +502,13 @@ void sfml_videomode_isvalid(void* self, Int8* result) { *(bool*)result = ((VideoMode*)self)->isValid(); } void sfml_videomode_setwidth_emS(void* self, unsigned int width) { - ((VideoMode*)self)->width = (unsigned int)width; + ((VideoMode*)self)->width = width; } void sfml_videomode_setheight_emS(void* self, unsigned int height) { - ((VideoMode*)self)->height = (unsigned int)height; + ((VideoMode*)self)->height = height; } void sfml_videomode_setbitsperpixel_emS(void* self, unsigned int bits_per_pixel) { - ((VideoMode*)self)->bitsPerPixel = (unsigned int)bits_per_pixel; + ((VideoMode*)self)->bitsPerPixel = bits_per_pixel; } void sfml_operator_eq_asWasW(void* left, void* right, Int8* result) { *(bool*)result = operator==(*(VideoMode*)left, *(VideoMode*)right); @@ -541,19 +541,19 @@ void sfml_window_initialize(void* self) { new(self) Window(); } void sfml_window_initialize_wg0bQssaLFw4(void* self, void* mode, std::size_t title_size, Uint32* title, Uint32 style, void* settings) { - new(self) Window(*(VideoMode*)mode, String::fromUtf32(title, title+title_size), (Uint32)style, *(ContextSettings*)settings); + new(self) Window(*(VideoMode*)mode, String::fromUtf32(title, title+title_size), style, *(ContextSettings*)settings); } void sfml_window_initialize_rLQFw4(void* self, WindowHandle handle, void* settings) { - new(self) Window((WindowHandle)handle, *(ContextSettings*)settings); + new(self) Window(handle, *(ContextSettings*)settings); } void sfml_window_finalize(void* self) { ((Window*)self)->~Window(); } void sfml_window_create_wg0bQssaLFw4(void* self, void* mode, std::size_t title_size, Uint32* title, Uint32 style, void* settings) { - ((Window*)self)->create(*(VideoMode*)mode, String::fromUtf32(title, title+title_size), (Uint32)style, *(ContextSettings*)settings); + ((Window*)self)->create(*(VideoMode*)mode, String::fromUtf32(title, title+title_size), style, *(ContextSettings*)settings); } void sfml_window_create_rLQFw4(void* self, WindowHandle handle, void* settings) { - ((Window*)self)->create((WindowHandle)handle, *(ContextSettings*)settings); + ((Window*)self)->create(handle, *(ContextSettings*)settings); } void sfml_window_close(void* self) { ((Window*)self)->close(); @@ -586,7 +586,7 @@ void sfml_window_settitle_bQs(void* self, std::size_t title_size, Uint32* title) ((Window*)self)->setTitle(String::fromUtf32(title, title+title_size)); } void sfml_window_seticon_emSemS843(void* self, unsigned int width, unsigned int height, Uint8* pixels) { - ((Window*)self)->setIcon((unsigned int)width, (unsigned int)height, (Uint8 const*)pixels); + ((Window*)self)->setIcon(width, height, pixels); } void sfml_window_setvisible_GZq(void* self, Int8 visible) { ((Window*)self)->setVisible(visible != 0); @@ -607,10 +607,10 @@ void sfml_window_setkeyrepeatenabled_GZq(void* self, Int8 enabled) { ((Window*)self)->setKeyRepeatEnabled(enabled != 0); } void sfml_window_setframeratelimit_emS(void* self, unsigned int limit) { - ((Window*)self)->setFramerateLimit((unsigned int)limit); + ((Window*)self)->setFramerateLimit(limit); } void sfml_window_setjoystickthreshold_Bw9(void* self, float threshold) { - ((Window*)self)->setJoystickThreshold((float)threshold); + ((Window*)self)->setJoystickThreshold(threshold); } void sfml_window_setactive_GZq(void* self, Int8 active, Int8* result) { *(bool*)result = ((Window*)self)->setActive(active != 0);