75 Commits

Author SHA1 Message Date
YVT
ffb3f33abe
Remove a redundant assignment
Reported by Clang's static analysis.
2019-07-24 18:12:08 +09:00
yvt
b02ad53109 Add View::RunFrameLate
`IRenderer::{FrameDone, Flip}` are now called in `RunFrameLate` instead.
This makes it possible to create a `View` wrapping another `View` to
insert a new 2D drawing pass, which is necessary to render the system
console.
2019-07-14 00:29:36 +09:00
yvt
3cd581260a Fix a bug causing the program not to start
This bug was introduced in ac4799abafbeb1d44d1b7166913406cd3a46b560.

This bug apparently only affected MSVC since the evaluation order of function
call parameters respect to other parameters is unspecified by the C++
specification.

Fixes #785.
2018-10-31 16:16:51 +09:00
yvt
c50906d16b Fix to build with GCC 4.9 2018-10-27 18:19:38 +09:00
yvt
ea0088ddd4 Explicitly delete a reference to SDL surface when a window is closed
This issue was identified by #775. (Hopefully) fixes #779.
2018-10-13 16:09:15 +09:00
yvt
cfb972f944 Improve code quality
- Overriding methods are clearly indicated with `override` keywords
- Remove redundant `virtual` keywords from destructors of subclasses
- Introduce `SPUnsupported()`, replacing most uses of
  `SPNotImplemented()`, which now serves as a dynamic "TODO" marker
2018-10-13 14:43:49 +09:00
yvt
5ec968ecf5 Call SDL_GL_SetSwapInterval after a GL context was created
Fixes #763.
2018-09-18 00:36:34 +09:00
yvt
298c1ecf0a FPS limiter (cl_fps) 2017-02-20 03:45:50 +09:00
yvt
8c4b0738b2 Minor fixes 2017-01-08 02:06:48 +09:00
yvt
05156b53d1 Support toggling full-screen mode (#531) 2017-01-08 01:39:35 +09:00
yvt
b4430338f0 Refactoring 2017-01-05 03:24:22 +09:00
yvt
de10fa8f78 Remove unused configs 2016-12-08 01:35:53 +09:00
Tomoaki Kawada
624d291f79 Update #includes
- Reorder them so that system libraries come first
- Use C++-style headers (`<cmath>`) instead of C-style headers (`<math.h>`)
2016-12-03 19:04:58 +09:00
Tomoaki Kawada
2eb9e35c65 Apply clang-format to all non-external source files 2016-12-03 18:23:47 +09:00
Tomoaki Kawada
6a7af96daf Refactor setting variables 2016-11-19 21:27:13 +09:00
Tomoaki Kawada
89748d6bc6 Reduced compiler warnings 2016-07-15 19:40:05 +09:00
Way, No
f0a0ff39db Edited icon loading method 2014-05-06 00:22:01 +11:00
Way, No
04f4968034 icon from .rodata 2014-04-24 12:11:05 +11:00
Way, No
67439374ba includes 2014-04-24 12:11:05 +11:00
Way, No
87ac44de31 now using FileManager::OpenForReading 2014-04-24 12:11:05 +11:00
Way, No
a1286db65a added code for setting window icon 2014-04-24 12:11:05 +11:00
Dennis Barzakovsky
e0e1c279d0 attempt to fix yvt/openspades#243 2014-04-21 17:12:37 +03:00
yvt
f517da9356 OS X defaults to YSR audio engine 2014-04-07 02:08:17 +09:00
Marco Schlumpp
e7eb75110b Removed FLTK header. 2014-03-31 15:56:24 +02:00
yvt
f8f09593e8 Fixed #206 - disabled key repeat. 2014-03-24 23:52:07 +09:00
yvt
f42e57abdb Support Delete key (fixed #194) 2014-03-14 23:15:33 +09:00
yvt
e3cfe70ca6 Support null audio device 2014-03-13 16:26:46 +09:00
yvt
b14c39b148 Remove commented code 2014-02-24 19:17:51 +09:00
yvt
cac42196c1 Very basic new startup screen 2014-02-07 00:09:26 +09:00
yvt
0127e0b1f0 Completed merge 2014-02-06 23:05:11 +09:00
yvt
77219caa00 Merge branch 'master' into swrenderer 2014-02-01 23:02:30 +09:00
yvt
ee2a90acf3 absolute mouse input support 2014-02-01 21:55:30 +09:00
yvt
613c8a98b1 Merge branch 'master' into swrenderer 2013-12-25 23:18:28 +09:00
yvt
383f11cbec SDL version logging 2013-12-25 23:04:25 +09:00
yvt
b458fe7455 Additional keys supported (alt, meta) 2013-12-25 22:55:05 +09:00
Marco Schlumpp
87a128e3ed Fixed compilation on Linux. 2013-12-25 09:57:47 +01:00
yvt
45dfad3459 Merge branch 'master' into swrenderer 2013-12-25 16:55:05 +09:00
yvt
a182104300 Made the main window borderless on OS X 2013-12-25 16:53:37 +09:00
yvt
9eefd32747 Renderer selection from the startup window 2013-12-25 14:21:21 +09:00
learn_more
57cfcc4f3e Merge branch 'master' of https://github.com/yvt/openspades
add windows crash dump file & loadlib failure reason as text
2013-12-24 00:31:51 +01:00
yvt
9881370b10 Alternate way to meet the software renderer’s size restriction 2013-12-24 05:07:52 +09:00
yvt
dfd7a19df0 Window size is rounded to multiple of 8 for SW renderer 2013-12-24 04:57:37 +09:00
yvt
6598456124 now defaults to OpenAL 2013-12-23 00:57:16 +09:00
yvt
e75cc44ca0 Made OpenAL default 2013-12-22 15:33:25 +09:00
yvt
647eb38f84 Added skeleton for software rendering interface 2013-12-18 17:00:39 +09:00
learn_more
1c4e9ed226 bump version number
disable ysr? on windows until we get a binary from somewhere.
enable alt+tab on windows (not sure if it works correct on linux?
2013-12-17 19:58:53 +01:00
yvt
7edc18e09f YSR support 2013-12-15 21:51:00 +09:00
yvt
46d289fbdc Merge branch 'master' of https://github.com/yvt/openspades 2013-12-10 19:43:15 +09:00
yvt
ea46fd8d92 Hardware rendering is forced by default 2013-12-10 12:39:58 +09:00
yvt
60d31aef58 Window centering 2013-12-10 12:27:01 +09:00