Andrew Tribick
86f2aab284
Remove glcontext.*
2021-12-29 14:48:36 +01:00
Hleb Valoshka
9abfb5c951
LODSphereMesh compatibility with OpenGL ES and cleanup
...
Important points:
* Use glBufferSubData instead of glMapBuffer, because
- the former is usually faster
- the latter is not supported by OpenGL ES 2
* Always use VBO, it should be faster in this usage pattern
* Remove debug code, I doubt we will ever use it
2020-05-06 16:20:27 +03:00
Hleb Valoshka
b09b48b1ab
Disable GLContext usage as it does nothing now
2019-06-20 13:03:02 +03:00
Hleb Valoshka
f3a73dae71
Move math code into celmath namespace
2019-05-20 10:48:04 +03:00
Hleb Valoshka
81aa6f43bc
Remove support for old vector math
2019-03-16 18:21:50 +03:00
Hleb Valoshka
ea3988b6f3
Remove unused GLContext
2018-12-11 20:32:13 +03:00
Hleb Valoshka
eab70c96cb
Fix more coverity issues
...
Mostly uninitialized variables plus one memory leak
2018-10-30 23:52:19 +03:00
Hleb Valoshka
85829063e0
Finish eigenization
2018-10-07 13:38:24 +03:00
Hleb Valoshka
b082d5f47f
Automatically convert to c++11 using clan-tidy
...
+ manual cleanups
2018-09-22 23:42:02 +03:00
Hleb Valoshka
882e4ecf28
fix whitespaces and indents
...
trailing spaces are removed
tabs are replaced with 4 spaces
# Conflicts:
# src/celengine/cmdparser.cpp
# src/celengine/command.cpp
# src/celestia/celestiacore.cpp
# src/celestia/celestiacore.h
# src/celestia/qt/qtappwin.cpp
# src/celestia/qt/qtglwidget.cpp
# src/celestia/win32/winmain.cpp
2018-09-22 23:41:57 +03:00
Chris Laurel
31a31d4e2f
- Moved cmod code into a separate module celmodel.
...
- Updated cmodtools to use celmodel.
- Improved 3ds file loader to support multiple materials per mesh.
2010-02-05 20:05:18 +00:00
Chris Laurel
1843572c97
Enabled vertex buffer objects for planet rendering.
2009-08-06 02:54:03 +00:00
Chris Laurel
441be38992
Increased maximum texture count for GLSL rendering.
2007-05-15 13:14:34 +00:00
Chris Laurel
e2702dedae
Use an index buffer when GL_vertex_buffer_object extension is present.
2004-02-24 12:13:48 +00:00
Chris Laurel
d0b28cf317
Enabled use of ARB_vertex_buffer_object extension for rendering planet spheres.
2004-02-24 11:43:28 +00:00
Chris Laurel
716c10ece4
Attempted to improve performance by using the ARB_vertex_program_object
...
extension for planet meshes. Disabled for now, as it doesn't seem to work yet. As part of this change, the planet vertex data is now interleaved rather than being spread across several separate arrays. This should make better use of the cache.
2004-02-24 10:16:48 +00:00
Chris Laurel
df98cc39cd
Improved mesh support:
...
- Use more efficient and flexible internal representation
- Added code to convert 3DS meshes to new structure
- Support new Celestia mesh format (ASCII-only right now)
2004-02-17 09:58:52 +00:00
Chris Laurel
b9da43799b
Made virtual textures actually work, modulo LOD calculation and eviction.Delegated the task of computing sphere LODs to LODSphereMesh.
2003-07-30 17:07:46 +00:00
Chris Laurel
c0c96a44f2
Vastly improved culling for sphere patches by using a hierarchy of bounding spheres.
2003-07-23 18:07:20 +00:00
Chris Laurel
c8f5f22446
Fix support for ARB_vertex_program render path--requires passing context around, and abstraction of vertex attribute array calls.
2003-03-28 18:39:23 +00:00
Chris Laurel
698712ad30
Handle different sized base, bump, and specular mask textures correctly.
2002-08-20 09:09:35 +00:00
Chris Laurel
5485de6217
Added support for texture splitting.
2002-02-25 20:29:32 +00:00
Chris Laurel
4ac519e781
Changed class definition so that LODSphereMesh is no longer a subclass of Mesh.
2002-02-08 21:52:59 +00:00
Chris Laurel
e6d5bad5da
Improved performance by culling patches recursively and switching to smaller patch size.
2002-02-08 04:08:57 +00:00
Chris Laurel
38e79736c5
Reorganized source tree into multiple directories.
2001-11-28 01:50:04 +00:00