Commit Graph

22 Commits (edbc16417df50f7f56c151b7fea0b68815806361)

Author SHA1 Message Date
Hleb Valoshka 74bbe9fd1c Add Vec2ShaderParameter class for vec2 glsl type 2021-03-13 00:35:33 +02: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 add171b6fa Fix error reporting when shader linking failed 2019-11-11 13:48:37 +03:00
Hleb Valoshka 5f9fa3c2d4 Add Mat3/4ShaderParameter classes 2019-07-02 10:29:31 +03:00
Hleb Valoshka 9745b125f3 Support for static shaders in ShaderManager 2019-06-21 13:57:04 +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 73a869c137 Use core OpenGL2 functions instead of their ARB versions 2018-10-07 20:45:01 +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
cartrite 42281e4a53 Replaced lines that refered to celengine/gl.h with GL/glew.h
Added code for glewinit so all render modes work in kde
updated makefile includes path to use GL/glew.h
Removed glext from kde and gtk builds
Removed celengine/gl.h from celestia.pro
2009-08-15 17:51:15 +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 157b720854 Removed more code that used the old vector classes. 2009-08-05 21:13:29 +00:00
Chris Laurel 5de792f64a Eigenized lighting and shadow calculations in renderer. 2009-07-18 05:50:56 +00:00
Chris Laurel 34d762d8e9 Fixed compiler warnings on Mac OS X, mostly related to different type of
GLhandleARB on that platform.
2009-01-29 01:14:16 +00:00
Chris Laurel 9294531f5f Fixed small memory leak in glshader.cpp. 2006-09-22 05:58:02 +00:00
Chris Laurel 19a5e12f11 GLSL shader fixes:
- Changed int constants to floats so shaders compile on ATI drivers
- Dump error messages to shaders.log along with shader source
- When shader compilation fails, subsitute an error shader that outputs red pixels
2004-10-27 09:44:41 +00:00
Chris Laurel 6f8031d387 Turned on OpenGL 2.0 / GLSL render path. 2004-10-15 09:55:12 +00:00
Chris Laurel 62fdac717f Continued work on GLSL shaders: added support for up to four light sources, specular reflection, and specular mask. 2004-10-13 16:03:01 +00:00
Chris Laurel af2d2e6195 Added module shadermanager.cpp, which uses GLSL and shader metaprogramming to build shaders for all possible combinations of rendering state (light count, specular, normal maps, etc.) 2004-10-12 18:12:34 +00:00
Chris Laurel c03e533980 Added GLShader class, a C++ wrapper around OpenGL 2.0's high level shading language objects. 2004-10-11 02:18:58 +00:00