screen

  Source   Edit

Procs

proc add_viewport(self: Screen; camera: Camera) {....raises: [Exception],
    tags: [RootEffect].}
  Source   Edit
proc clear_all_callbacks(self: Screen) {....raises: [Exception], tags: [RootEffect].}
  Source   Edit
proc destroy(self: Screen) {....raises: [], tags: [].}
  Source   Edit
proc emulateMouseWithTouch(screen: Screen; touch: int32; ending: bool;
                           x, y: float32) {....raises: [Exception],
    tags: [RootEffect].}
  Source   Edit
proc get_pixels_at_depth(viewport: Viewport; depth: float32): float32 {.
    ...raises: [], tags: [].}
Returns the length of one world unit (usually one meter) in screen pixels, at a given depth.   Source   Edit
proc get_ray_direction(viewport: Viewport; position: Vec2): Vec3 {.
    ...raises: [ValueError], tags: [].}
  Source   Edit
proc get_ray_direction_local(viewport: Viewport; position: Vec2): Vec3 {.
    ...raises: [], tags: [].}
  Source   Edit
proc newScreen(engine: MyouEngine; width, height: int32; title: string): Screen {.
    ...raises: [Exception], tags: [RootEffect].}
  Source   Edit
proc resize(self: Screen; width, height: int32; orientation = self.orientation) {.
    ...raises: [Exception], tags: [RootEffect].}
  Source   Edit
proc size(self: Screen): IVec2 {.inline, ...raises: [], tags: [].}
  Source   Edit
proc switch(self: Screen): bool {.discardable, ...raises: [], tags: [].}
  Source   Edit
proc vsync=(self: Screen; vsync: bool) {....raises: [], tags: [].}
  Source   Edit