This color map was originally given to me by 'prog', the sdr# author,
then I tweaked it a bit.
Note that there is currently no way to select it other than changing
the code.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This will probably be integrated as part of fosphor itself. But until
it is, then this block is useful to overlap several FFT windows.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
We're hidden by default.
For Qt we'll get an expose event the first time we're shown.
Needed because we might be hidden by default (like in a tab
chooser) and this would create problems if we consider ourselves
shown by default.
And for GLFW we consider ourself visible after the first reshape,
which is forced at init.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Previously we were hiding the extrema bin, now we display it "half" on
each side which sort of maps better to the concept of circular spectrum
At the same time we move the zoom spec to {center,span} rather than
{start,stop} since it makes more sense and matches the channel specs
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
The buffers will end up being initialized from the CL result anyway.
(and CL has its own clear).
Apparently the clear of the VBO was causing CL/GL share failur on recent
NVidia driver so get rid of all of it.
Thanks a lot to Aaron Giles <gilesam73@gmail.com> for finding the root
cause of the issue.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
The FindGLEW is included because it seems the one shipping by CMake by
default fails to find it on windows (which is the only platform where we
use it ...)
This is based on a patch from Geof Nieboer <gnieboer@corpcomm.net>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Apparently needed for mingw build and doesn't affect the MSVC ones.
Thanks to Martin Hauke <mardnh@gmx.de> for reporting
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This reverts commit 585bac0316983286830f3bc50fce8247bad142f9.
This is causing issue with Ubuntu and its lack of libpng 1.6 ... so
removed for now.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This happens commonly on optimus laptop when CL is Nvidia and the GL
is the Intel card. They can't share data ...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Turns out some fucked up compilers (MSVC I'm looking at you) don't
support strings that are very long.
So in the resource compiler:
- Change binary encoding to use a separate declaration and use array
rather than string encoding
- If a text file is > 64k, use the binary encoding method rather than
string
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Theses are not in header, and we don't really care about inlining, and
the compiler will most likely do it if it thinks its appropriate anyway.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>