Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Commit

Permalink
handle signals
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Mar 28, 2018
1 parent f8a1d8a commit 5384030
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/visualize/lines.jl
Expand Up @@ -107,8 +107,9 @@ to_points(x::Vector{LineSegment{T}}) where {T} = reinterpret(T, x, (length(x)*2,
_default(positions::VecTypes{LineSegment{T}}, s::Style, data::Dict) where {T <: Point} =
_default(const_lift(to_points, positions), style"linesegment"(), data)

buffer_or_float(x::Signal{<: Number}) = map(Float32, x)
buffer_or_float(x::Number) = Float32(x)
buffer_or_float(x) = GLBuffer(x)
buffer_or_float(x) = GLBuffer(x) # buffer should be able to handle signals

function _default(positions::VecTypes{T}, s::style"linesegment", data::Dict) where T <: Point
@gen_defaults! data begin
Expand Down

0 comments on commit 5384030

Please sign in to comment.