MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / GetRendererID

Function GetRendererID

deps/LLGL/sources/Renderer/StaticModuleInterface.cpp:158–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158int GetRendererID(const std::string& moduleName)
159{
160 #define LLGL_GET_RENDERER_ID(MODULE) \
161 if (moduleName == MODULE::GetModuleName()) \
162 return MODULE::GetRendererID()
163
164 #ifdef LLGL_BUILD_RENDERER_OPENGL
165 LLGL_GET_RENDERER_ID(ModuleOpenGL);
166 #endif
167
168 #ifdef LLGL_BUILD_RENDERER_OPENGLES3
169 LLGL_GET_RENDERER_ID(ModuleOpenGLES3);
170 #endif
171
172 #ifdef LLGL_BUILD_RENDERER_VULKAN
173 LLGL_GET_RENDERER_ID(ModuleVulkan);
174 #endif
175
176 #ifdef LLGL_BUILD_RENDERER_METAL
177 LLGL_GET_RENDERER_ID(ModuleMetal);
178 #endif
179
180 #ifdef LLGL_BUILD_RENDERER_DIRECT3D11
181 LLGL_GET_RENDERER_ID(ModuleDirect3D11);
182 #endif
183
184 #ifdef LLGL_BUILD_RENDERER_DIRECT3D12
185 LLGL_GET_RENDERER_ID(ModuleDirect3D12);
186 #endif
187
188 #undef LLGL_GET_RENDERER_ID
189
190 return RendererID::Undefined;
191}
192
193RenderSystem* AllocRenderSystem(const RenderSystemDescriptor& renderSystemDesc)
194{

Callers 1

LoadMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected