Preview of Centurion 7.0.0 #119
albin-johansson
announced in
Announcements
Replies: 1 comment
-
|
lets goooo 🤩 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This major release includes many naming changes and improvements, and many APIs have either been overhauled or removed.
Note, this list is incomplete.
General
everything.hppmacros.hpp🏗️ Common
bounded_array_refenable_for_enum_tmillisecondsaliasesu16ms,u32ms, andu64msunicode_tandunicode32_tu8->uint8u16->uint16u32->uint32u64->uint64i8->int8i16->int16i32->int32i64->int64enable_if_pointer_v->enable_for_pointer_tenable_if_convertible_t->enable_for_convertible_tenable_if_number_twith variable templateis_number<T>str,czstring, andzstringnot_null_u8,_u16,_u32,_u64,_i8,_i16,_i32, and_i64_ns,_us, and_s_msliteral operator in inline namespacetime_literals(full qualification is nowcen::literals::time_literals)_msliteral operator now returnsu64mswhen using SDL 2.0.18 or latercen_errortoexceptionFeature detection
CENTURION_HAS_STD_MEMORY_RESOURCECENTURION_HAS_FEATURE_MEMORY_RESOURCECENTURION_HAS_FEATURE_CHARCONVCompiler
is_debug_build()withis_debug_buildconstantis_release_build()withis_release_buildconstanton_msvc()withon_msvcconstanton_gcc()withon_gccconstanton_clang()withon_clangconstanton_emscripten()on_intel_cpp()Initialization
libraryclass, replaced bysdl,img,mix, andttfclassesLogging
cen::loglog::reset_priorities()->reset_priorities()log::set_priority()->set_priority()log::get_priority()->get_priority()log::max_message_size()->max_log_message_size()log::msg()->log()log::error()->log_error()log::critical()->log_critical()log::warn()->log_warn()log::debug()->log_debug()log::info()->log_info()log::verbose()->log_verbose()log::put()log::set_output_function()log::use_preset_output_function()Math
basic_rect::isFloatingwithbasic_rect::floatingbasic_rect::isIntegralwithbasic_rect::integralas_i()/as_f()to math typesVersioning
versionis no longer initalized to the current Centurion version by defaultcurrent_version()🔉 Audio
channel_indexgroup_indexmusic_finished_callbackchannel_finished_callbacksound_font_visit_callbackset_sound_fonts()get_sound_fonts()each_sound_font()cen::channelsand all of its functionsmusicms_typeis_fading_in()is_fading_out()Mix_Music*andconst Mix_Music*basic_sound_effectms_typeMix_Chunk*andconst Mix_Chunk*🧶 Concurrency
thread::id👀 Events
common_eventtoevent_baseeventtoevent_handlerevent_handleris()accepting anevent_typeenumeratorpush()accepting a non-const event handlerraw_type()is_empty()toempty()keyboard_eventset_scan_code()->set_scan()set_key_code()->set_key()set_button_state()->set_state()is_only_any_of_active()->is_only_subset_active()get_scan_code()get_key_code()📁 Filesystem
file_moderead_existing->rread_existing_binary->rbwrite->wwrite_binary->wbappend_or_create->aappend_or_create_binary->abread_write_existing->rxread_write_existing_binary->rbxread_write_replace->wxread_write_replace_binary->wbxread_append->axread_append_binary->abxfile_typewin32->winstdio->std🔡 Text
basic_renderertofontfont_cachefont_bundleclass🎮 Input
touchnamespace and all of its functionsfingerfinger_statetocontroller_finger_statekey_modifiertokey_mod(and removedkey_modalias)is_active(key_mod)is_only_active(key_mod)is_only_subset_active(key_mod)key_modleft_shift->lshiftright_shift->rshiftleft_ctrl->lctrlright_ctrl->rctrlleft_alt->laltright_alt->raltleft_gui->lguiright_gui->rguikeyboardupdate()torefresh()key_count()tosize()is_active(),is_only_active(), andis_only_any_of_active()mousewarp()warp_in_window()set_relative_mode()is_relative_mode_enabled()update()update(const basic_renderer&)is_middle_pressed()was_middle_released()position_relative_window()position_relative_desktop()delta()is_haptic()is_left_button_pressed()->is_left_pressed()is_right_button_pressed()->is_right_pressed()was_left_button_released()->was_left_released()was_right_button_released()->was_right_released()update(int, int)update(iarea)reset()set_logical_width()set_logical_height()set_logical_size()logical_width()logical_height()logical_size()💻 System
cen::countercounter::frequency()->frequency()counter::now()->now()counter::now_in_seconds()->now_in_seconds()counter::ticks()->ticks32()cen::clipboardclipboard::has_text()->has_clipboard()clipboard::get_text()->get_clipboard()clipboard::set_text()->set_clipboard()cen::ramram::amount_mb()->ram_mb()ram::amount_gb()->ram_gb()ticks64()Platform
platform_idenumeratormac_osxtomacosPower
battery::exists()cen::batterybattery::seconds_left()->battery_seconds()battery::minutes_left()->battery_minutes()battery::percentage()->battery_percentage()battery::state()->query_battery()battery::is_available()->is_battery_available()battery::is_charging()->is_battery_charging()battery::is_charged()->is_battery_charged()🖥️ Video
basic_window::create_renderer()basic_renderer::create_texture()as_rgb(),as_rgba(), andas_argb()functions incolornow usestd::format, if availabledoubleoverload ofblend()functionRendering
basic_rendererbasic_rendererbasic_renderer, and moved them tofontThis discussion was created from the release Preview of Centurion 7.0.0.
Beta Was this translation helpful? Give feedback.
All reactions