Commit Graph

17301 Commits

Author SHA1 Message Date
Benau
08876e30ab Remove unused builtin font 2017-01-09 15:50:26 +08:00
Benau
bd20d2512c Keep single channel for reloading texture 2017-01-09 15:35:57 +08:00
Benau
848dd05f11 Add IImage to STKTexture constructor for areamap texture 2017-01-09 15:04:34 +08:00
Benau
c4b4ea006e We don't need to add a new glyph page for billboard text anymore 2017-01-09 13:16:40 +08:00
Benau
46be4948b2 AZDO for new texture format 2017-01-09 13:03:50 +08:00
Benau
e049cb2bd6 Allow saving single channel compressed texture 2017-01-09 00:50:04 +08:00
Benau
71c14ff0b3 Convert code to a more readable format 2017-01-08 23:50:47 +08:00
Benau
1cc8371ac5 Preserve max texture size when restart 2017-01-08 22:02:04 +08:00
Benau
597461d680 Fix server build 2017-01-08 15:42:29 +08:00
Benau
21d35d4bcd Display texture size instead of pointer location 2017-01-08 15:37:03 +08:00
Benau
00437e6d15 Allow using colorization mask with single channel texture only 2017-01-08 15:30:49 +08:00
Benau
4ba1b2408c Minor optimization 2017-01-08 14:38:58 +08:00
Benau
6f191bd7da Fix gles
Because in the past call texture->lock() will return unmodified
cached image (always bgra), now the image will be converted
dependently
2017-01-08 13:31:10 +08:00
Benau
f609114594 Zero the array to prevent black border in glyph
Also use the correct internal format
2017-01-08 00:05:00 +08:00
Benau
314c32865b Allow using single color channel for font texture 2017-01-07 16:36:25 +08:00
Benau
f78d749a0c Fix no graphics run 2017-01-07 15:43:25 +08:00
Benau
6deb0e0f8a Avoid using createImageFromData with preload data for texture
Todo: allow using single channel for font texture, saving 75% size
2017-01-07 14:45:47 +08:00
Benau
37a4d512ab Add cache version inside the cache file
Also clean up commented out code
2017-01-07 10:44:29 +08:00
auria.mg
67e66b44b0 Improve texture cache code to use precise subpaths instead of hashes 2017-01-06 21:07:53 -05:00
Benau
3e5199334d Drop models and lights when leaving model widget screen 2017-01-07 00:27:48 +08:00
Benau
ba8846522e Implement cleaning for new texture
Also warn if there is possible texture leaking when exit STK
2017-01-06 23:45:25 +08:00
Benau
555cdacd83 Improve warning 2017-01-06 20:54:22 +08:00
Benau
437f89eea7 Clean up 2017-01-06 20:28:03 +08:00
Benau
66f3a2e32b Make dump glyph page possible for new texture format
Also implement read-only lock, please use reload() for writing
2017-01-06 19:58:51 +08:00
Benau
2af126357d Port font to use new texture format 2017-01-06 18:20:19 +08:00
Benau
4bcf03e296 Port reload texture to use new STKTexManager 2017-01-06 15:47:54 +08:00
Benau
827a483e85 Allow legacy pipeline to use new texture format 2017-01-06 15:04:15 +08:00
Benau
513f1e2edf Add unicolor texture loading 2017-01-05 14:51:38 +08:00
Benau
6e4d7da487 Improve warning handling 2017-01-05 13:42:22 +08:00
Benau
c7d56d3edc Allow caching compressed texture
Use std::hash for string (path + basename + max_texture_size)
2017-01-05 12:50:33 +08:00
Benau
99857ca193 Fix GLES 2017-01-04 15:05:04 +08:00
Benau
497f1e2785 Clean up billboard texture code
Todo: compress them in STKTexture class
2017-01-04 14:35:49 +08:00
Benau
c98e4f2bac Simplify particle texture loading 2017-01-04 13:43:14 +08:00
Benau
63f57d6a9c Fix wrong texture if absolute path is not given 2017-01-04 11:41:11 +08:00
Benau
05a29fe7da Let material code handle premultiplied alpha and srgb 2017-01-03 16:35:37 +08:00
Benau
0129c539b9 Fix #2543
Also disable warning when switching cases for context detection
2017-01-03 13:53:44 +08:00
Benau
d57841bcb8 Fix crash if skybox / SH shares textures from track 2017-01-03 12:35:05 +08:00
Benau
57e16dcb73 Avoid unneeded copying in sky box and SH 2017-01-03 11:08:33 +08:00
Benau
19ac8a0d3c Allow sky box and SH to use new texture format 2017-01-03 10:18:11 +08:00
Benau
6db2212690 Try to fix server build 2017-01-03 00:03:26 +08:00
Benau
2dbf4675a5 First version of new texture format
Todo: IBL, texture compression, GLES, premul alpha ....
2017-01-02 16:14:59 +08:00
Deve
6a16f23132 Fixed GLES 2016-12-31 03:41:37 +01:00
Deve
cec7c51bc0 Request closing the app on android in better place, so that it handles both - quit button and escape pressed. 2016-12-31 02:51:08 +01:00
Benau
dbe148baf6 Max 10 players supported in arena
See #2705
2016-12-31 09:27:39 +08:00
Benau
f8c09ccf83 Handle score times too 2016-12-31 09:03:42 +08:00
Benau
0d35ea74d1 Fix #2713 2016-12-31 08:59:24 +08:00
auria.mg
09e1e6d7a3 Update achivement with new track name. Fixes #2712 2016-12-30 17:05:30 -05:00
auria.mg
fcdb0b5614 Improve material code, fixes #2709 2016-12-30 16:04:56 -05:00
Benau
360e1bb88b Case insensitive in linux for reloading texture 2016-12-30 20:24:35 +08:00
Deve
412399cdf7 Fixed a crash in GLES 2.0.
The glGetStringi is available only in GLES >= 3.0. We can't easily check if this function exists or not because it requires EGL >= 1.5 (and still we can't be sure that all drivers handle it properly).

Though glGetString(GL_EXTENSIONS) is allowed on both GLES2.0 and GLES3.0, so we can just fallback to this method.
2016-12-30 11:09:06 +01:00