class Prism::Adapter::GLFW::Window

Overview

A window adapter. This binds events to the CrystGLFW window.

Defined in:

prism/adapter/glfw/window.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(title : String, width : Int32, height : Int32) #

[View source]

Instance Method Detail

def cursor_position : RenderLoop::Position #
Description copied from class RenderLoop::Window(CrystGLFW::Key, CrystGLFW::MouseButton)

TODO This is implementation specific and shouldn't be part of this lib.


[View source]
def cursor_position=(position : RenderLoop::Position) #
Description copied from class RenderLoop::Window(CrystGLFW::Key, CrystGLFW::MouseButton)

TODO This is implementation specific and shouldn't be part of this lib.


[View source]
def cursor_visible=(visible : Bool) #
Description copied from class RenderLoop::Window(CrystGLFW::Key, CrystGLFW::MouseButton)

TODO This is implementation specific and shouldn't be part of this lib. abstract def cursor_visible? : Bool

TODO This is implementation specific and shouldn't be part of this lib.


[View source]
def destroy #

[View source]
def key_pressed?(k : CrystGLFW::Key) : Bool #
Description copied from class RenderLoop::Window(CrystGLFW::Key, CrystGLFW::MouseButton)

TODO This is implementation specific and shouldn't be part of this lib.


[View source]
def mouse_button_pressed?(b : CrystGLFW::MouseButton) : Bool #
Description copied from class RenderLoop::Window(CrystGLFW::Key, CrystGLFW::MouseButton)

TODO This is implementation specific and shouldn't be part of this lib.


[View source]
def render #

[View source]
def should_close? : Bool #

[View source]
def size(s : RenderLoop::Size) #
Description copied from class RenderLoop::Window(CrystGLFW::Key, CrystGLFW::MouseButton)

TODO This is implementation specific and shouldn't be part of this lib.


[View source]
def size : RenderLoop::Size #
Description copied from class RenderLoop::Window(CrystGLFW::Key, CrystGLFW::MouseButton)

TODO This is implementation specific and shouldn't be part of this lib.


[View source]
def startup #

[View source]
def window : CrystGLFW::Window #

[View source]