Commit graph

123 commits

Author SHA1 Message Date
Leonardo Zide
90b8409017 Better way of drawing the view sphere outline. 2019-01-22 14:34:44 -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
19680a199b Moved shader code to separate files. 2018-11-22 16:13:02 -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
b09439d97d Fixed alpha value of translucent parts in PNG files. Fixes #241. 2018-07-04 11:19:15 -07:00
Leonardo Zide
b30ffd1b59 Initial implementation of in place submodel editing. 2018-03-29 10:20:36 -07:00
Leonardo Zide
232ece5e6b Only check QGLFormat::samples when sampleBuffers is enabled. Fixes #196. 2018-02-24 18:22:53 -08:00
Leonardo Zide
ce8a830d40 Fixed alpha of the opaque parts of texmap translucent parts. 2018-01-12 21:44:49 -08:00
leo
c5a232b8c9 Fixed missing depth buffer when AA is disabled. 2017-12-30 13:03:47 -08:00
Leonardo Zide
5d637b1cad macOS fixes. 2017-12-30 12:12:27 -08:00
Leonardo Zide
3ef029d6d2 Fixed GLES. 2017-12-30 12:04:12 -08: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
Leonardo Zide
33f33af0aa iOS fixes. 2017-12-06 22:08:56 -08: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
c34810c084 Static analysis fixes. 2017-04-02 17:15:09 -07:00
Leonardo Zide
b9726a2a99 Reorganized scene and context classes. 2017-04-01 16:53:54 -07:00
leozide
e1e0a0b812 Fixed warning. 2017-03-27 12:16:44 -07:00
Leonardo Zide
57b8732ed6 Context state cleanup. 2017-03-25 12:29:28 -07:00
Leonardo Zide
155fa7cdc2 Removed redundant glBlendFunc calls. 2017-03-25 00:03:17 -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
leozide
d6efc97089 Removed SetLightingMode. 2017-03-17 15:53:26 -07:00
Leonardo Zide
acd5a485f0 Added a decal material to fix the texmap extension. 2017-03-12 13:51:14 -07:00
Leonardo Zide
e645228128 Fixed stud grid color. 2017-03-12 12:40:59 -07:00
Leonardo Zide
61e803c161 Added fake lighting shader. 2017-03-11 16:47:21 -08:00
Leonardo Zide
043246fbe6 Changed normal format for compatibility. 2017-03-05 22:14:50 -08:00
leozide
7e3f572b8e Added shaders for each material/lighting combination. 2017-02-28 15:20:34 -08:00
Leonardo Zide
3d1efcabec Added room in the meshes for normals. 2017-02-18 11:12:35 -08:00
Leonardo Zide
b2cb923e28 Fixed shaders on desktop GL. 2017-02-11 12:43:47 -08:00
Leonardo Zide
6b3869ce90 Fixes for iOS. 2017-02-11 12:41:00 -08:00
Leonardo Zide
0f2e808477 Fixed printing. 2017-02-11 09:46:21 -08:00
Leonardo Zide
e7fe26d2a4 Stop caching the GL viewport since OSX changes it when making a context current. 2017-01-29 19:31:30 -08:00
Leonardo Zide
eb1bc1cd31 First pass of the new parts list widget. 2016-12-16 09:14:19 -08:00
Leonardo
a74e51cd04 Fixed line endings. 2016-10-05 14:28:52 -07:00
Leonardo
60712b6bd1 Fixed translucent triangles not drawing. 2016-09-22 08:06:41 -07:00
leo
6e602174c0 Experimental conditional line support. 2016-08-22 01:11:32 +00:00
leo
9c8a602a09 Fixed accessing const arrays as non-const. 2016-04-19 18:37:50 +00:00
leo
510d190483 Support dynamic piece meshes. 2016-02-19 17:53:54 +00:00
leo
ecef3ce47d Fixed texmap extension. 2015-12-05 19:56:25 +00:00
leo
6b86d13042 Fixed rotate overlay drawing. 2015-05-25 18:02:57 +00:00
leo
f001916a05 Fixed camera name not drawing correctly. 2015-05-25 17:36:22 +00:00
leo
307ed62ceb Added mesh LOD. 2015-05-24 04:36:25 +00:00
leo
77424ccf16 Fixed wrong GLSL qualifier. 2015-05-17 16:23:14 +00:00
leo
7f7a93e015 Added shader support. 2015-05-16 23:04:35 +00:00
leo
7170c1d0ee GL extensions cleanup. 2015-05-09 19:54:29 +00:00
leo
77e103264d Set colors through the context. 2015-05-04 00:51:41 +00:00
leo
9cf0f11445 Clear index buffer after destroying it. 2015-04-30 22:39:27 +00:00
leo
170b7fc775 Changed the vertex and index buffer types to a class. 2015-04-30 22:35:40 +00:00
leo
20945362e5 Create a static buffer for the move overlay. 2015-04-27 00:47:31 +00:00
leo
aa861cd036 Use a single vertex buffer for all pieces. 2015-04-26 18:14:33 +00:00
leo
ba86509804 Removed more places where the vertex pointer was getting set directly. 2015-04-16 00:23:25 +00:00
leo
81fc732158 Use a vertex buffer for the grid. 2015-04-14 04:14:10 +00:00
leo
406182db5d Fixed option to disable drawing lines. 2015-03-18 02:30:54 +00:00
leo
c670893deb Rendering optimizations. 2015-02-08 18:54:51 +00:00
leo
21d622bd59 Merged main window classes. 2015-01-25 23:04:39 +00:00
leo
1de2bffb73 Fixed valgrind errors. 2015-01-08 05:40:22 +00:00
leo
788f0bf9e4 Added support for drawing submodels. 2014-12-24 15:52:52 +00:00
leo
a63743c73f Reorganized drawing functions. 2014-11-23 23:48:56 +00:00
leo
5834587204 Support gradient and texture backgrounds in the preview widget. 2014-10-23 22:03:50 +00:00
leo
55e7cad5e1 Rewrote HTML export. 2014-10-13 03:43:33 +00:00
leo
50a018f1a7 File load cleanup. 2014-10-12 17:34:18 +00:00
leo
ebd7c4be5d More descriptive error message when failing to save images. 2014-10-12 02:30:34 +00:00
leo
d6ceb6bfdc Simplified the Save Image Dialog. 2014-10-11 23:26:23 +00:00
leo
54beb09a97 New selection indicator. 2014-04-20 01:50:41 +00:00
leo
fcee2cfd7a Added context default state. 2014-04-16 00:29:54 +00:00
leo
c435eae17b Added graphics context class. 2014-04-14 03:20:16 +00:00