arsd-official ~master (2024-10-25T16:17:57Z)
Dub
Repo
calculateViewport
arsd
pixmappresenter
Calculates the dimensions and position of the viewport for the provided config.
Primary use case for this is
PixmapRenderer
implementations.
@
safe
pure nothrow @
nogc
Viewport
calculateViewport
(
const
ref
PresenterConfig
config
)
Meta
Source
See Implementation
arsd
pixmappresenter
aliases
Pixmap
WindowResizedCallback
classes
OpenGl1PixmapRenderer
OpenGl3PixmapRenderer
PixmapPresenter
enums
Scaling
ScalingFilter
functions
calculateViewport
glViewportPMP
interfaces
PixmapRenderer
structs
LoopCtrl
PresenterConfig
Viewport
WantsOpenGl
Calculates the dimensions and position of the viewport for the provided config.