Maciej Suminski
|
3fcae6b120
|
Fixes for OpenGL resources handling.
|
2016-06-07 14:42:42 +02:00 |
Maciej Suminski
|
b4ad18a3ea
|
Do not rebuild shaders on each OPENGL_GAL construction.
|
2016-06-03 15:46:13 +02:00 |
Maciej Suminski
|
b83c148e10
|
Delete OpenGL context on GLCanvas subclasses destruction.
|
2016-06-03 15:46:13 +02:00 |
Maciej Suminski
|
68b6da57c0
|
Removed OPENGL_GAL::instanceCounter.
|
2016-06-03 15:46:12 +02:00 |
Maciej Suminski
|
01f32dd52c
|
GL_CONTEXT_MANAGER class to avoid unexpected GL context switches.
|
2016-06-03 15:46:12 +02:00 |
Maciej Suminski
|
4f7bb4c0f7
|
Simplified error checking in OPENGL_GAL test.
|
2016-06-03 15:46:11 +02:00 |
jean-pierre charras
|
3e2cae946c
|
Corrected wxDC objects used by EDA_DRAW_PANEL_GAL & OPENGL_GAL.
|
2016-06-03 15:46:11 +02:00 |
jean-pierre charras
|
1ae9175671
|
A few minor fixes for compil warnings (shadowed variables and deprecated auto_ptr)
|
2016-05-29 17:02:34 +02:00 |
jean-pierre charras
|
ca0113ab65
|
Fix my previous commit: I committed the wrong file
|
2016-05-28 21:51:35 +02:00 |
jean-pierre charras
|
b7f863dc4c
|
Fix the commit 6838 (Fix non optimal position of net name and pad name in GAL mode), broken.
|
2016-05-28 21:46:13 +02:00 |
Maciej Suminski
|
ade1d1fe74
|
Fixed display of 'b' letter in OpenGL canvas.
|
2016-05-27 14:44:44 +02:00 |
Maciej Suminski
|
2ded7bf82a
|
Improved error handling for SHADER class.
|
2016-05-23 09:54:53 +02:00 |
Maciej Suminski
|
a42cb0ef8c
|
OpenGL GAL: Set context in destructor when possible (under Linux the window has to be visible).
|
2016-05-09 18:00:34 +02:00 |
Maciej Suminski
|
d9f4877c94
|
Fixed a crash when starting pcbnew with OpenGL GAL.
|
2016-05-09 17:23:01 +02:00 |
Maciej Suminski
|
cca36d355a
|
Remove unnecessary debug messages (OpenGL GAL).
|
2016-05-04 10:10:15 +02:00 |
Maciej Suminski
|
22c4e4d240
|
Set OpenGL context only when the parent window is visible.
|
2016-05-03 16:39:58 +02:00 |
Maciej Suminski
|
55976e39ef
|
Fixed crash occuring when a vertex buffer is mapped in invalid OpenGL context.
|
2016-05-03 16:16:59 +02:00 |
Maciej Suminski
|
a62d2b5412
|
Bigger net labels (GAL).
|
2016-05-03 15:15:08 +02:00 |
Maciej Suminski
|
8d952f35c6
|
Fixed text vertical alignment for bitmap font (OpenGL).
|
2016-05-03 11:58:48 +02:00 |
Maciej Suminski
|
58ed0c8cce
|
Improved grid drawing routine (OpenGL).
|
2016-05-02 16:15:24 +02:00 |
Maciej Suminski
|
2f09e0ee40
|
Alternative version of CACHED_CONTAINER::defragmentResize() Certain GPUs do not support glCopyBufferSubData(), therefore there is an alternative version working with good, old memcpy().
|
2016-05-02 16:15:24 +02:00 |
Maciej Suminski
|
3e3ecccb2b
|
A few more fixes related to the previous commit.
|
2016-05-02 16:15:23 +02:00 |
Maciej Suminski
|
6e881f51fd
|
Changed bound buffers to improve compatibility (OpenGL GAL).
|
2016-05-02 16:15:23 +02:00 |
Maciej Suminski
|
0c4b6dabd3
|
Increased interglyph spacing to avoid artifacts when mipmapping is enabled.
|
2016-05-02 16:14:26 +02:00 |
Maciej Suminski
|
fff3abc9a0
|
Support for overbars in bitmap fonts (OpenGL GAL).
|
2016-05-02 16:12:18 +02:00 |
Maciej Suminski
|
c506d2b16c
|
Set OpenGL context before freeing video resources.
|
2016-05-02 16:12:18 +02:00 |
Maciej Suminski
|
59fe8df269
|
Split bitmap text drawing routine into smaller functions (GAL).
|
2016-05-02 16:12:18 +02:00 |
Maciej Suminski
|
a3a9641ae2
|
Disable invalidating buffer on CACHED_CONTAINER::Clear(). OpenGL context is not available when the method is called, so it does not work.
|
2016-05-02 16:12:18 +02:00 |
Maciej Suminski
|
5a8adcdf52
|
Improved testing/profiling code for CACHED_CONTAINER. Switched from wxLogDebug to wxLogTrace. Adjusted CACHED_CONTAINER_TEST levels required for certain tests. Added a test to check used space in the container.
|
2016-05-02 16:12:17 +02:00 |
Maciej Suminski
|
54f3105cfb
|
More changes to CACHED_CONTAINER. Removed m_itemSize field (error-prone, as it had to be synchronized with m_item->GetSize()) Fixed a bug in reallocate() method, changed a bit it is behaviour. VERTEX_ITEM is not stored in the item set if its size is 0.
|
2016-05-02 16:12:17 +02:00 |
Maciej Suminski
|
deb578eadd
|
Recognize a special case of completely filled/defragmented container when resizing.
|
2016-05-02 16:12:17 +02:00 |
Maciej Suminski
|
a9c3a1730b
|
Free chunks in CACHED_CONTAINER only if they are really not needed.
|
2016-05-02 16:12:16 +02:00 |
Maciej Suminski
|
702be4903f
|
Vertices are stored in GPU memory (OpenGL GAL).
|
2016-05-02 16:12:16 +02:00 |
Maciej Suminski
|
01912aaabd
|
Minor refactoring in CACHED_CONTAINER.
|
2016-05-02 16:12:16 +02:00 |
Maciej Suminski
|
b32fdd97d9
|
Changed shading model to flat.
|
2016-05-02 16:12:15 +02:00 |
Maciej Suminski
|
52c698ab11
|
Fixed an included header (OpenGL GAL).
|
2016-05-02 16:12:14 +02:00 |
Maciej Suminski
|
e2c8e07344
|
Enabled mipmapping for bitmap fonts.
|
2016-05-02 16:12:14 +02:00 |
Maciej Suminski
|
53ef29802f
|
Switched bitmap font to higher resolution.
|
2016-05-02 16:11:39 +02:00 |
Maciej Suminski
|
05a30b7591
|
Do not draw anything if vertex containers are empty.
|
2016-05-02 16:08:50 +02:00 |
Maciej Suminski
|
928d4e0404
|
SwapBuffers() contain an implicit glFlush()
|
2016-05-02 16:08:50 +02:00 |
Maciej Suminski
|
bda3011519
|
Initial support for bitmap fonts (OpenGL GAL).
|
2016-05-02 16:04:45 +02:00 |
Maciej Suminski
|
431e343201
|
Switch to direct rendering before clearing the screen (OpenGL GAL).
|
2016-05-02 15:56:19 +02:00 |
Maciej Suminski
|
5ba84dda0a
|
OpenGL capabilities test is run only once.
|
2016-05-02 15:56:19 +02:00 |
Maciej Suminski
|
36dd6eb6b3
|
GAL profiling output is enabled with WXTRACE env variable.
|
2016-05-02 15:56:17 +02:00 |
Maciej Suminski
|
c0465e5519
|
Instance counter for OPENGL_GAL to avoid double freeing.
|
2016-05-02 15:56:16 +02:00 |
Maciej Suminski
|
dbff9ad786
|
Improved error checking in GPU_MANAGER.
|
2016-05-02 15:56:16 +02:00 |
Maciej Suminski
|
4cca3bc368
|
Minor OPENGL_COMPOSITOR refactoring.
|
2016-05-02 15:56:16 +02:00 |
Maciej Suminski
|
1927f3a787
|
Unified way of checking OpenGL errors.
|
2016-05-02 15:56:14 +02:00 |
Maciej Suminski
|
2a276550eb
|
Fixed SHADER::AddParameter() function.
|
2016-05-02 15:56:13 +02:00 |
Maciej Suminski
|
113e75c5c5
|
VERTEX_MANAGER functions return false in case of failure.
|
2016-05-02 15:56:11 +02:00 |