SDLRenderer::new
sdl2 :: SDLRendererFlags :: accelerated
Add the flag to request an accelerated renderersdl2 :: SDLRendererFlags :: defaultinit
sdl2 :: SDLRendererFlags :: presentvsync
Add the flag to request a renderer whereSDLRenderer::present
is synchronized with the refresh rate
sdl2 :: SDLRendererFlags :: software
Add the flag to request a software renderersdl2 :: SDLRendererFlags :: targettexture
Add the flag to request a renderer able to render to a texturesdl2 $ SDLRendererFlags :: SELF
Type of this instance, automatically specialized in every classsdl2 :: SDLRendererFlags :: accelerated
Add the flag to request an accelerated renderercore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
sdl2 :: SDLRendererFlags :: defaultinit
core :: Pointer :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).sdl2 :: SDLRendererFlags :: presentvsync
Add the flag to request a renderer whereSDLRenderer::present
is synchronized with the refresh rate
sdl2 :: SDLRendererFlags :: software
Add the flag to request a software renderersdl2 :: SDLRendererFlags :: targettexture
Add the flag to request a renderer able to render to a texture
# Flags for `SDLRenderer::new`
extern class SDLRendererFlags `{ Uint32 `}
# Get the default empty flag set
new `{ return 0; `}
# Add the flag to request a software renderer
fun software: SDLRendererFlags `{ return self | SDL_RENDERER_SOFTWARE; `}
# Add the flag to request an accelerated renderer
#
# This is the default option.
fun accelerated: SDLRendererFlags `{ return self | SDL_RENDERER_ACCELERATED; `}
# Add the flag to request a renderer where `SDLRenderer::present` is synchronized with the refresh rate
fun presentvsync: SDLRendererFlags `{ return self | SDL_RENDERER_PRESENTVSYNC; `}
# Add the flag to request a renderer able to render to a texture
fun targettexture: SDLRendererFlags `{ return self | SDL_RENDERER_TARGETTEXTURE; `}
end
lib/sdl2/sdl2_base.nit:377,1--395,3