17 Commits

Author SHA1 Message Date
UnknownShadow200
98d435b110 fix licensing 2017-01-20 09:12:04 +11:00
UnknownShadow200
1aef52fab2 Use standard indentation for everything. 2016-11-27 14:47:09 +11:00
UnknownShadow200
dcf4f4c364 Style: Use ContextLost() in more places 2016-10-17 09:32:06 +11:00
UnknownShadow200
7f92161077 Gfx: IGraphicsApi is no longer responsible for managing dynamic vertex buffers. Simplify dynamic vertex buffer code. 2016-10-12 19:28:00 +11:00
UnknownShadow200
ac13fa78ca Gfx: Use Default instead of Managed pool on Direct3D 9 backendfor vertex buffers, typically halfs memory usage.
Managed pool places data in both video and system memory. By only using the default pool, we only store data in video memory (at the cost of needing to recreate vertex buffers whenever the context is lost). This also means the client will crash whenever it runs out of video memory.. but really if that happens, you are likely stuffed anyway. I think the tradeoff is worth it. I'll also unload far away chunks to reduce video memory usage.
2016-10-03 21:23:18 +11:00
UnknownShadow200
64cb13d0a6 Gfx: DeleteVb should reset the id too. 2016-10-01 17:45:17 +10:00
UnknownShadow200
8c292d92e3 Use packed ints instead of 4 byte fields in vertex structs. 2016-07-10 11:23:20 +10:00
UnknownShadow200
5b5b76f185 Fix skybox not being affected by view bobbing. 2016-06-26 09:03:54 +10:00
UnknownShadow200
df12571d96 Don't load a texture if it is bigger than gpu's max supported size. 2016-06-23 10:50:51 +10:00
UnknownShadow200
b2c642b8af Remove Block enum. 2016-06-11 15:29:45 +10:00
UnknownShadow200
4c0b6ea1d6 Use safer method of incrementing pointers. 2016-05-25 22:16:38 +10:00
UnknownShadow200
ae50dbd614 Remember that switching to another map does not raise EnvVarChanged event, fixes colour applied to skybox not being reset. (Thanks goodlyay) 2016-05-15 16:52:21 +10:00
UnknownShadow200
f05fba36de Can change skybox colour (Thanks goodlyay). 2016-05-15 13:17:07 +10:00
UnknownShadow200
3546d165df Fix skybox rendering in forward third person mode. (Thanks 123DMWM) 2016-05-15 13:06:32 +10:00
UnknownShadow200
ea7b4d743d Fix orientation of top/bottom faces (thanks goodlyay), closes #186. 2016-05-14 21:23:06 +10:00
UnknownShadow200
66e9329eb4 Read skybox.png from the texture pack if given. 2016-05-14 20:51:26 +10:00
UnknownShadow200
8f8ae2f36f Initial work on texture packs. 2016-05-14 20:37:07 +10:00