Hleb Valoshka
14af83a391
Implement Logger to replace raw cerr/cout and DPRINTF usage
2021-12-20 17:54:50 +03:00
Hleb Valoshka
f46a00f4f1
Remove automatic mipmap mode, as it duplicates the default mode
2021-11-29 12:26:19 +03:00
Hleb Valoshka
7228d408e0
Remove condition which is always true
2021-11-29 12:26:19 +03:00
Hleb Valoshka
8113dae087
Remove GLU usage in texture.cpp
2021-11-29 12:26:19 +03:00
Hleb Valoshka
cd2293f6c6
Refactor texture caps
2021-11-29 12:26:19 +03:00
Andrew Tribick
ec232b7fad
Fix for debug builds
...
- Include fmt/ostream.h in debug.h to allow formatting filesystem paths
- Avoid including headers via debug.h on non-debug builds
2021-10-26 10:17:48 +03:00
Hleb Valoshka
42790d9013
Replace deprecated fmt::fprintf calls
2021-10-19 19:35:23 +03:00
Hleb Valoshka
bece12f6e4
Refactor Image class and image capture
...
* use GL_MESA_pack_invert to flip captured buffer
* move enum PixelFormat to own file
* use PixelFormat instead of GL formats in Image
* provide captureImage() in CelestiaCore
* use CelestiaCore methods to capture images in Qt UI
2021-06-16 14:15:32 +03:00
Hleb Valoshka
1c668d3d7f
Fix warnings reported by clang/gcc
2020-06-20 10:11:09 +03:00
Hleb Valoshka
c588f80824
OpenGL ES 2.0 initial support
2020-06-15 19:27:46 +03:00
Hleb Valoshka
7e499f8fd9
Add FramebufferObject::isSupported()
2020-05-05 16:51:57 +03:00
Hleb Valoshka
a75312e748
Remove EXT/ARB suffixes
...
CubeMaps & BGR(A) are core feature in 2.1
FBO variants are handled by libepoxy
2020-05-05 16:51:57 +03:00
Hleb Valoshka
bd7f9ebc9b
Use libepoxy instead of GLEW
...
Unlike GLEW libepoxy supports OpenGL ES and better handles cases with
functions provided by different extensions, e.g. the same functions
provided by vendor/EXT/ARB/core.
2020-03-26 11:24:56 +03:00
Hleb Valoshka
15bf42104a
Use core/FBO function to generate mipmaps instead of glu
2020-03-23 09:27:10 +03:00
Hleb Valoshka
fb4bede3d1
Allow building without NLS
2020-02-15 00:20:13 +03:00
Hleb Valoshka
32eaa68d0a
Remove fixed pipeline calls
2019-12-05 11:37:33 +03:00
Li Linfeng
9c371c891c
define macros for print levels and avoid direct use of fmt::printf
2019-08-31 13:32:44 +08:00
Hleb Valoshka
b6b543438d
Port to filesystem API
2019-08-16 18:11:24 +03:00
Hleb Valoshka
de1a8d181e
Remove unneeded celengine/celestia.h
2019-07-09 23:38:41 +03:00
Hleb Valoshka
5d3452e011
Cleanup png and jpeg related code
...
libpng and libjpeg are mandatory now
2019-04-03 00:18:02 +03:00
Hleb Valoshka
37b964ab50
Always use jpeg and png libs, drop CGBuffer.h
2019-02-09 00:21:00 +03:00
Hleb Valoshka
a185a83373
Cleanup definitions for jpeg and png support
...
No more support for ancient libpng
2019-02-09 00:21:00 +03:00
Hleb Valoshka
c80a1520ac
Use config.h on all platforms
2019-02-09 00:21:00 +03:00
Hleb Valoshka
d7839beaf2
Fixing nonstandard types found by mingw-w64-i686
2018-11-08 11:06:17 +03:00
Hleb Valoshka
1fda8e35f0
Fix warnings found by PVS
...
- 1 copy-paste error
- 1 nullptr dereference
- fixed self-assignment in Mesh::VertexDescription::operator=
- a few missing delete
- all other are checks for nullptr after new
2018-10-28 22:00:27 +03:00
Hleb Valoshka
363abc40f3
Use libfmt instead of C-style & iostream workflow
...
TODO: check StarDatabase::getStarName
2018-10-17 22:19:03 +03:00
Hleb Valoshka
72a39d0e0a
Disable unused code
2018-10-14 18:14:33 +03:00
Hleb Valoshka
73a869c137
Use core OpenGL2 functions instead of their ARB versions
2018-10-07 20:45:01 +03:00
Hleb Valoshka
73638c116d
Remove basictypes.h and use standard c++11 types
2018-09-22 23:42:03 +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
5a5b06481f
Fix the most serious fixes found by coverity
...
… resource leaks, null pointers dereference
2018-09-22 23:41:58 +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
c374f77f5a
Enabled anisotropic filtering for planet textures (when supported by hardware.)
2009-08-17 23:45:45 +00:00
Chris Laurel
f5d97be5c9
More GLEW-related cleanup.
...
- Added missing GLEW_STATIC define to VC++ project file
- Fixed Qt4 build to use GLEW
- Stripped out more references to old glext functions
- Fixed miscellaneous compiler warnings.
2009-08-15 00:48:42 +00:00
Chris Laurel
9d373fd041
Switched from using custom GL extension handling code to GLEW library.
2009-08-14 22:39:54 +00:00
Chris Laurel
abeb350f5b
Eigen conversion:
...
- Eigenized locations and some cube map code in texture.cpp
- Removed eigenport.h include from completely converted modules
2009-07-24 23:02:23 +00:00
Fridger Schrempp
222ee6b1a5
major upgrade of globular cluster code
2009-02-03 20:21:36 +00:00
Da Woon Jung
6916a937aa
Mac Qt patch
2008-01-18 06:08:18 +00:00
Chris Laurel
a1f4551b0a
- Switched to using ARB_texture_cube_map instead of obsolete EXT_texture_cube_map
...
- Changed fade distance for constellation labels
- Enabled fading for constellation boundaries
- Prevented rendering planets as points in daytime sky
- Enabled REFMARK in render.cpp
- Removed dead code
2007-12-30 20:11:26 +00:00
Christophe Teyssier
ea2b8a899f
Added translations of some console messages.
2007-09-30 20:28:11 +00:00
Chris Laurel
a3bf034f82
Fixed some more DXT5nm related issues:
...
- Check for dxt5nm file extension to decide whether an image file contains a DXT5nm format file
- Make compressed normal maps work for meshes
- Avoid using dxt5nm textures with non-OGL2 render paths.
2006-10-22 00:13:18 +00:00
Toti
152627ae29
Disabled blocks of code that caused 'defined but not used' compiler warnings
2006-09-12 21:59:05 +00:00
Toti
1cce187e70
Fixed initialization order warnings
2006-09-12 14:24:55 +00:00
Chris Laurel
75e4ce8ec4
Added support for compressed normal maps.
2006-09-01 18:19:26 +00:00
Chris Laurel
7da85df98b
Fixed bug that broke virtual texture tiles (or any other textures without mipmaps.)
2006-05-08 16:35:47 +00:00
Chris Laurel
29b04dbb7e
Added support for non power of two textures on newer graphics cards.
2006-04-27 17:15:18 +00:00
Chris Laurel
2664efe9e8
Added a hasAlpha() method to query whether a texture has an alpha channel.
2004-02-22 01:35:52 +00:00
Bob Ippolito
79dd18e5c5
Fixed most of the gcc 3.3 warnings
2004-01-11 05:19:05 +00:00
Chris Laurel
c4322cbdb2
Changed error message printing to use log console.
2003-09-02 16:30:13 +00:00
Chris Laurel
8bf22f10a8
Added support for BGRA images.
2003-08-07 16:51:43 +00:00