1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00
Commit Graph

50 Commits

Author SHA1 Message Date
Sergey Lipskiy
506ca2b44c Fix textures load for different textureLUT modes. 2015-05-13 10:16:18 +06:00
Sergey Lipskiy
f661fc0be7 Fix I and IA textures load when G_IM_FMT_CI tlut mode is on.
Issue #41
2015-05-13 10:16:16 +06:00
Sergey Lipskiy
041e63c67a Fix HD backgrounds load. 2015-05-13 10:16:16 +06:00
Sergey Lipskiy
5df0bca6b9 Fix load 32bit textures.
Fixed textures in Automobili Lamborghini, #177
2015-05-13 10:16:15 +06:00
Sergey Lipskiy
1262304706 Use input _pTexture parameters for HD texture crc calculation. 2015-05-13 10:16:14 +06:00
Sergey Lipskiy
eaa4ba35b3 Fix bpl claculation for HD tex. 2015-05-13 10:16:13 +06:00
Sergey Lipskiy
67e6f23f36 Remove obsolete hack for Zelda warp texture.
Fixed Bond's Portrait texture in GE.
2015-05-13 10:16:07 +06:00
Sergey Lipskiy
a5360657f9 Disable texture filtering for texrects if txFilterIgnoreBG is on. 2015-05-13 10:16:02 +06:00
Sergey Lipskiy
8d17023217 Add texture filtering for backgrounds. 2015-05-13 10:16:01 +06:00
Sergey Lipskiy
fbe21ef07d Fix code analizer warnings. 2015-05-13 10:15:55 +06:00
Sergey Lipskiy
19a274f9e5 Fix compilation with gcc. 2015-05-13 10:15:52 +06:00
Sergey Lipskiy
dd4b714ccd Enable Texture filtering. 2015-05-13 10:15:44 +06:00
Sergey Lipskiy
42193b49a5 Load Hi-res textures. 2015-05-13 10:15:43 +06:00
Sergey Lipskiy
c984298b7b Implement search for hires texture. WIP 2015-05-13 10:15:41 +06:00
Sergey Lipskiy
f8da3cb792 Calculate texture size using gDPLoadTileInfo. 2015-05-13 10:15:27 +06:00
Sergey Lipskiy
887504c301 Switch to non-POT textures. 2015-05-13 10:15:25 +06:00
Sergey Lipskiy
e2347a09a5 Mask TMEM address.
Fixed images load in Blast Corps.
2015-05-13 10:15:15 +06:00
Sergey Lipskiy
57fb19a7ac Move texture sizes calculation into separate procedure.
Use it to calculate mip-maped tiles sizes.

Fixed globe in Blast Corps.
2015-05-13 10:15:13 +06:00
Sergey Lipskiy
f96bb13a0b Fix textures size calculation: apply mask on width and height to avoid overflow.
Fixed crash in carmadeggon after N logo.
2015-05-13 10:15:10 +06:00
Sergey Lipskiy
43727bc5a3 Correct textures load when gSP.texture.tile == 7 2015-05-13 10:14:46 +06:00
Sergey Lipskiy
e8a9832861 Fix textures size calculation method when tile loaded via LoadTile. 2015-05-13 10:14:44 +06:00
Sergey Lipskiy
0c7b3b9754 Don't clamp textures in COPY cycle type. 2015-05-13 10:14:43 +06:00
Sergey Lipskiy
cb785c2667 Fix textures size when load via LoadTile. 2015-05-13 10:14:42 +06:00
Sergey Lipskiy
4cacd7f818 Fix load RGBA textures when TLUT is enabled.
Fixed water texture in GE Frigate level.
2015-05-13 10:14:40 +06:00
Sergey Lipskiy
8d37143331 Implement YUV textures load. 2015-05-13 10:14:37 +06:00
Sergey Lipskiy
f11617bfa0 Fix 32bit textures load. 2015-05-13 10:14:35 +06:00
Sergey Lipskiy
6277ea1ca7 Enable bilinear filter for sprites. 2015-05-13 10:14:32 +06:00
Sergey Lipskiy
799638c29b Fix TextureCache::_updateBackground():
Load texture image with its actual size, not cast to power of two sizes.
This allows to wrap it easily.
2015-05-13 10:14:23 +06:00
Sergey Lipskiy
e4fa0b5717 Mip-mapping! 2015-05-13 10:13:43 +06:00
Sergey Lipskiy
2ca283cf0f Call CRC_BuildTable() in TextureCache ctor. 2015-05-13 10:13:25 +06:00
Sergey Lipskiy
a6056d4c3c Optimize textures map: store values to avoid malloc/free. 2015-05-13 10:13:02 +06:00
Sergey Lipskiy
7f6d7e2772 Refactor: rewrite TextureCache.
Store normal textures and frame buffer textures in separate maps.
Replace TextureCache_* functions by methods of TextureCache.
2015-05-13 10:12:44 +06:00
Sergey Lipskiy
9e5cab6852 Remove Noise textures. 2015-05-13 10:12:43 +06:00
Sergey Lipskiy
21b40c7a6c Remove 2xSAI support. 2015-05-13 10:12:42 +06:00
Sergey Lipskiy
f7e0aa6e10 Refactor: correct texture CRC calculation.
Texture parameters are added to calculated crc, and thus the crc must
define the texture completely.
Assertion added to check that found texture is exactly the one we are looking for.
2015-05-13 10:12:41 +06:00
Sergey Lipskiy
389a46c394 Code cleaup: fix idents, replace spaces by tabs. 2015-05-13 10:12:31 +06:00
Sergey Lipskiy
4d93ddac4f Use std min and max 2015-05-13 10:12:30 +06:00
Sergey Lipskiy
b73cf262f1 Code cleanup: Remove unused noise texture from Textures.h 2015-05-13 10:12:27 +06:00
Sergey Lipskiy
de7684827f Use GLES2 compatible texture types. 2015-05-13 10:11:51 +06:00
Sergey Lipskiy
8018ba0aea Move user-defined settings to Config structure. 2015-05-13 10:11:27 +06:00
Sergey Lipskiy
eb30130f12 (R): remove #include <windows.h> from Textures.cpp and Combiner.cpp 2015-05-13 10:10:48 +06:00
Sergey Lipskiy
da3d18d7d8 Fix frame buffer textures delete. 2015-05-13 10:10:38 +06:00
Sergey Lipskiy
14f5a92da3 Switch from glActiveTextureARB to glActiveTexture 2015-05-13 10:10:31 +06:00
Sergey Lipskiy
9c5b94d1f8 Fix frame buffer texture remove. 2015-05-13 10:10:16 +06:00
Sergey Lipskiy
deea78132c Fix new CachedTexture initialization. 2015-05-13 10:10:15 +06:00
Sergey Lipskiy
3380451e00 Fix texture cache verification. 2015-05-13 10:10:15 +06:00
Sergey Lipskiy
562612a21a Texture load status is now set per tile. 2015-05-13 10:09:47 +06:00
Sergey Lipskiy
3f98553ad2 Correct background images usage in frame buffer emulation. 2015-05-13 10:09:39 +06:00
Sergey Lipskiy
d57cf2e3f4 Code cleanup: remove unreferenced variables. 2015-05-13 10:09:24 +06:00
Sergey Lipskiy
69f27a5d8a Initial project version. Based on glN64-0.4.1-rc2 2015-05-13 10:09:12 +06:00