77 Commits
Author SHA1 Message Date
Leonardo Zide a08dede88b Fixed warnings. 2025-12-15 11:07:35 -03:00
Leonardo Zide 5772688318 Fixed offscreen check. 2024-10-09 12:01:49 -07:00
Leonardo Zide a27b69c9fd Clear background alpha consistently for solid and gradient backgrounds.
Transparent for offscreen and opaque for widgets.
2024-10-03 18:11:56 -07:00
Leonardo Zide cb6a836178 Use unique_ptr to control group ownership. 2024-05-27 11:43:36 -07:00
Leonardo Zide a5207573bf Customizable object colors. 2021-11-24 15:20:08 -08:00
Leonardo Zide 94a5a5dc52 Moved blend to context. 2021-11-22 16:18:09 -08:00
Leonardo Zide 89c0b58592 Moved depth test to context. 2021-11-22 16:01:45 -08:00
Leonardo Zide 408dc6ff97 Moved texture upload to context. 2021-11-21 18:25:17 -08:00
Leonardo Zide a9ab7c0c64 Removed GL calls in texfont. 2021-11-21 12:16:19 -08:00
Leonardo Zide 36dbcec238 Fixed macOS OpenGL deprecation warnings. 2021-11-20 19:56:52 -08:00
Leonardo Zide 7d884e6b5f Static analysis fixes. 2021-11-14 18:34:24 -08:00
Leonardo Zide 48c6fad09e Flush vertex attribs when the buffer object changes. Fixes #697. 2021-04-17 10:38:23 -07:00
Leonardo Zide 278e953b81 Rewrote vertex attribute cache. 2021-04-10 15:22:41 -07:00
Leonardo Zide 233affe3fc Moved global resource creation to startup instead of context creation. Fixes #645. 2021-03-10 21:22:41 -08:00
Leonardo Zide c3ad14ac04 Conditional line shader. 2021-03-06 18:54:24 -08:00
Leonardo Zide b8a8cb6730 Removed direct GL function calls. 2021-01-12 14:29:56 -08:00
Leonardo Zide 92227eda8b Removed unused variable. 2021-01-12 13:48:04 -08:00
Leonardo Zide 6bfc4ff9b1 Removed Tex2DMS functions. 2021-01-09 18:01:03 -08:00
Leonardo Zide a0867c9b80 Framebuffer cleanup. 2021-01-09 17:57:24 -08:00
Leonardo Zide dbb4c9e44b QGLWidget cleanup. 2021-01-08 11:25:24 -08:00
Leonardo Zide 725901e97e Fixed Qt4 error. 2021-01-03 11:26:47 -08:00
Leonardo Zide 72763ddc11 Create offscreen context at startup and reuse it. 2021-01-01 18:41:28 -08:00
Leonardo Zide 3358553e1d Moved clear functions to context. 2020-12-29 15:32:11 -08:00
Leonardo Zide 129e0f886f Compile fix. 2020-12-28 17:54:24 -08:00
Leonardo Zide 4ed04e4e25 Use an offscreen buffer when saving images from the command line. 2020-12-28 17:30:41 -08:00
Leonardo Zide 4e6cbca31c Switch to QOpenGLWidget. 2020-12-27 13:05:55 -08:00
Leonardo Zide 2390feb88f Deleted unsafe default operations. 2020-05-03 15:39:39 -07:00
Leonardo Zide a5fde91ee9 Configurable fade color. 2020-04-25 12:16:37 -07:00
Leonardo Zide 4e6306a649 Translucent step fade. 2020-04-19 20:21:18 -07:00
Leonardo Zide 90f1336a48 Scoped enums and constexpr. 2020-03-22 13:44:20 -07:00
Leonardo Zide 5854cfce89 Added wrapper for glDepthMask. 2019-11-09 18:11:25 -08:00
Leonardo Zide 0abc4a258a Enabled polygon offset (with a smaller offset) for opaque triangles so they don't z fight with lines. 2019-02-23 11:33:39 -08:00
Johannes SixtandLeonardo Zide 31703618c3 Reduce z-fighting when translucent walls are touching opaque walls. (#303)
* Move GL calls around drawing of translucent meshes to lcContext.

* Reduce z-fighting when translucent walls are touching opaque walls.

This fixes issue #301.
2019-02-23 10:56:38 -08:00
Leonardo Zide dfa1a66906 Added outline to the view sphere. Closes #281. 2019-01-21 16:54:10 -08:00
Leonardo Zide 6077400b3c Round viewsphere highlight. 2019-01-19 20:04:08 -08:00
Leonardo Zide c8102034f9 Added view sphere highlight. 2019-01-12 17:43:23 -08:00
Leonardo Zide b77b9aac5c Replaced view cube with a sphere. 2018-10-28 17:59:01 -07:00
Leonardo Zide 75ed98b88d Added string cache. 2018-09-23 19:31:33 -07:00
Leonardo Zide b30ffd1b59 Initial implementation of in place submodel editing. 2018-03-29 10:20:36 -07:00
Leonardo 50b3e95215 Reuse the same FBO when creating new preview images. 2017-12-29 06:50:18 -08:00
Leonardo 804e0f6f53 Save MSAA images. Fixes #101. 2017-12-26 10:19:20 -08:00
leozide c924b90955 Converted include guards to pragma once. 2017-07-19 14:20:32 -07:00
Leonardo Zide 82a4afb7a9 OpenGL ES cleanup. 2017-04-26 22:24:54 -07:00
leozide f7d61f33ce Updated code to use nullptr and override. 2017-04-13 17:26:40 -07:00
Leonardo Zide b9726a2a99 Reorganized scene and context classes. 2017-04-01 16:53:54 -07:00
Leonardo Zide 57b8732ed6 Context state cleanup. 2017-03-25 12:29:28 -07:00
leozide eb7a8a86de Removed SetTextureMode. 2017-03-24 18:36:58 -07:00
Leonardo Zide c85f0f7eea Disable normals for unlit passes. 2017-03-24 09:34:53 -07:00
Leonardo Zide f99a093c7a Draw edge lines unlit. 2017-03-22 23:35:02 -07:00
Leonardo Zide 50b9ab1984 Faster mesh sorting. 2017-03-19 22:59:55 -07:00