Commit Graph

9 Commits

Author SHA1 Message Date
Artem Kharytoniuk
eca35b6050 Clean up: introduced Vulkan_Instance, Vulkan_Resources structures.
Vulkan_Instance contains variables related to persistent vulkan resources like instance, device, queue, swapchain, etc.
Vulkan_Instance is re-iniitalized only during window creation.

Vulkan_Resources contains data specific to current game context, i.e. current level.
Vulkan_Resources can be re-loaded during level change, level exit, etc.
2017-04-11 14:05:38 +03:00
Artem Kharytoniuk
c0ce8b4fe3 Removed SF_DISPLAY_LIST surface type.
It was only a placeholder without implementation and was not used by the engine.
2017-03-31 13:38:55 +03:00
Artem Kharytoniuk
63c32ff8a6 Cleanun: provide only those qgl pointers that are really used by the engine. 2017-03-31 13:24:34 +03:00
Artem Kharytoniuk
3cdeb7aa3a Removed SDL 3rd party dependency. 2017-03-30 17:44:22 +03:00
Artem Kharytoniuk
e9b972d562 New cvars: r_renderAPI , r_renderAPICompareWindow.
r_renderAPI specifies rendering API to use (0 - opengl, 1 - vulkan).
r_renderAPICompareWindow shows additional window which does the same rendering as the main windows but uses different graphics API.
The idea is to use r_renderAPICompareWindow for debugging to be sure that both APIs render identical/similar pictures.
2017-03-30 17:39:48 +03:00
Artem Kharytoniuk
dd372cad1b Cleanup. 2017-03-30 09:59:33 +03:00
Artem Kharytoniuk
fa40b3b8ce Old features cleanup: GL_ARB_multitexture is not optional anymore, always use qglDrawElements for rendering. 2017-03-20 20:35:48 +02:00
Artem Kharytoniuk
1b78b53bea Simplification and cleanup of windows opengl initialization.
Removed r_colorbits, use desktop color depth as default value. Nevertheless if there are issues when looking
for corresponding pixel format it is still posible to obtain pixel format with color depth that is different
from desktop color.
No changes to game modules, which means that game UI can still set r_colorbits but it has no effect.
2017-03-20 10:31:02 +02:00
Artem Kharytoniuk
389bbf32c2 Rename: source -> src. 2017-03-17 15:28:25 +02:00