yvt
027f6ef357
GLRadiosityRenderer
: Replace GLRenderer *
with GLRenderer &
2019-08-08 00:34:00 +09:00
yvt
d99f202c92
GLOptimizeVoxelModel
: Replace GLRenderer *
with GLRenderer &
2019-08-08 00:08:53 +09:00
yvt
00fbbe9acd
GLNonlinearlizeFilter
: Replace GLRenderer *
with GLRenderer &
2019-08-08 00:05:55 +09:00
yvt
ab235fed8e
GLModelRenderer
: Replace GLRenderer *
with GLRenderer &
2019-08-08 00:05:26 +09:00
yvt
0f4e96cb44
GLModelManager
: Maintain references using Handle
2019-08-08 00:04:25 +09:00
yvt
16a2785cba
GLModelManager
: Replace GLRenderer *
with GLRenderer &
2019-08-08 00:01:33 +09:00
yvt
8101f85d6c
GLMapShadowRenderer
: Replace GLRenderer *
with GLRenderer &
2019-08-08 00:00:41 +09:00
yvt
c21c28875b
GLMapRenderer
: Replace GLRenderer *
with GLRenderer &
2019-08-08 00:00:03 +09:00
yvt
105c1270b7
GLMapChunk
: Replace GLMapRenderer *
with GLMapRenderer &
2019-08-07 23:58:24 +09:00
yvt
936041a9fb
GLLongSpriteRenderer
: Replace GLRenderer *
with GLRenderer &
2019-08-07 23:56:39 +09:00
yvt
8c67276f77
GLLensFlareFilter
: Replace GLRenderer *
with GLRenderer &
2019-08-07 23:56:06 +09:00
yvt
0c99079614
GLLensFilter
: Replace GLRenderer *
with GLRenderer &
2019-08-07 23:55:17 +09:00
yvt
ebbca25f6e
GLLensDustFilter
: Replace GLRenderer *
with GLRenderer &
2019-08-07 23:54:37 +09:00
yvt
f702e381c6
GLImageRenderer
: Replace GLRenderer *
with GLRenderer &
2019-08-07 23:53:54 +09:00
yvt
4478ec96a2
GLFXAAFilter
: Replace GLRenderer *
with GLRenderer &
2019-08-07 23:52:09 +09:00
yvt
ef2d844a97
clang-format all source files under Sources/Client
2019-08-07 23:51:05 +09:00
yvt
512c4e1cc1
clang-format all source files under Sources/Draw
2019-08-07 23:50:08 +09:00
yvt
d61bcc336e
GLFogFilter
: Replace GLRenderer *
with GLRenderer &
2019-08-07 23:44:36 +09:00
yvt
ceb8fe872c
GLFlatMapRenderer
: Follow the reference rules for GameMap
2019-08-07 23:43:51 +09:00
yvt
3075e1da60
clang-format
2019-08-07 23:40:35 +09:00
yvt
7549617cce
GLFlatMapRenderer
: Replace GLRenderer *
with GLRenderer &
2019-08-07 23:40:17 +09:00
yvt
17757bfabe
Mark bad code
2019-08-07 23:39:22 +09:00
yvt
ab1a625406
GLDepthOfFieldFilter
: Replace GLRenderer *
with GLRenderer &
2019-07-26 22:49:48 +09:00
yvt
9230836282
GLColorCorrectionFilter
: Replace GLRenderer *
with GLRenderer &
2019-07-26 22:48:55 +09:00
yvt
df920f680c
GLCameraBlurFilter
: Replace GLRenderer *
with GLRenderer &
2019-07-26 22:48:11 +09:00
yvt
8e23ef08d0
Replace GLRenderer *
in GLBloomFilter
with GLRenderer &
2019-07-26 22:47:01 +09:00
yvt
5c8ea3a861
Store IGLShadowMapRenderer
using std::unique_ptr
2019-07-26 22:45:26 +09:00
yvt
bc08e23d80
Replace raw pointers in IGLShadowMapRenderer
etc. with references
2019-07-26 22:42:04 +09:00
yvt
b1b07cf579
Replace GLRenderer *
in GLAutoExposureFilter
with GLRenderer &
2019-07-26 22:38:54 +09:00
yvt
3676643f30
Modernize GLAmbientShadowRenderer
2019-07-26 22:37:51 +09:00
yvt
b0c97c67ae
Replace raw pointers in GLAmbientShadowRenderer
with references
2019-07-26 22:28:15 +09:00
yvt
b49028d822
Add const
to GameMapLoader::IsComplete
2019-07-24 19:11:36 +09:00
yvt
3b15a205ff
Replace Deque
with std::deque
...
Profiling indicated that a little time (< 10% of `ApplyBlockActions`'s
total execution time) is spent on `Deque` when a large chunk of block
is being removed. Thus even *if* this commit slows down things, the
performance impact would be insignificant.
2019-07-24 19:11:36 +09:00
yvt
d1ba2a729b
Fix to build with GCC 4.9
...
> error: invalid use of incomplete type ‘class spades::Bitmap’
2019-07-23 22:55:02 +09:00
yvt
403b0a5e7f
Make Function::Function
constexpr
to allow static initialization
...
`Function` is constructed for every `SPADES_MARK_FUNCTION`, so this
drastically reduces the number of constructor calls at startup.
2019-07-23 22:46:37 +09:00
yvt
f841c94db7
Change the return type of CreatePipeStream
to use unique_ptr
2019-07-23 22:28:56 +09:00
yvt
da7e61b25c
Change std::regex
static local variables to global
...
Removes the runtime cost caused by lazy initialization.
2019-07-23 22:25:12 +09:00
yvt
4e566cc671
Update CP437
...
- Replace `std::map` with `std::unordered_map`
- clang-format
- Delete `CP437`'s default copy constructor instead of hiding it
- Move the internal declarations to an anonymous namespace
2019-07-23 22:20:19 +09:00
yvt
701105f916
Change the return type of file opening functions to std::unique_ptr<_>
...
This also fixes a memory leak in `MainScreenHelper::SaveFavorites`.
2019-07-23 22:14:10 +09:00
yvt
d248ac2460
Change the return type of GameMapLoader::TakeGameMap
to Handle<_>
2019-07-23 21:57:40 +09:00
yvt
5fe8b0fe18
Remove StreamHandle
...
It was functionally identical to `std::shared_ptr<IStream>`.
2019-07-23 21:57:40 +09:00
yvt
a2257a6fb7
Change the return type of VoxelModeLoader::Load
to Handle<_>
2019-07-23 21:42:21 +09:00
yvt
eabb77fcce
Update VoxelModel
...
- Use `unique_ptr` instead of manually memory management
- All of its methods now perform bounds checking in release builds. The
exception is `*Unchecked` methods.
- Use an anonymous namespace for local definitions in `VoxelModel.cpp`
- `VoxelModel::LoadKV6` methods now returns `Handle<_>` and accepts
`IStream &`.
- Delete the copy constructor and assignment operator
- Remove debug code
2019-07-23 21:39:56 +09:00
yvt
af2aa09eba
Delete Semaphore(const Semaphore &)
, etc.
2019-07-23 20:01:01 +09:00
yvt
90cbdee54a
Remove the deprecated exception specifications (func() throw(Type)
)
2019-07-23 19:52:34 +09:00
yvt
b48c5f489f
Use range-based for
loops
2019-07-23 19:36:08 +09:00
yvt
a2eff8fda5
Update Bitmap
...
- Added doc comments to all of its methods.
- `Bitmap::Load` methods now returns `Handle<Bitmap>`.
- `Bitmap::Load(IStream *)` now accepts `IStream &`.
- `Bitmap::{GetPixel, SetPixel}` now perform bounds checking in release
builds.
2019-07-23 19:31:24 +09:00
yvt
92a4b2466f
Rename DirectoryFileSystem::{physicalPath → PathToPhysical}
2019-07-20 17:19:34 +09:00
yvt
770f11a0d1
FTFont: Get rid of raw pointer
2019-07-20 17:16:09 +09:00
yvt
4c69adb972
Reformat
2019-07-20 17:13:16 +09:00