Cogs.Core
Factory.h
1#pragma once
2
3#include "Base.h"
4
5namespace Cogs
6{
10 struct COGSRENDERING_DLL_API Factory
11 {
19 static class IGraphicsDevice * createDevice(RenderingAllocatorInfo * allocatorInfo = nullptr);
20
27 static class IGraphicsDevice * createDevice(const StringView& name);
28
37 static class IGraphicsDevice * createDevice(const GraphicsDeviceType & type, RenderingAllocatorInfo * allocatorInfo = nullptr);
38
44 static void releaseDevice(class IGraphicsDevice * device);
45 };
46}
Represents a graphics device used to manage graphics resources and issue drawing commands.
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains all Cogs related functionality.
Definition: FieldSetter.h:23
GraphicsDeviceType
Contains types of graphics devices that may be supported.
Definition: Base.h:48
Graphics device construction factory.
Definition: Factory.h:11
Allocation information.
Definition: Base.h:35