package miaou-widgets-display-sdl

  1. Overview
  2. Docs
Miaou SDL widget implementations

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.5.2.tar.gz
md5=60a3b9f181f24572a06a9492532bfdda
sha512=fcc35a275066be2900e6201782faf47503076fa4640f08cf78067835a6f447b74613009e55b2ac799adb7ca46f1bffa261fc5971753f2cc3c6bef327511c7ef6

doc/miaou-widgets-display-sdl.widgets/Miaou_widgets_display_sdl/Image_widget_sdl/index.html

Module Miaou_widgets_display_sdl.Image_widget_sdlSource

SDL renderer for image widget with texture caching

module Img = Miaou_widgets_display.Image_widget
Sourcetype cached_texture = {
  1. texture : Tsdl.Sdl.texture;
  2. width : int;
  3. height : int;
  4. scale : int;
}
Sourceval texture_cache : (Img.t, cached_texture) Hashtbl.t
Sourceval create_cached_texture : Tsdl.Sdl.renderer -> Img.t -> int -> cached_texture
Sourceval render : Tsdl.Sdl.renderer -> Img.t -> x:int -> y:int -> scale:int -> unit