chore: fix outdated raylib flag usage in example (#321)
This commit is contained in:
parent
a93d7f04ae
commit
b5058dd631
1 changed files with 21 additions and 14 deletions
|
|
@ -19,23 +19,30 @@ pub fn main() anyerror!void {
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
// Possible window flags
|
// Possible window flags
|
||||||
// flag_vsync_hint
|
// fullscreen_mode -> not working properly -> wrong scaling!
|
||||||
// flag_fullscreen_mode -> not working properly -> wrong scaling!
|
// window_resizable
|
||||||
// flag_window_resizable
|
// window_undecorated
|
||||||
// flag_window_undecorated
|
// window_transparent
|
||||||
// flag_window_transparent
|
// msaa_4x_hint
|
||||||
// flag_window_hidden
|
// vsync_hint
|
||||||
// flag_window_minimized -> Not supported on window creation
|
// window_hidden
|
||||||
// flag_window_maximized -> Not supported on window creation
|
// window_always_run
|
||||||
// flag_window_unfocused
|
// window_minimized -> Not supported on window creation
|
||||||
// flag_window_topmost
|
// window_maximized -> Not supported on window creation
|
||||||
// flag_window_highdpi -> errors after minimize-resize, fb size is recalculated
|
// window_unfocused
|
||||||
// flag_window_always_run
|
// window_topmost
|
||||||
// flag_msaa_4x_hint
|
// window_highdpi -> errors after minimize-resize, fb size is recalculated
|
||||||
|
// window_mouse_passthrough
|
||||||
|
// borderless_windowed_mode
|
||||||
|
// interlaced_hint
|
||||||
|
|
||||||
// Set configuration flags for window creation
|
// Set configuration flags for window creation
|
||||||
// rl.setConfigFlags(
|
// rl.setConfigFlags(
|
||||||
// @enumFromInt(@intFromEnum(rl.ConfigFlags.flag_vsync_hint) | @intFromEnum(rl.ConfigFlags.flag_msaa_4x_hint) | @intFromEnum(rl.ConfigFlags.flag_window_highdpi)),
|
// .{
|
||||||
|
// .flag_vsync_hint = true,
|
||||||
|
// .flag_msaa_4x_hint = true,
|
||||||
|
// .flag_window_highdpi = true,
|
||||||
|
// },
|
||||||
// );
|
// );
|
||||||
rl.initWindow(
|
rl.initWindow(
|
||||||
screen_width,
|
screen_width,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue