• This repository has been archived on 28/Apr/2021
  • Stars
    star
    14
  • Rank 1,391,694 (Top 29 %)
  • Language GLSL
  • License
    Other
  • Created about 10 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Create a window with an OpenGL context

GLWindow

Simple package to create an OpenGL window. It also wraps the window events into Reactive signals. Supposedly more than one window creation library will be suppported, but so far it just creates them with GLFW. Screen() will return a screen object which basically just wraps all the signals and exposes the handle to the underlying glfw window. These are the exposed Signals:

Inputs:
  framebuffer_size => Reactive.Signal{FixedSizeArrays.Vec{2,Int64}}
  scroll => Reactive.Signal{FixedSizeArrays.Vec{2,Float64}}
  hasfocus => Reactive.Signal{Bool}
  keyboard_buttons => Reactive.Signal{Tuple{Int64,Int64,Int64,Int64}}
  window_size => Reactive.Signal{FixedSizeArrays.Vec{2,Int64}}
  dropped_files => Reactive.Signal{Array{UTF8String,1}}
  unicode_input => Reactive.Signal{Array{Char,1}}
  cursor_position => Reactive.Signal{FixedSizeArrays.Vec{2,Float64}}
  window_area => Reactive.Signal{GeometryTypes.SimpleRectangle{Int64}}
  mouseposition => Reactive.Signal{FixedSizeArrays.Vec{2,Float64}}
  window_open => Reactive.Signal{Bool}
  mouse2id => Reactive.Signal{GLWindow.SelectionID{Int64}}
  mouse_buttons => Reactive.Signal{Tuple{Int64,Int64,Int64}}
  entered_window => Reactive.Signal{Bool}
  window_position => Reactive.Signal{FixedSizeArrays.Vec{2,Int64}}

You can supply the following keyword arguments:

name = "GLWindow";
resolution = standard_screen_resolution(),
debugging = false,
major = 3,
minor = 3,# this is what GLVisualize needs to offer all features
windowhints = standard_window_hints(),
contexthints = standard_context_hints(major, minor)