Commit Graph

35 Commits (668fd219cc7d18ca3887ea0125a694edaea02747)

Author SHA1 Message Date
Hleb Valoshka c588f80824 OpenGL ES 2.0 initial support 2020-06-15 19:27:46 +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 fb4bede3d1 Allow building without NLS 2020-02-15 00:20:13 +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 f0c568dbf3 Rename variable mips to mip to fix compilation on mips64
Based on the patch from Debian
2019-08-16 09:49:01 +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 eab70c96cb Fix more coverity issues
Mostly uninitialized variables plus one memory leak
2018-10-30 23:52:19 +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 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
Nils Larsson 35419855ea Added missing <cstring> include. 2018-09-22 23:41:56 +03:00
Andrew Tribick 207823b1d8 Patch to fix valgrind errors and gcc warnings from Daniel K.O.
Use #ifdef FOO instead of #if FOO
Unused function parameter names
Uninitialised member in FrameTree
Memory read after deallocation in ReferenceFrame
Unmatched new[]/delete[] in StarDatabase
Uninitialised temperature in StarDatabase
Uninitialised member of RenderListEntry: isOpaque
Fix for convoluted code in renderer
2012-04-26 19:50:22 +00:00
Chris Laurel 08ace926d8 Committed fixes from Nils Larsson:
- Updated call to png_set_gray_1_2_4_to_8 to png_set_expand_gray_1_2_4_to_8 (new PNG API)
- Eliminated unnecessary Color:: scope
2010-09-17 16:56:37 +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
Da Woon Jung 6916a937aa Mac Qt patch 2008-01-18 06:08:18 +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 df13211959 Removed unused parameters 2006-09-16 15:14:23 +00:00
Toti 3eb580abe9 Commented out unused variables that were causing compiler warnings 2006-09-12 12:56:47 +00:00
Christophe Teyssier b27aafff15 Added ogg/theora video capture to GTK and KDE.
Based on ogg/theora patch for GTK by William K. Volkman
<wkvsf@users.sourceforge.net>
2006-07-24 18:31:25 +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
Christophe Teyssier 2318e423a3 Adding support for i18n with gettext. 2005-07-19 21:31:04 +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
Chris Laurel 968915bf40 Added #include of algorithm in order to satisfy some gcc installations. 2003-12-01 08:30:39 +00:00
Chris Laurel 85ce059bbc Close PNG files after loading them into memory. 2003-10-08 06:57:22 +00:00
Chris Laurel 6a688c6601 Added missing headers that some compilers were complaining about. 2003-09-05 17:00:45 +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
Chris Laurel 5cef871113 Separate texture code into Texture and Image classes. 2003-07-27 08:17:57 +00:00