Tomasz Włostowski
32185ddcd3
Multiple improvements concerning colors, configuration handling and legacy features in pcbnew:
- support for background color setting
- removed several global config settings (such as g_Drc_On)
- wrapped most of global config settings in PCB_GENERAL_SETTINGS class
- reorganized PCB general options dialog to clearly mark which options concern only the legacy canvas
- new GAL feature for legacy users: double-click (or E) to change track width available as an option.
Fixes: lp:1530543
* https://bugs.launchpad.net/kicad/+bug/1530543
Fixes: lp:1707145
* https://bugs.launchpad.net/kicad/+bug/1707145
8 years ago
jean-pierre charras
22a8df69c4
Fix a few doxygen warnings
8 years ago
Maciej Suminski
11f8e53e27
Smoother arc rendering in OpenGL GAL
Fixes: lp:1496114
* https://bugs.launchpad.net/kicad/+bug/1496114
9 years ago
Jon Evans
3208d24ad4
Add DrawArcSegment() GAL method, to support drawing outlined arcs
9 years ago
John Beard
ddded86a06
Give all GAL canvases access to a GAL_DISPLAY_OPTIONS structure instance
Also loads the gal options when loading a canvas, as the canvas
otherwise might not register the initial settings.
9 years ago
Maciej Suminski
80956ef1e6
Added GAL::DrawPolygon(SHAPE_POLY_SET) & GAL::DrawPolyLine(SHAPE_LINE_CHAIN)
9 years ago
Maciej Suminski
88eb648cbb
Alternative way of handling OpenGL initialization & errors
Some faults could result in a crash, as they were not properly
handled. Now the rendering loop is wrapped with try..catch block
which will revert to Cairo in case of an error and display an
error message.
Fixes: lp:1655766
* https://bugs.launchpad.net/kicad/+bug/1655766
9 years ago
Maciej Suminski
5a7604cbb4
More code formatting
9 years ago
decimad
77138e3702
Add UI control to set up gal opengl antialiasing and load/store the settings
9 years ago
decimad
047f52e7cb
Move builtin font resources out of opengl_gal translation unit
9 years ago
jean-pierre charras
30df041de6
fix shadowed local variables
9 years ago
decimad
402f53a302
update font code along with the changes done in the msdf atlas tool (use codepoint spans and refined char placement)
add font coordinate system clarification drawing (svg)
9 years ago
Simon Richter
59c81976dc
Explicitly mark overriding functions.
9 years ago
Simon Richter
da5699de0a
Replace boost::shared_ptr with std::shared_ptr.
9 years ago
Maciej Suminski
b7ec4ea160
Corrected the last instance check in OPENGL_GAL.
9 years ago
Maciej Suminski
3fcae6b120
Fixes for OpenGL resources handling.
9 years ago
Maciej Suminski
b4ad18a3ea
Do not rebuild shaders on each OPENGL_GAL construction.
9 years ago
Maciej Suminski
68b6da57c0
Removed OPENGL_GAL::instanceCounter.
9 years ago
Maciej Suminski
01f32dd52c
GL_CONTEXT_MANAGER class to avoid unexpected GL context switches.
9 years ago
jean-pierre charras
3e2cae946c
Corrected wxDC objects used by EDA_DRAW_PANEL_GAL & OPENGL_GAL.
9 years ago
Maciej Suminski
3ca7026aa0
More robust checks for OpenGL canvas visibility.
10 years ago
Maciej Suminski
8d952f35c6
Fixed text vertical alignment for bitmap font (OpenGL).
10 years ago
Maciej Suminski
58ed0c8cce
Improved grid drawing routine (OpenGL).
10 years ago
Maciej Suminski
fff3abc9a0
Support for overbars in bitmap fonts (OpenGL GAL).
10 years ago
Maciej Suminski
59fe8df269
Split bitmap text drawing routine into smaller functions (GAL).
10 years ago
Maciej Suminski
702be4903f
Vertices are stored in GPU memory (OpenGL GAL).
10 years ago
Maciej Suminski
bda3011519
Initial support for bitmap fonts (OpenGL GAL).
10 years ago
Maciej Suminski
c0465e5519
Instance counter for OPENGL_GAL to avoid double freeing.
10 years ago
Maciej Suminski
4951285a67
GAL::DrawPolygon() and GAL::DrawPolyline() variants that work with VECTOR2D array.
10 years ago
Maciej Suminski
0386a4df94
Bulletproof canvas switching.
10 years ago
Maciej Suminski
709697ea40
Better way to determine supported OpenGL version and extensions.
11 years ago
Maciej Suminski
b1ace1607b
Reworked GAL switching.
Now OpenGL can report its problems instead of shutting down the application.
11 years ago
Maciej Suminski
a57f7ae8cd
Fix OpenGL canvas freeze under Windows.
11 years ago
Maciej Suminski
0fc93666c6
Rework to support multiple views with OpenGL GAL canvas.
11 years ago
Maciej Suminski
d27ea7895d
Moved background color settings from GAL to RENDER_SETTINGS. Added RENDER_SETTINGS::TranslateColor() to convert between EDA_COLOR_T and COLOR4D.
12 years ago
Maciej Suminski
c5a3c1082a
Removed a few RecacheAllItems() calls, some of them changed to specific type recaching (using TYPE_COLLECTOR & VIEW_ITEM::ViewUpdate() ).
Removed OPENGL_GAL::SetStrokeColor().
12 years ago
Maciej Suminski
597e98dbf4
Cursor is in world coordinates.
12 years ago
Maciej Suminski
f9f0b46b63
Small GAL refactorization, mostly correcting constness.
12 years ago
Maciej Suminski
bc305859b2
Mainly case changes.
12 years ago
Maciej Suminski
0ac3e1fbf2
Namespace KiGfx->KIGFX.
template<> -> template <>
Some more reformatting according to uncrustify results.
12 years ago
Maciej Suminski
bd8998d1da
Fixed cursor drawing for OpenGL.
12 years ago
Maciej Suminski
215f35e237
Added mouse cursor drawing.
Added flipping mode.
12 years ago
Maciej Suminski
43ae1cb98d
Smarter way of the overlay rendering (overlay is always refreshed, while cached&noncached targets only if the viewport or items have changed).
12 years ago
Maciej Suminski
bc69429a56
Added GetTarget() for GALs.
12 years ago
Maciej Suminski
19b344806d
Fixed the tesselator, so now it works with Windows.
12 years ago
Maciej Suminski
190ed58568
Code refactoring.
12 years ago
Maciej Suminski
790a1f8563
Made GAL backends settings more consistent. Fixed grid line width in the OpenGL backend.
12 years ago
Maciej Suminski
f9d74ccb70
Removed shaderless OpenGL backend.
12 years ago
Maciej Suminski
618a5f0e75
OpenGL multitarget rendering (compositing).
12 years ago
Maciej Suminski
5242fff9d7
Code refactorization. VBO_CONTAINER is split to [NON]CACHED_MANAGER, GPU_MANAGER and VERTEX_MANAGER.
12 years ago