The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
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.