GFXNullDevice
Engine/source/gfx/Null/gfxNullDevice.h
Debug Methods
enterDebugEvent(ColorI color, const char * name)
setDebugMarker(ColorI color, const char * name)
State Initalization.
Get the fill convention for this device.
State initalization.
allocVertexBuffer(U32 numVerts, const GFXVertexFormat * vertexFormat, U32 vertSize, GFXBufferType bufferType, void * data)
This allocates a vertex buffer and returns a pointer to the allocated buffer.
allocPrimitiveBuffer(U32 numIndices, U32 numPrimitives, GFXBufferType bufferType, void * data)
This allocates a primitive buffer and returns a pointer to the allocated buffer.
allocVertexDecl(const GFXVertexFormat * vertexFormat)
Called from GFXVertexFormat to allocate the hardware specific vertex declaration for rendering.
setVertexDecl(const GFXVertexDecl * decl)
Sets the current vertex declaration on the device.
setVertexStream(U32 stream, GFXVertexBuffer * buffer)
Sets the vertex buffer on the device.
setVertexStreamFrequency(U32 stream, U32 frequency)
Set the vertex stream frequency on the device.
Private Types
Parent
Protected Static Attributes
Public Functions
Updates the render targets and viewport in a device specific manner when they are dirty.
allocRenderToTextureTarget(bool genMips)
Allocate a target for doing render to texture operations, with no depth/stencil buffer.
allocWindowTarget(PlatformWindow * window)
Allocate a target for a given window.
bool
clearColorAttachment(const U32 attachment, const LinearColorF & color)
copyResource(GFXTextureObject * pDst, GFXCubemap * pSrc, const U32 face)
GFXFence *
Allocate a fence.
Returns a hardware occlusion query object or NULL if this device does not support them.
Creates a new empty shader which must be initialized and deleted by the caller.
drawIndexedPrimitive(GFXPrimitiveType primType, U32 startVertex, U32 minIndex, U32 numVerts, U32 startIndex, U32 primitiveCount)
The parameters to drawIndexedPrimitive are somewhat complicated.
drawPrimitive(GFXPrimitiveType primType, U32 vertexStart, U32 primitiveCount)
Enumerates the supported video modes of the device.
Returns active graphics adapter type.
Returns the number of simultaneous render targets supported by the device.
Returns the number of texture samplers that can be used in a shader rendering pass.
init(const GFXVideoMode & mode, PlatformWindow * window)
Initialize this GFXDevice, optionally specifying a platform window to bind to.
This is called before this, or any other device, is deleted in the global destroy() method.
selectSupportedFormat(GFXTextureProfile * profile, const Vector< GFXFormat > & formats, bool texture, bool mustblend, bool mustfilter)
Returns the first format from the list which meets all the criteria of the texture profile and query options.
setClipRect(const RectI & rect)
setPixelShaderVersion(F32 version)
setVideoMode(const GFXVideoMode & mode)
Sets the video mode for the device.
Public Static Functions
createInstance(U32 adapterIndex)
enumerateAdapters(Vector< GFXAdapter * > & adapterList)
Protected Functions
Called by GFXDevice to create a device specific stateblock.
Called by base GFXDevice to actually set a const buffer.
setStateBlockInternal(GFXStateBlock * block, bool force)
Called by GFXDevice to actually set a stateblock.
setTextureInternal(U32 textureUnit, const GFXTextureObject * texture)
Detailed Description
Debug Methods
enterDebugEvent(ColorI color, const char * name)
Reimplemented from: GFXDevice
leaveDebugEvent()
Reimplemented from: GFXDevice
setDebugMarker(ColorI color, const char * name)
Reimplemented from: GFXDevice
State Initalization.
createCubemap()
Reimplemented from: GFXDevice
createCubemapArray()
Reimplemented from: GFXDevice
createTextureArray()
Reimplemented from: GFXDevice
getFillConventionOffset()
Reimplemented from: GFXDevice
initStates()
Reimplemented from: GFXDevice
allocVertexBuffer(U32 numVerts, const GFXVertexFormat * vertexFormat, U32 vertSize, GFXBufferType bufferType, void * data)
Reimplemented from: GFXDevice
allocPrimitiveBuffer(U32 numIndices, U32 numPrimitives, GFXBufferType bufferType, void * data)
Reimplemented from: GFXDevice
allocVertexDecl(const GFXVertexFormat * vertexFormat)
Reimplemented from: GFXDevice
setVertexDecl(const GFXVertexDecl * decl)
Reimplemented from: GFXDevice
setVertexStream(U32 stream, GFXVertexBuffer * buffer)
Reimplemented from: GFXDevice
setVertexStreamFrequency(U32 stream, U32 frequency)
Reimplemented from: GFXDevice
Private Types
typedef GFXDevice Parent
Protected Static Attributes
GFXAdapter::CreateDeviceInstanceDelegate mCreateDeviceInstance
Private Attributes
RectI clip
Public Functions
GFXNullDevice()
~GFXNullDevice()
_updateRenderTargets()
Reimplemented from: GFXDevice
activate()
allocRenderToTextureTarget(bool genMips)
Reimplemented from: GFXDevice
allocWindowTarget(PlatformWindow * window)
Reimplemented from: GFXDevice
beginSceneInternal()
Reimplemented from: GFXDevice
clear(U32 flags, const LinearColorF & color, F32 z, U32 stencil)
Reimplemented from: GFXDevice
clearColorAttachment(const U32 attachment, const LinearColorF & color)
Reimplemented from: GFXDevice
copyResource(GFXTextureObject * pDst, GFXCubemap * pSrc, const U32 face)
Reimplemented from: GFXDevice
createFence()
Reimplemented from: GFXDevice
createOcclusionQuery()
Reimplemented from: GFXDevice
createShader()
Reimplemented from: GFXDevice
deactivate()
drawIndexedPrimitive(GFXPrimitiveType primType, U32 startVertex, U32 minIndex, U32 numVerts, U32 startIndex, U32 primitiveCount)
Reimplemented from: GFXDevice
drawPrimitive(GFXPrimitiveType primType, U32 vertexStart, U32 primitiveCount)
Reimplemented from: GFXDevice
endSceneInternal()
Reimplemented from: GFXDevice
enumerateVideoModes()
Reimplemented from: GFXDevice
getAdapterType()
Reimplemented from: GFXDevice
getClipRect()
Reimplemented from: GFXDevice
getMaxDynamicIndices()
Reimplemented from: GFXDevice
getMaxDynamicVerts()
Reimplemented from: GFXDevice
getNumRenderTargets()
Reimplemented from: GFXDevice
getNumSamplers()
Reimplemented from: GFXDevice
getPixelShaderVersion()
Reimplemented from: GFXDevice
init(const GFXVideoMode & mode, PlatformWindow * window)
Reimplemented from: GFXDevice
preDestroy()
Reimplemented from: GFXDevice
selectSupportedFormat(GFXTextureProfile * profile, const Vector< GFXFormat > & formats, bool texture, bool mustblend, bool mustfilter)
Reimplemented from: GFXDevice
setClipRect(const RectI & rect)
Reimplemented from: GFXDevice
setPixelShaderVersion(F32 version)
Reimplemented from: GFXDevice
setVideoMode(const GFXVideoMode & mode)
Sets the video mode for the device.
Public Static Functions
createInstance(U32 adapterIndex)
enumerateAdapters(Vector< GFXAdapter * > & adapterList)
Protected Functions
createStateBlockInternal(const GFXStateBlockDesc & desc)
Reimplemented from: GFXDevice
setShaderConstBufferInternal(GFXShaderConstBuffer * buffer)
Reimplemented from: GFXDevice
setStateBlockInternal(GFXStateBlock * block, bool force)
Reimplemented from: GFXDevice
setTextureInternal(U32 textureUnit, const GFXTextureObject * texture)
Reimplemented from: GFXDevice