class Prism::Adapter::GLFW::Window
- Prism::Adapter::GLFW::Window
- RenderLoop::Window(CrystGLFW::Key, CrystGLFW::MouseButton)
- Reference
- Object
Overview
A window adapter.
This binds events to the CrystGLFW
window.
Defined in:
prism/adapter/glfw/window.crConstructors
Instance Method Summary
- #cursor_position : RenderLoop::Position
- #cursor_position=(position : RenderLoop::Position)
-
#cursor_visible=(visible : Bool)
abstract def cursor_visible? : Bool
- #destroy
- #key_pressed?(k : CrystGLFW::Key) : Bool
- #mouse_button_pressed?(b : CrystGLFW::MouseButton) : Bool
-
#render
This gives the window an opportunity to paint to the screen
- #should_close? : Bool
- #size(s : RenderLoop::Size)
- #size : RenderLoop::Size
- #startup
- #window : CrystGLFW::Window
Constructor Detail
Instance Method Detail
def cursor_visible=(visible : Bool)
#
Description copied from class RenderLoop::Window(CrystGLFW::Key, CrystGLFW::MouseButton)
abstract def cursor_visible? : Bool
def render
#
Description copied from class RenderLoop::Window(CrystGLFW::Key, CrystGLFW::MouseButton)
This gives the window an opportunity to paint to the screen