2024-09-22 21:46:26 +00:00
|
|
|
(define-library (sdl3 video)
|
|
|
|
(import (scheme)
|
|
|
|
(chicken base))
|
2024-09-23 11:43:05 +00:00
|
|
|
(export create-popup-window
|
|
|
|
create-window
|
|
|
|
create-window-with-properties
|
|
|
|
destroy-window
|
|
|
|
destroy-window-surface
|
|
|
|
disable-screen-saver
|
|
|
|
egl-get-current-config
|
|
|
|
egl-get-current-display
|
|
|
|
egl-get-proc-address
|
|
|
|
egl-get-window-surface
|
|
|
|
enable-screen-saver
|
|
|
|
flash-window
|
|
|
|
get-closest-fullscreen-display-mode
|
|
|
|
get-current-display-mode
|
|
|
|
get-current-display-orientation
|
|
|
|
get-current-video-driver
|
|
|
|
get-desktop-display-mode
|
|
|
|
get-display-bounds
|
|
|
|
get-display-content-scale
|
|
|
|
get-display-for-point
|
|
|
|
get-display-for-rect
|
|
|
|
get-display-for-window
|
|
|
|
get-display-name
|
|
|
|
get-display-properties
|
|
|
|
;; get-displays
|
|
|
|
get-display-usable-bounds
|
|
|
|
;; get-fullscreen-display-modes
|
|
|
|
get-grabbed-window
|
|
|
|
get-natural-display-orientation
|
|
|
|
get-num-video-drivers
|
|
|
|
get-primary-display
|
|
|
|
get-system-theme
|
|
|
|
get-video-driver
|
|
|
|
;; get-window-aspect-ratio
|
|
|
|
;; get-window-borders-size
|
|
|
|
get-window-display-scale
|
|
|
|
get-window-flags
|
|
|
|
get-window-from-id
|
|
|
|
get-window-fullscreen-mode
|
|
|
|
;; get-window-icc-profile
|
|
|
|
get-window-id
|
|
|
|
get-window-keyboard-grab
|
|
|
|
;; get-window-maximum-size
|
|
|
|
;; get-window-minumum-size
|
|
|
|
get-window-mouse-grab
|
|
|
|
get-window-mouse-rect
|
|
|
|
get-window-opacity
|
|
|
|
get-window-parent
|
|
|
|
get-window-pixel-density
|
|
|
|
get-window-pixel-format
|
|
|
|
;; get-window-position
|
|
|
|
get-window-properties
|
|
|
|
;; get-windows
|
|
|
|
;; get-window-safe-area
|
|
|
|
;; get-window-size
|
|
|
|
;; get-window-size-in-pixels
|
|
|
|
get-window-surface
|
|
|
|
;; get-window-surface-vsync
|
|
|
|
get-window-title
|
|
|
|
gl-create-context
|
|
|
|
gl-destroy-context
|
|
|
|
gl-extension-supported
|
|
|
|
;; gl-get-attribute
|
|
|
|
gl-get-current-context
|
|
|
|
gl-get-current-window
|
|
|
|
gl-get-proc-address
|
|
|
|
;; gl-get-swap-interval
|
|
|
|
gl-load-library
|
|
|
|
gl-make-current
|
|
|
|
gl-reset-attributes
|
|
|
|
gl-set-attribute
|
|
|
|
gl-set-swap-interval
|
|
|
|
gl-swap-window
|
|
|
|
gl-unload-library
|
|
|
|
hide-window
|
|
|
|
maximize-window
|
|
|
|
minimize-window
|
|
|
|
raise-window
|
|
|
|
restore-window
|
|
|
|
screen-saver-enabled
|
|
|
|
set-window-always-on-top
|
|
|
|
set-window-aspect-ratio
|
|
|
|
set-window-bordered
|
|
|
|
set-window-focusable
|
|
|
|
set-window-fullscreen
|
|
|
|
set-window-fullscreen-mode
|
|
|
|
;; set-window-hit-test
|
|
|
|
set-window-icon
|
|
|
|
set-window-keyboard-grab
|
|
|
|
set-window-maximum-size
|
|
|
|
set-window-minimum-size
|
|
|
|
set-window-modal
|
|
|
|
set-window-modal-for
|
|
|
|
set-window-mouse-grab
|
|
|
|
set-window-mouse-rect
|
|
|
|
set-window-opacity
|
|
|
|
set-window-parent
|
|
|
|
set-window-position
|
|
|
|
set-window-resizable
|
|
|
|
set-window-shape
|
|
|
|
set-window-size
|
|
|
|
set-window-surface-vsync
|
|
|
|
set-window-title
|
|
|
|
show-window
|
|
|
|
show-window-system-menu
|
|
|
|
sync-window
|
|
|
|
update-window-surface
|
|
|
|
;; update-window-surface-rects
|
|
|
|
window-has-surface
|
|
|
|
)
|
2024-09-22 21:46:26 +00:00
|
|
|
(begin
|
|
|
|
(include-relative "lib/sdl3-video-impl.scm")))
|