Günther Brammer
bddbc23354
Remove C4ObjectMenu
...
It's been superseded by other methods.
2016-01-30 16:04:05 +01:00
Günther Brammer
11bbeb2a5b
Rename WITH_DEVELOPER_MODE to USE_GTK
...
This mirrors USE_WIN32_WINDOWS, USE_SDL_MAINLOOP and USE_COCOA.
2016-01-23 20:36:33 +01:00
Sven Eberhardt
148073a956
Fix black NO_OWNER viewport in network mode.
2016-01-16 16:29:23 -05:00
Sven Eberhardt
4eddeba9aa
Fix crash when drawing zero-sized viewports (may happen during editor viewport initialization)
2016-01-15 08:53:00 -05:00
Sven Eberhardt
c569036d1d
Make NO_OWNER viewports black in fullscreen+non-debug for non-observers #1557
2016-01-10 09:50:21 -05:00
Nicolas Hake
ddd068c830
C4Viewport: Turn some owned pointers into std::unique_ptr
2015-12-28 21:45:14 +01:00
Nicolas Hake
3590dda85a
C4Viewport: Merge ctor/Default, dtor/Clear
2015-12-28 21:43:03 +01:00
Nicolas Hake
d737dc1b05
Remove C4Video, StdVideo
...
Video recording and playback only worked on Windows, and recording only
handled video, not game audio. As such, it was of fairly limited use,
and there's lots of software available these days that handle both.
2015-12-28 11:43:41 +01:00
David Dormagen
dcfb986e34
moved sounds into subfolders
...
This completes http://forum.openclonk.org/topic_show.pl?tid=3215
2015-12-13 22:14:55 +01:00
David Dormagen
fa10a214b5
replaced two missing sounds
...
..which were easy to find due to the new missing-sound-warning. Hah!
We have cool wind now.
2015-12-10 19:36:54 +01:00
Sven Eberhardt
cc12230d56
Add "immediate" parameter to SetPlrView and ResetCursorView script functions to force viewport scroll position to the target.
2015-12-02 22:11:28 -05:00
Sven Eberhardt
3fdf7142b5
Fix custom viewport zoom initialization done in InitilizePlayer in fullscreen mode.
2015-12-02 21:24:57 -05:00
Nicolas Hake
24b54211c5
Drop Min, Max, Swap for std::min, std::max, std::swap
...
The C++ standard library comes with perfectly fine implementations of
these functions, so there's no point in reimplementing them just for the
hell of it.
2015-11-15 13:53:01 +01:00
Sven Eberhardt
2a31fe72f8
Initialize new player viewports with proper zoom and zoom limits ( #1419 ).
2015-10-10 21:47:09 -04:00
Armin Burgmeier
20eb0615ee
Custom shader for drawing sky
...
Add a C4ShaderCall parameter to tho most important drawing functions, and
make C4DrawGL's CreateSpriteShader public with additional parameters to
specify additional defines and shader slices. C4Sky uses this to compile its
own shader with OC_SKY defined.
2015-09-12 18:15:34 -04:00
David Dormagen
ac738735b2
Merge branch 'master' into Controls
...
Conflicts:
planet/Objects.ocd/Vehicles.ocd/Airplane.ocd/Script.c
src/game/C4Game.cpp
src/game/C4GraphicsSystem.cpp
src/gamescript/C4GameScript.cpp
2015-09-02 08:19:34 +02:00
Sven Eberhardt
6ab6a1ac3c
Add script interface for some EFX sound modifiers.
2015-08-27 21:44:23 -04:00
David Dormagen
f05345375c
fixed wrong offset in scripted GUIs when upper-board is active
2015-08-02 23:19:28 +02:00
David Dormagen
196f528201
Merge branch 'master' into Controls
...
Conflicts:
planet/Objects.ocd/HUD.ocd/FancyGridMenu.ocd/DefCore.txt
planet/Objects.ocd/HUD.ocd/GridMenu.ocd/DefCore.txt
planet/Objects.ocd/Helpers.ocd/Dummy.ocd/Graphics.png
planet/Objects.ocd/Items.ocd/Tools.ocd/WindBag.ocd/Script.c
planet/Objects.ocd/Items.ocd/Weapons.ocd/Javelin.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/ClonkControl.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/Constructor.ocd/ConstructionMenu.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/Constructor.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/Flag.ocd/Marker.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/Producer.ocd/Script.c
planet/Objects.ocd/Structures.ocd/Flagpole.ocd/Script.c
planet/Objects.ocd/Structures.ocd/Pump.ocd/Script.c
src/game/C4Game.cpp
src/gamescript/C4GameScript.cpp
src/gui/C4GameMessage.cpp
src/landscape/C4Landscape.cpp
2015-06-03 22:32:36 +02:00
Nicolas Hake
5562b09dc4
Remove a lot of disabled legacy code, round 2
...
Maybe at some point we'll be rid of all the commented-out code that
nobody has looked at in years.
2015-03-25 20:02:53 +01:00
David Dormagen
d07893dadc
fixed player names, clonk names and selector info being zoomed ( #687 )
2015-03-22 09:58:43 +01:00
Nicolas Hake
e21a5bdd44
Rename BoundBy to Clamp
...
"BoundBy" sounds like a predicate. "Clamp" is a common function name for
the operation in graphics processing, so it should be familiar to users.
2015-02-12 23:05:55 +01:00
Sven Eberhardt
c714e5e3b2
Fix full map screenshots ( #1220 ).
...
Fixed upperboard, borders when screenshotting while at the side of the map and issues when multiple viewports were open.
2015-02-03 01:00:16 +01:00
David Dormagen
bd04722553
Merge branch 'master' into Controls
...
Conflicts:
planet/Objects.ocd/HUD.ocd/Controller.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/ClonkControl.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/Constructor.ocd/ConstructionMenu.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/Constructor.ocd/Script.c
src/game/C4GraphicsSystem.cpp
src/game/C4GraphicsSystem.h
src/game/C4Viewport.cpp
src/gui/C4GameMessage.cpp
2015-01-15 19:57:01 +01:00
Armin Burgmeier
f2830311a6
Fix crash on scenario section change ( #1221 )
2015-01-14 12:03:05 -05:00
Armin Burgmeier
a5c2e762f7
Fix memory leak when a viewport is re-initialized
2015-01-13 07:48:43 -05:00
Armin Burgmeier
57878a0604
Fix crash when viewing record with more than 2 players ( #1228 )
2015-01-12 16:37:51 -05:00
Armin Burgmeier
e1d1d540c7
Allow independent viewport and light regions in C4FoWRegion ( #1211 )
...
With this change, an additional rectangle is stored in C4FoWRegion that
represents the area covered by the viewport in fractional floating point
coordinates. This allows the light texture to be created for an arbitrary
portion of the landscape, and the coordinate transformations for the
shaders will still work.
Also, since the additional rectangle uses floating point precision, the
computed coordinate transformations do now give the exact same result as for
the landscape pixel-by-pixel, and there should not be any offsets left.
I also hope that this change improves or fixes the single-pixel-lines of sky
that are sometimes seen at the edges of the viewport.
2015-01-07 19:44:31 +01:00
Tobias Zwick
5e188aafb3
Fix setting small ViewOffsets. Refactor neighbouring code, enable a slight MouseAutoScroll by default
...
* make ViewX,ViewY,ViewOffsetX and Y private, add getters and setters that update variables that are dependent on these
2015-01-03 22:53:02 +01:00
Tobias Zwick
f5ecd4776d
new function SetLightRange (replaces SetPlrViewRange)
2015-01-02 01:06:00 +01:00
Armin Burgmeier
ae505e3c6b
Render FoW only if active for player
...
This allows to enable or disable FoW individually for each player with
SetFoW().
2014-12-29 23:08:17 +01:00
Armin Burgmeier
a3049207c9
Use full ambient lighting in global viewports
...
This allows to see the whole landscape without any areas covered by FoW
in the global viewport. Basically the ambient lighting is set to 1.0
independent of the ambient light map. In the course of this, a second
shader for the landscape has been introduced.
2014-12-28 15:07:42 +01:00
Armin Burgmeier
c687ea4040
C4Viewport: Fix memory leak of C4FoWRegion object
2014-12-28 14:07:50 +01:00
Armin Burgmeier
0795715465
Apply lighting on sprites
2014-11-06 15:56:19 -05:00
David Dormagen
2a78b77bda
renamed C4GuiWindow to C4ScriptGuiWindow to increase expressivness and reduce similarity with C4Gui*
2014-10-13 18:48:03 +02:00
Tobias Zwick
21e532da23
split up C4FoW header and source file into one file for each class
...
* added some class and method documentation, removed some superfluous comments like
void C4FoW::Update(C4Rect r)
{
// Update all lights
...
* added ASK comments that need clarification before proper documentation
2014-10-11 23:13:10 +02:00
Tobias Zwick
b11e8d5d7a
Merge branch 'master' into lights
...
Conflicts:
planet/Graphics.ocg/LandscapeShader.c
src/graphics/C4DrawGLMesh.cpp
src/graphics/C4DrawGL.cpp
src/landscape/C4Landscape.cpp
src/landscape/C4Landscape.h
src/landscape/C4LandscapeRender.cpp
src/landscape/C4Scenario.cpp
src/landscape/C4Scenario.h
2014-10-06 23:27:16 +02:00
David Dormagen
7319f7b3cc
rewrite of C4GuiWindow to use C4GUI stuff wherever possible
2014-10-05 16:46:14 +02:00
David Dormagen
06ac00ace8
Merge branch 'master' into Controls
...
Conflicts:
CMakeLists.txt
Makefile.am
planet/Objects.ocd/HUD.ocd/Controller.ocd/Script.c
planet/Objects.ocd/Items.ocd/Weapons.ocd/Club.ocd/Script.c
planet/Objects.ocd/Libraries.ocd/ClonkControl.ocd/Script.c
src/control/C4Control.cpp
src/control/C4Control.h
src/gamescript/C4GameScript.cpp
2014-02-15 14:44:57 +01:00
Nicolas Hake
e0dc30c59a
Update copyright notices
...
As discussed in http://forum.openclonk.org/topic_show.pl?tid=2917 , I
have merged all copyright notices into a single file and referenced that
merged file from each source file.
For the updated source files, the timeline has been split into three
parts:
1. Pre-RWD code (before 2001)
2. RWD code (2001 through 2009)
3. OpenClonk code (2009 and later)
All pre-RWD copyright notices have been left intact, as have RWD-era
copyright notices where the file did not have a RedWolf design copyright
notice but only individual author ones. All copyright notices of the
OpenClonk era have been replaced by a single notice ranging from the
first recorded year to the current year (2013). Mape code did not get a
OpenClonk Team copyright notice because it is somewhat separate from the
main OpenClonk codebase and has only been touched by Armin Burgmeier.
2013-12-23 13:03:19 +01:00
David Dormagen
a10c9316ef
renamed DynamicParticles* to Particles* and CreateParticleEx to CreateParticle
2013-12-17 22:32:01 +01:00
David Dormagen
02f54ba1eb
removed the legacy particle system from the engine and docs
2013-12-17 22:32:01 +01:00
Tobias Zwick
554deb5273
fix zoom is reset on resizing the viewport ( #881 )
2013-12-04 23:36:27 +07:00
David Dormagen
8025e7c2b0
the dynamic particle system now runs the calculations in a different thread
...
added PV_KeyFrames
2013-10-07 20:56:49 +02:00
David Dormagen
40b66d1c76
added (early demo of) new particle system which should both be faster and more flexible than the old one
2013-10-07 20:56:49 +02:00
Julius Michaelis
1261402357
Zoomed full map screenshots with artefacts and fixed zoom
...
Signed-off-by: Sven Eberhardt <sven2@goldwipf.de>
2013-09-14 23:36:07 +02:00
David Dormagen
dd1e2e2709
made GuiWindowRoot a member of C4Game
2013-05-26 18:12:03 +02:00
David Dormagen
76482ef645
Merge branch 'master' into Controls
2013-05-24 18:20:20 +02:00
Tobias Zwick
fbcd419af2
adapt zoom defaults, set default view lock to true
2013-05-23 18:35:23 +02:00
David Dormagen
337126fcb9
renamed MenuWindow to GuiWindow
...
added HP-Bar-test to MenuTest.ocs
bugfix
2013-05-09 13:28:45 +02:00