3#include "../Base/SyncObjectsCommon.h"
5#include "BuffersNull.h"
6#include "CapabilitiesNull.h"
7#include "ContextNull.h"
8#include "EffectsNull.h"
9#include "RenderTargetsNull.h"
10#include "TexturesNull.h"
12#include "../IGraphicsDevice.h"
18 effects.initialize(&buffers);
27 virtual void setSize(
int ,
int )
override {}
28 virtual bool getSize(
int& ,
int& )
const override {
return false; }
47 virtual void* getNativeDevice()
override {
return this; }
53 TexturesNull textures;
54 RenderTargetsNull renderTargets;
55 CapabilitiesNull capabilities;
56 SyncObjectsCommon syncObjects;
virtual bool getSize(int &, int &) const override
Retrieve the size previously set by setSize.
virtual IPipelineStates * getPipelineStates() override
Get a pointer to the pipeline state management interface.
virtual void setSize(int, int) override
Set the size of the main drawing buffer used by the graphics device in pixels.
virtual ICapabilities * getCapabilities() override
Get a pointer to the capability management interface used to query the graphics device capability fla...
virtual bool initialize() override
Initializes the graphics device with the settings previous set through calling setSettings.
virtual void releaseResources() override
Release all resources allocated.
virtual void waitForCommandSync() override
Wait for any GPU commands on the current device to finish before returning.
virtual void beginFrame() override
Signal the beginning of a new frame to the graphics device.
virtual ITextures * getTextures() override
Get a pointer to the texture management interface.
virtual ISyncObjects * getSyncObjects() override
Get a pointer to the sync object management interface.
virtual IContext * getImmediateContext() override
Get a pointer to the immediate context used to issue commands to the graphics device.
virtual GraphicsDeviceType getType() const override
Get the type of the graphics device.
virtual IEffects * getEffects() override
Get a pointer to the effect management interface.
virtual IRenderTargets * getRenderTargets() override
Get a pointer to the render target management interface.
virtual ISwapChain * getDefaultSwapChain() override
Get a pointer to the default swap chain for this graphics device.
virtual void endFrame(uint32_t=0, uint32_t=PresentFlags::None) override
Signal the end of a frame to the graphics device.
virtual IBuffers * getBuffers() override
Get a pointer to the buffer management interface.
virtual std::string getIdentifier() const override
Get the graphics device identifier.
Represents a graphics device used to manage graphics resources and issue drawing commands.
Contains all Cogs related functionality.
GraphicsDeviceType
Contains types of graphics devices that may be supported.
@ Null
Null device that implements no rendering functionality.
void setIOHandler(IIOHandler *handler) override
Sets an external I/O handler to use for I/O operations.
IIOHandler * ioHandler
Optional pointer to an IO handler.
Provides buffer management functionality.
Provides capability query functionality.
Represents a graphics device context which can receive rendering commands.
Provides effects and shader management functionality.
Provides render target management functionality.
Provides sync object management.
Provides texture management functionality.