SDLRenderer
sdl2 :: SDLRendererInfo :: defaultinit
sdl2 :: SDLRendererInfo :: malloc
Allocate the memory for a newSDLRenderer
, it must then be freed with free
sdl2 :: SDLRendererInfo :: max_texture_height
Maximum texture height supported by the renderersdl2 :: SDLRendererInfo :: max_texture_width
Maximum texture width supported by the renderersdl2 $ SDLRendererInfo :: SELF
Type of this instance, automatically specialized in every classcore :: 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 :: SDLRendererInfo :: 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.
sdl2 :: SDLRendererInfo :: malloc
Allocate the memory for a newSDLRenderer
, it must then be freed with free
sdl2 :: SDLRendererInfo :: max_texture_height
Maximum texture height supported by the renderersdl2 :: SDLRendererInfo :: max_texture_width
Maximum texture width supported by the renderercore :: Object :: native_class_name
The class name of the object in CString format.core :: Pointer :: native_equals
core :: Object :: output_class_name
Display class name on stdout (debug only).core :: Pointer :: premultiply_alpha
Multiply RGB values by their alpha value
# Information on a `SDLRenderer`
extern class SDLRendererInfo `{ SDL_RendererInfo * `}
# Allocate the memory for a new `SDLRenderer`, it must then be freed with `free`
new malloc `{ return malloc(sizeof(SDL_RendererInfo)); `}
# Name of the renderer's driver
fun name: CString `{ return (char*)self->name; `}
# Maximum texture width supported by the renderer
fun max_texture_width: Int `{ return self->max_texture_width; `}
# Maximum texture height supported by the renderer
fun max_texture_height: Int `{ return self->max_texture_height; `}
end
lib/sdl2/sdl2_base.nit:578,1--591,3