Fernando García Liñán
cc8b2bbf72
Add support for anisotropic filtering in Canvas
2020-11-23 16:33:09 +01:00
Scott Giese
fc1178fb39
REVIEW: Memory Leak - ODGauge
...
1,176 bytes in 3 blocks are indirectly lost
2020-08-23 00:57:39 -05:00
Scott Giese
7ac400a162
REVIEW: Memory Leak - vgCreateContextSH()
...
1,624 bytes in 1 blocks are still reachable
2020-08-23 00:27:31 -05:00
Scott Giese
4ccaa68c6a
REVIEW: Memory Leak - ODGauge
...
3,572 (136 direct, 3,436 indirect) bytes in 1 blocks are definitely lost
3,572 (8 direct, 3,564 indirect) bytes in 1 blocks are definitely lost
2,712 bytes in 3 blocks are indirectly lost
384 bytes in 3 blocks are indirectly lost
168 bytes in 3 blocks are indirectly lost
2020-08-22 22:38:33 -05:00
James Turner
456c63935c
Cmake refresh
...
Use target objects everywhere, and simplify handling of system vs
local dependencies.
2020-08-18 11:40:27 +01:00
James Turner
9ccbf539c1
Raise minimum OSG version to 3.4.1
2020-06-18 17:22:55 +01:00
Julian Smith
27907c5e6f
Avoid various gcc warnings.
2020-06-17 22:56:33 +01:00
Lars Toenning
b4d5374fb7
Fix compiler warning of different signedness
2020-06-16 12:11:24 +01:00
James Turner
ad3621e23b
Add Canvas::Image.dirtyPixels()
2020-04-28 09:36:40 +01:00
gallaert
7a6f9151a6
General boost cleanup
2020-04-22 14:04:21 +01:00
gallaert
567293c14d
Replace boost::function by std::function
2020-04-22 14:04:21 +01:00
gallaert
2ff6a4966a
Replace boost::bind by std::bind and lambda function
2020-04-22 14:04:21 +01:00
gallaert
1e13cf6fec
Replace boost::shared_ptr/weak_ptr by std::shared_ptr/weak_ptr
2020-04-22 14:03:47 +01:00
James Turner
f144bd5a89
CanvasImage: fix updating after fillRect / setPixel
2020-04-18 21:31:16 +01:00
James Turner
f350bd31bd
CanvasImage: fillRect / setPixel tweaks
...
Fix image dirtying and allocation without an underlying fike
2020-03-11 17:12:42 +00:00
Stuart Buchanan
a4b79d6882
Merge /u/tbmoore/simgear/ branch tmoore/canvas-mipmap into next
...
https://sourceforge.net/p/flightgear/simgear/merge-requests/52/
2020-02-12 21:02:43 +00:00
James Turner
ec19dfc2f2
Fix Windows build
...
__PRETTY_FUNCTION__ is not portable, alas.
2019-12-18 23:43:40 +00:00
James Turner
da45c26e7d
Adding pixel manipulators to canvas::Image
2019-12-17 22:32:25 +00:00
James Turner
c39a5fd8c0
Fix some Clang warnings
2019-12-17 22:32:25 +00:00
Scott Giese
dc886118ba
[CanvasText] Fix conditional compiles
2019-12-15 00:13:46 -06:00
Julian Smith
f407785f10
Fixes for building on OpenBSD.
2019-08-22 17:35:13 +01:00
Scott Giese
b28f030874
[CanvasText] Restore support for OSG 3.4
2019-08-04 10:43:00 -05:00
Scott Giese
d883ab278d
[osgText.getActiveFont] Breaking change within OSG
2019-08-04 02:27:57 -05:00
Edward d'Auvergne
b73dfb08ae
SGSubsystem classes: Whitespace standardisation of the declarations.
...
This is a clean up commit prior to the subsystem API standardisation to simplify
the diffs. It includes all SGSubsystem and SGSubsystemGroup derived classes.
2019-06-16 14:12:38 +02:00
Tim Moore
325b89e023
Fix automatic mipmap generation for Canvas textures
...
When using glTexStorage2D, OSG doesn't allocate storage for the levels
of the mipmap above the base unless an image is assigned to the
texture.
2019-04-04 12:07:34 +00:00
Richard Harrison
8bcaa50ba6
OSG3.7 changes
2019-01-20 18:28:37 +01:00
Scott Giese
ed87a0b032
Eliminate compiler warnings
2018-12-23 22:16:05 -06:00
James Turner
2e3cace7f9
Canvas::path: early return for descendant changes
...
The ‘rect’ attributes of Path were before the early-return when the
change is for a descendant node.
2018-07-24 13:13:08 +01:00
James Turner
9553a604ac
Cache parsed lat/lon values in Canvas::Map
...
This avoids re-parsing each lat/lon in the map from a string, each
time the project changes
2018-07-24 13:13:08 +01:00
James Turner
f1e1bf11b6
Cache x/y nodes in Canvas::Map::GeoPair
...
This removes a bad CPU hit when Canvas map is used continuously,
since this is two named property lookups per map coord per frame
2018-07-24 13:13:08 +01:00
ThomasS
dc2f142480
Feature for requesting canvas images per HTTP as described in http://wiki.flightgear.org/Read_canvas_image_by_HTTP
2018-05-28 14:23:12 +01:00
xDraconian
d92a289c25
Bug fix: svg dirty flag
2018-05-17 09:11:07 +01:00
Thomas Geymayer
62ae6ca35e
Mostly canvas doxygen improvements and C++11 refactoring.
2018-03-02 09:07:01 +01:00
Thomas Geymayer
711a4fe0c8
canvas::Map: Preserve default values without new values
...
Ensure default values are used (instead of 0) if no values are
specified.
2018-03-01 09:10:24 +01:00
Thomas Geymayer
a653d67aae
canvas: Event improvements and new events (dragstart, dragend)
2018-02-25 14:50:49 +01:00
Thomas Geymayer
37bc43c7aa
canvas::Path: support for stroke-opacity and fill-opacity
2018-01-29 09:07:04 +01:00
Thomas Geymayer
4edd3f45b7
canvas: Refactor and protect against expired pointers
2018-01-28 15:57:14 +01:00
Thomas Geymayer
087ea4c5f3
canvas: Refactor with C++11
2018-01-28 00:49:05 +01:00
Thomas Geymayer
5f8f5a1c33
cppbind: More refactoring and finally getting rid of boost.preprocessor
2018-01-19 09:12:11 +01:00
Thomas Geymayer
5a72a7d9f4
canvas: Refactor Path::addSegment with std::initializer_list
2018-01-16 09:01:55 +01:00
Richard Harrison
854881bba2
Prevent nullptr exception. Had this happen once.
2017-12-04 07:30:48 +01:00
Alessandro Menti
fe0d3fd448
Remove the dependency on the UTF-8 external library
...
Remove the dependency on the UTF-8 external library by writing the
UTF-8/code point conversion routines in KeyboardEvent.cxx.
2017-12-02 16:32:27 +01:00
Thomas Geymayer
15d5c878f3
canvas::NasalWidget: don't call unsafe method in destructor
...
Calling a virtual method in a destructor has undefined behaviour.
Furthermore passing 'this' to nasal from within the destructor
is not safe. 'onRemove' is called for widgets within layouts
on destruction anyhow, so no need to call it here again. If widgets
are arranged manually without any layout 'onRemoved' should be
called upon removing them from a dialog.
2017-12-01 08:14:44 +01:00
Stuart Buchanan
b57dca66be
Handle case where no tranform matrix exists.
2017-10-13 17:35:21 +01:00
Stuart Buchanan
a800189c25
Add support for Slippy Map Canvas layers.
...
- Add so-called Web Mercator projection and ability to choose
projection for a Canvas Map.
- Add supporting functions for Slippy Maps (i.e. OSM)
2017-09-28 15:36:48 +01:00
Richard Harrison
6f0c7da6ad
OSG 3.5.x support
2017-03-30 03:58:27 +02:00
James Turner
c170f576b6
Ensure <simgear_config.h> is always included.
...
This is going to become important soon - prep for enabling SIMGEAR_SHARED on Windows.
2017-03-28 09:36:53 +01:00
Erik Hofman
ee4f5a5190
Disable SIMD for now as a test.
2017-02-28 12:42:48 +01:00
Florent Rougon
d39a56d4fb
Add missing include: <cctype> for unary std::islower()
...
Thanks to Ron H. for the report.
2016-12-18 11:02:01 +01:00
James Turner
2f21b582cd
Canvas image fill and source rect setters.
...
C++ code can set the fill and source rect directly.
2016-12-16 19:14:44 +00:00