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
-
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.hpp
macros.hpp
🏗️ Common
bounded_array_ref
enable_for_enum_t
milliseconds
aliasesu16ms
,u32ms
, andu64ms
unicode_t
andunicode32_t
u8
->uint8
u16
->uint16
u32
->uint32
u64
->uint64
i8
->int8
i16
->int16
i32
->int32
i64
->int64
enable_if_pointer_v
->enable_for_pointer_t
enable_if_convertible_t
->enable_for_convertible_t
enable_if_number_t
with variable templateis_number<T>
str
,czstring
, andzstring
not_null
_u8
,_u16
,_u32
,_u64
,_i8
,_i16
,_i32
, and_i64
_ns
,_us
, and_s
_ms
literal operator in inline namespacetime_literals
(full qualification is nowcen::literals::time_literals
)_ms
literal operator now returnsu64ms
when using SDL 2.0.18 or latercen_error
toexception
Feature detection
CENTURION_HAS_STD_MEMORY_RESOURCE
CENTURION_HAS_FEATURE_MEMORY_RESOURCE
CENTURION_HAS_FEATURE_CHARCONV
Compiler
is_debug_build()
withis_debug_build
constantis_release_build()
withis_release_build
constanton_msvc()
withon_msvc
constanton_gcc()
withon_gcc
constanton_clang()
withon_clang
constanton_emscripten()
on_intel_cpp()
Initialization
library
class, replaced bysdl
,img
,mix
, andttf
classesLogging
cen::log
log::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::isFloating
withbasic_rect::floating
basic_rect::isIntegral
withbasic_rect::integral
as_i()
/as_f()
to math typesVersioning
version
is no longer initalized to the current Centurion version by defaultcurrent_version()
🔉 Audio
channel_index
group_index
music_finished_callback
channel_finished_callback
sound_font_visit_callback
set_sound_fonts()
get_sound_fonts()
each_sound_font()
cen::channels
and all of its functionsmusic
ms_type
is_fading_in()
is_fading_out()
Mix_Music*
andconst Mix_Music*
basic_sound_effect
ms_type
Mix_Chunk*
andconst Mix_Chunk*
🧶 Concurrency
thread::id
👀 Events
common_event
toevent_base
event
toevent_handler
event_handler
is()
accepting anevent_type
enumeratorpush()
accepting a non-const event handlerraw_type()
is_empty()
toempty()
keyboard_event
set_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_mode
read_existing
->r
read_existing_binary
->rb
write
->w
write_binary
->wb
append_or_create
->a
append_or_create_binary
->ab
read_write_existing
->rx
read_write_existing_binary
->rbx
read_write_replace
->wx
read_write_replace_binary
->wbx
read_append
->ax
read_append_binary
->abx
file_type
win32
->win
stdio
->std
🔡 Text
basic_renderer
tofont
font_cache
font_bundle
class🎮 Input
touch
namespace and all of its functionsfinger
finger_state
tocontroller_finger_state
key_modifier
tokey_mod
(and removedkey_mod
alias)is_active(key_mod)
is_only_active(key_mod)
is_only_subset_active(key_mod)
key_mod
left_shift
->lshift
right_shift
->rshift
left_ctrl
->lctrl
right_ctrl
->rctrl
left_alt
->lalt
right_alt
->ralt
left_gui
->lgui
right_gui
->rgui
keyboard
update()
torefresh()
key_count()
tosize()
is_active()
,is_only_active()
, andis_only_any_of_active()
mouse
warp()
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::counter
counter::frequency()
->frequency()
counter::now()
->now()
counter::now_in_seconds()
->now_in_seconds()
counter::ticks()
->ticks32()
cen::clipboard
clipboard::has_text()
->has_clipboard()
clipboard::get_text()
->get_clipboard()
clipboard::set_text()
->set_clipboard()
cen::ram
ram::amount_mb()
->ram_mb()
ram::amount_gb()
->ram_gb()
ticks64()
Platform
platform_id
enumeratormac_osx
tomacos
Power
battery::exists()
cen::battery
battery::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 incolor
now usestd::format
, if availabledouble
overload ofblend()
functionRendering
basic_renderer
basic_renderer
basic_renderer
, and moved them tofont
This discussion was created from the release Preview of Centurion 7.0.0.
Beta Was this translation helpful? Give feedback.
All reactions