Tomasz Kapuściński
8deeddffe0
Corrected OpenGL 2.1 engine's error spam and added experimental terrain shadowing
2016-03-10 10:50:54 +01:00
krzys-h
9ceaa0055d
Updated quality shadows option
2016-03-07 18:49:24 +01:00
Tomasz Kapuściński
e6a2fc9671
Rewritten shadow mapping implementation
2016-03-07 18:33:19 +01:00
MrSimbax
9679546988
Fix crash on pasting from clipboard
...
I don't know why it didn't happen for anyone else, but according to https://wiki.libsdl.org/SDL_GetClipboardText : "Use this function to get UTF-8 text from the clipboard, which must be freed with SDL_free().". MSVC detected some heap corruption because of free(text);
2016-03-06 23:21:04 +01:00
Tomasz Kapuściński
9effa308ce
Small change in enabling/disabling shadow mapping
2016-03-06 20:25:50 +01:00
Tomasz Kapuściński
d3ccdebd9f
Added names to graphics devices
2016-03-06 19:32:37 +01:00
krzys-h
f67d76fed4
Merge branch 'dev' into dev-right-click-camera
2016-03-05 21:09:00 +01:00
krzys-h
4e50f36214
Merge branch 'dev' into dev-right-click-camera
2016-03-02 20:00:57 +01:00
Tomasz Kapuściński
5fa3ed63b1
Compilation fix
2016-02-29 16:51:18 +01:00
Tomasz Kapuściński
78e877d9a8
Changes in framebuffer creation, framebuffer error detection and small other graphical things
2016-02-29 16:42:01 +01:00
Tomasz Kapuściński
0bb5f96d7a
Changed depth of shadow map texture to 32
2016-02-28 23:17:25 +01:00
krzys-h
b97070bbad
stupid whitespace
2016-02-28 20:57:39 +01:00
krzys-h
282cd65a2d
Fix reloading changed ground spot textures ( closes #404 )
2016-02-28 20:22:05 +01:00
krzys-h
643c40e778
Revert "Get rid of "blacklisting shadowXX.png" logs"
...
This disabled loading of those textures completly
This reverts commit 60f0a7b45c
.
#BlamePiotrdzAgain
2016-02-28 20:17:35 +01:00
Tomasz Kapuściński
14d6ee74a3
Removed dirt from water surface
2016-02-27 15:29:41 +01:00
Tomasz Kapuściński
d39604cb0e
Small change in context profile selection and more info about graphics devices in help switch
2016-02-27 15:25:23 +01:00
krzys-h
9c32f705b6
FIXED ALL GOLD EDITION LIGHTING PROBLEMS!! Yay!
2016-02-21 15:35:52 +01:00
krzys-h
dba944740f
Removed unused members of COldObject
2016-02-21 15:16:30 +01:00
krzys-h
63c7b83d82
Removed unused object effect lights
2016-02-21 14:51:09 +01:00
Mateusz Przybył
7b286d77b5
Fix "std::max" errors in MSVC
2016-02-21 14:29:09 +01:00
Cezary Parkowski
5542b7deb7
Another fixes to sound samples in-code documentation
2016-02-19 17:43:55 +01:00
krzys-h
3de6794835
Allow both right and middle mouse button for camera movement
2016-02-19 17:27:55 +01:00
krzys-h
700f3ad448
Edge camera speed fix
2016-02-19 17:22:20 +01:00
krzys-h
b15666f48e
Restored old camera scroll as a config option
2016-02-19 17:14:08 +01:00
krzys-h
1efa4b132c
Fixed mouse invert settings; removed camera scroll setting
2016-02-19 17:14:08 +01:00
krzys-h
47d39e5b22
Right click camera; minor CCamera cleanups
2016-02-19 17:14:08 +01:00
krzys-h
d9ccd6edf3
Camera smoothness adjustment
2016-02-19 17:14:08 +01:00
krzys-h
f3820bc81a
Fixed using SOUND_CLICK instead of SOUND_NONE, some sound documentation fixes
2016-02-19 17:12:27 +01:00
Cezary Parkowski
42db13ee9e
Updated sound samples doCOMMENTation
2016-02-19 16:33:22 +01:00
Tomasz Kapuściński
739f90e38e
Reverted changes to OpenGL version detection
2016-02-18 20:51:02 +01:00
krzys-h
0256b1aa39
Add logging in font loading
2016-02-18 18:07:29 +01:00
krzys-h
1b21c387bb
Fixed colobot-lint warnings
2016-02-18 12:20:40 +01:00
Tomasz Kapuściński
0ad53cc0d8
Fix compilation error
2016-02-18 01:36:37 +01:00
Tomasz Kapuściński
0eaf3a9ac4
Added rendering modes and shaders to OpenGL 3.3 engine and fixed problem with detecting extensions in core profile
2016-02-18 00:57:37 +01:00
Tomasz Kapuściński
8414ae794d
Corrected a mistake in -glprofile argument parsing
2016-02-17 23:04:34 +01:00
krzys-h
5c9bdde587
Fixed lag on saving programs
2016-02-16 12:54:08 +01:00
krzys-h
999b2b85a4
Prevent possible crashes related to not releasing pause
2016-02-16 12:26:52 +01:00
krzys-h
a583b5ed1d
Fixed another crash with focus pause
2016-02-16 12:26:52 +01:00
Tomasz Kapuściński
cc973dab6f
Added settings and command line switches to request OpenGL context version and profile
2016-02-15 23:08:56 +01:00
Tomasz Kapuściński
0154af39aa
Corrected compilation problem (GL_MAX_FRAMEBUFFER_SAMPLES)
2016-02-15 20:59:09 +01:00
Tomasz Kapuściński
517d6f069a
Reimplemented drawing primitives in OpenGL 3.3 engine
2016-02-15 20:31:32 +01:00
Tomasz Kapuściński
79c21f6676
Moved LightLocations to outside of UniformLocations
2016-02-15 20:05:25 +01:00
krzys-h
2b94de44a8
Incresed editor double click time, closes #688
2016-02-15 19:08:09 +01:00
krzys-h
831eca921b
Fixed possible crash with background pause
2016-02-15 19:05:32 +01:00
krzys-h
84e0220ea6
Fix code copy start range, closes #720
2016-02-14 19:07:16 +01:00
krzys-h
5e19f598b9
Fix newline at end of file...
2016-02-13 21:37:31 +01:00
krzys-h
a3477edc8e
Pause game when in background, closes #609
2016-02-13 21:35:01 +01:00
krzys-h
c93fa12552
Fixed TitaniumOre and UraniumOre not being destroyable, closes #635
2016-02-13 21:15:15 +01:00
krzys-h
9b5d9ed893
Fixed some manual control being allowed in code battles, closes #644
2016-02-13 21:05:07 +01:00
krzys-h
8ce5c3ab4c
Fixed level scale unit not being reset, closes #666
2016-02-13 20:46:03 +01:00
krzys-h
d06516507a
Fixed game not being unpaused if you leave code battle without starting, closes #679
2016-02-13 20:40:23 +01:00
krzys-h
254891d8f1
Save log to file, closes #696
2016-02-13 20:32:26 +01:00
krzys-h
6dc7d892b7
Fix indentation on copying code, closes #699
2016-02-13 20:14:34 +01:00
krzys-h
463992b2c1
Fixed ExchangePost info being loaded twice ( closes #671 )
2016-02-13 19:54:56 +01:00
krzys-h
8fb13816bf
One more code style fix
2016-02-13 14:15:11 +01:00
krzys-h
977607a934
Updated license headers
2016-02-13 14:11:30 +01:00
krzys-h
55412842df
Fixed some code style warnings
2016-02-13 13:46:56 +01:00
Tomasz Kapuściński
6b7e6cbc75
Added rendering modes and implemented additional OpenGL 2.1 shaders
2016-02-13 03:54:49 +01:00
Tomasz Kapuściński
bf8916b9eb
Changes in detection of graphics hardware capabilities
2016-02-12 16:14:29 +01:00
Krzysztof Dermont
c780148b77
Fix crash related to TTF and PHYSFS
...
TTF fonts will be loaded to memory instead of file pointers
Added new class CSDLMemoryWrapper that loads data from PHYSFS into memory block
and closes file after. This closes issues #519 , #708 and #619
2016-02-11 16:12:16 +01:00
Tomasz Kapuściński
b6faadca03
Rewritten OpenGL 2.1 engine's two-sided lighting
2016-02-11 15:04:07 +01:00
Tomasz Kapuściński
32b480b226
Rewritten lighting in OpenGL 2.1 engine
2016-02-10 23:38:49 +01:00
Tomasz Kapuściński
898001e065
Changed CGL33Device requirement to OpenGL 3.2
2016-02-10 22:50:40 +01:00
Tomasz Kapuściński
447b466d6e
Optimizations in graphics engines
2016-02-10 21:40:41 +01:00
Krzysztof Dermont
8a0cda1c2a
Fix issue #648
...
Should be proper fix
2016-02-10 17:06:02 +01:00
Krzysztof Dermont
12e3724319
Implement issue #606
...
Add button to open SatCom in main menu
2016-02-10 17:04:26 +01:00
Krzysztof Dermont
a611ef3d50
Fix issue #711
...
Update text input handling based on focus event
2016-02-10 17:03:37 +01:00
tomangelo2
1fc9186aaf
Fixes for issue #648 and #631
2016-02-09 20:05:04 +01:00
krzys-h
bdf99f3de5
Fixed SatCom music not starting with immediat SatCom enabled
2016-02-05 20:38:03 +01:00
Tomasz Kapuściński
91f897057e
Another fix for visibility distance
2016-01-31 01:07:34 +01:00
Tomasz Kapuściński
a924cf6a75
Fix for fog distance
2016-01-31 00:38:24 +01:00
Tomasz Kapuściński
15c5e69199
Fix for visibility distance setting
2016-01-30 23:58:26 +01:00
Tomasz Kapuściński
12067c1b9f
Optimized light updating in CGLDevice
2016-01-30 18:51:13 +01:00
krzys-h
f6db624d00
Fix occasional segfault in drop zone after object destruction
2016-01-30 18:01:38 +01:00
krzys-h
6bdebcf8e4
Fix delete() CBot command
2016-01-30 17:42:35 +01:00
Tomasz Kapuściński
9db943b820
Optimized matrix operations in CGLDevice
2016-01-30 17:41:11 +01:00
krzys-h
9749419b87
Fixed LevelController
2016-01-30 17:24:47 +01:00
krzys-h
e0fcaf3a64
Disable logging to file
...
This causes the log to not be displayed in console, and the commit that was supposed to fix that was reverted because it fails to compile on our build server for some reason
2016-01-30 16:51:12 +01:00
Tomasz Kapuściński
05e19f47c3
Corrected MSAA support detection
2016-01-29 12:02:36 +01:00
krzys-h
f3094312b2
Fix startup crash with disabled autosave, closes #705
2016-01-28 20:36:55 +01:00
krzys-h
223d17843e
Fixed NuclearPlant being available without research, closes #662
2016-01-24 22:18:04 +01:00
krzys-h
76c43cddb2
Rename CSoundInterface::AddMusicFiles to CacheCommonMusic
2016-01-24 21:31:45 +01:00
krzys-h
5f01153c5f
Fixed joystick switch crash; small bugfix to joystick UI
2016-01-24 20:48:07 +01:00
krzys-h
7a521fbc90
Joystick configuration, closes #499
...
Not yet tested as I don't have a joystick currently with me, but should work fine
2016-01-24 17:36:25 +01:00
krzys-h
40352be5cc
Add language switcher to the settings UI, closes #506
2016-01-24 16:03:24 +01:00
krzys-h
6d8a5bab31
Removed system mouse option
...
Not really needed, as it is an SDL cursor not system cursor, which is no better than ours
2016-01-24 15:24:59 +01:00
krzys-h
b96305060b
Fix colobot-lint warnings
2016-01-23 21:59:02 +01:00
krzys-h
84521ef08a
Fixed CBotClass::FreeLock crash on some compilers
2016-01-23 21:33:58 +01:00
krzys-h
9bece23ede
Fixed clang build
2016-01-23 21:24:42 +01:00
krzys-h
9ff978155c
Fix crash with CBot string functions out of range ( closes #704 )
2016-01-23 21:07:19 +01:00
krzys-h
048534e89d
Fixed some errors reported by colobot-lint
2016-01-23 20:58:03 +01:00
krzys-h
344cda4ae6
Add missing override keywords
2016-01-23 20:49:01 +01:00
Piotr Dziwinski
2af89ab378
Fix libc++ build
2016-01-23 20:30:43 +00:00
krzys-h
089c1ff00c
Fixed crash in CBotStack::BreakReturn
2016-01-15 19:59:03 +01:00
krzys-h
04e9e8768d
Removed unused CRobotMain members
2016-01-15 16:55:56 +01:00
krzys-h
70555d984c
Small CBotTwoOpExpr cleanup
2016-01-05 13:04:15 +01:00
krzys-h
d63773d89d
Refactored EOX
2015-12-31 18:57:11 +01:00
krzys-h
a70381e1c8
Refactored CBotVarClass instance list to std::set
2015-12-31 16:54:13 +01:00
krzys-h
dcc29442bd
Refactor public classes list to std::set
2015-12-31 16:30:54 +01:00
krzys-h
48ab72d056
CBotClass::Lock() refactoring
2015-12-31 16:11:49 +01:00
krzys-h
2245863fcd
Some more random refactoring in CBot
2015-12-31 16:11:35 +01:00
krzys-h
fa92605225
Renamed some CBotInstr classes
2015-12-31 14:44:19 +01:00
krzys-h
10b201b9e6
Description of CBot instructions
2015-12-30 19:13:32 +01:00
krzys-h
e3c53f9912
CBot compiled instruction graphs; some code cleanup
2015-12-27 16:51:57 +01:00
krzys-h
3b4ccc3535
Improvements to auto-indent ( #698 )
2015-12-26 20:16:47 +01:00
krzys-h
500bd1753f
Changed array initialization to use {...} ( #698 )
2015-12-26 20:05:00 +01:00
krzys-h
ef91fb8e9d
Fixed commandline interpreter
2015-12-26 14:37:36 +01:00
krzys-h
07a4d6a16b
CBot namespace
2015-12-26 14:29:10 +01:00
krzys-h
6b959a5606
Mostly finished CBotStack docs
2015-12-25 22:03:23 +01:00
krzys-h
9b3b701785
More CBotStack docs
2015-12-25 20:47:30 +01:00
krzys-h
c72cfa234b
Started docs of CBotStack; random refactorings
2015-12-25 19:48:31 +01:00
krzys-h
40b7d986aa
CBotVar::GetTypeMode enum
2015-12-25 19:16:54 +01:00
krzys-h
0807b75d4b
Fixed object:: with other types ( #207 )
2015-12-25 15:13:52 +01:00
krzys-h
5443006979
Refactor public function list
2015-12-24 15:07:40 +01:00
krzys-h
921c266311
Some random refactoring
2015-12-24 14:52:17 +01:00
krzys-h
ff081aff49
Made CBotExternalCallList combatible with class calls
2015-12-24 12:57:37 +01:00
krzys-h
ae544c71ae
Made CBotExternalCallList not static
2015-12-24 12:36:09 +01:00
krzys-h
8e01a208c1
More extensible external call interface
2015-12-24 11:57:34 +01:00
krzys-h
3170395576
CBotCall refactoring
2015-12-24 00:41:44 +01:00
Tomasz Kapuściński
00221c9a3f
Optimized DrawPrimitives() in CGL33Device
2015-12-24 00:21:57 +01:00
Tomasz Kapuściński
d944a55905
Optimized DrawPrimitives() in CGL21Device
2015-12-24 00:06:58 +01:00
Tomasz Kapuściński
f2a295348c
Optimized DrawPrimitives() in CGLDevice
2015-12-23 23:49:00 +01:00
krzys-h
3008e18fc6
Extracted most of linked list logic into a template class
2015-12-23 23:34:11 +01:00
Tomasz Kapuściński
d82b5ef746
Added DrawPrimitives() for drawing multiple primitives (not optimized for now)
2015-12-23 23:23:10 +01:00
krzys-h
8437a9bdd2
CBot testing framework; fixed a few bugs
2015-12-23 20:39:56 +01:00
krzys-h
d577e7f41b
Tests for CBotToken
2015-12-23 18:44:14 +01:00
krzys-h
30fea5893b
Fixed crash from previous commit (oops again)
2015-12-23 17:50:10 +01:00
krzys-h
8fa5b208c2
Compile fix after previous commit; fix MSVC errors; added missing license headers
2015-12-23 17:37:26 +01:00
krzys-h
6482001b9b
CBotToken docs
2015-12-23 17:28:21 +01:00
krzys-h
6ef14617a0
More random CBotToken refactoring, removed CBotToken::Delete
2015-12-23 16:46:41 +01:00
krzys-h
fbdc071659
Some random CBotProgram and CBotToken refactoring
2015-12-23 16:11:03 +01:00
krzys-h
9b4a6e0131
TokenType enum
2015-12-23 14:05:29 +01:00
krzys-h
c9e0249008
Better CBot class destructor parsing ( #257 )
...
The previous one broke the NOT (~) operation parsing
This reverts commit 7c8a31c074
.
2015-12-23 13:04:46 +01:00
krzys-h
45a433525f
CBotClass usage examples
2015-12-22 16:32:51 +01:00
krzys-h
214e95c0b9
Fixed ** CBot operator
2015-12-22 16:06:55 +01:00
krzys-h
33ac246297
Documentation for CBotVar and all subclasses
2015-12-22 15:59:57 +01:00
krzys-h
2519825104
CBotVar::ProtectionLevel enum
2015-12-21 23:07:40 +01:00
krzys-h
c8498740f2
Minor changes to CBotProgram docs
2015-12-21 21:46:50 +01:00
krzys-h
eedf8dacea
Documentation for CBotProgram; some CBotError refactoring
2015-12-21 21:35:20 +01:00
krzys-h
6fee1ee12b
Docs for CBotTypResult.h and CBotEnums.h
2015-12-21 17:54:55 +01:00
krzys-h
76c04e10d5
Removed some unused CBot code
2015-12-21 16:46:44 +01:00
krzys-h
73f8bd5490
Made CBot errors an enum
2015-12-20 19:16:01 +01:00
krzys-h
5db1254dd8
Unified CBot error naming
2015-12-20 19:01:03 +01:00
krzys-h
51644369cb
Moved standard math and file functions into CBot library
2015-12-20 18:36:20 +01:00
Tomasz Kapuściński
22e963e2c4
Added information about graphics card to error message
2015-12-20 17:34:55 +01:00
krzys-h
9ec61d93e5
Refactored CBotString and const char* to std::string in CBot engine
...
A lot of changes, so it needs lots of testing
2015-12-20 16:19:10 +01:00
krzys-h
87a34ba1ff
Refactor CBotString::LoadString
2015-12-20 15:06:35 +01:00
krzys-h
3eeab0f9b7
Removed CBotStringArray
2015-12-20 14:49:30 +01:00
krzys-h
6832c91496
Fixed #695
2015-12-20 14:28:38 +01:00
krzys-h
5e23426b53
Refactored CBotString to use std::string and CBotStringArray to use std::vector
2015-12-20 14:24:49 +01:00