Graphics context description interface.
System | |
| virtual iGraphicsContext * | CreateContextInstance ()=0 |
| Create an instance of the context. More... | |
| virtual iGraphics * | GetGraphics () const =0 |
| Get the context's graphics object. {Property}. More... | |
| virtual iGraphicsDriver * | GetDriver () const =0 |
| Get the context's driver. {Property}. More... | |
| virtual tU32 | GetWidth () const =0 |
| Get the context width. {Property}. More... | |
| virtual tU32 | GetHeight () const =0 |
| Get the context height. {Property}. More... | |
| virtual tBool | ResetAllCaches ()=0 |
| Reset all caches to zero. More... | |
| virtual tBool | ChangeWindow (iOSWindow *apWindow)=0 |
| Change the os window the context renders into. More... | |
| virtual iOSWindow * | GetWindow () const =0 |
| Get the target OS window if any. {Property}. More... | |
Render targets and main buffers | |
| virtual void | ClearBuffers (tClearBuffersFlags clearBuffer, tU32 anColor, tF32 afDepth, tI32 anStencil)=0 |
| Clear the specified main buffers. More... | |
| virtual tBool | SetRenderTarget (iTexture *apColor, iTexture *apDepthStencil)=0 |
| Set the render target to one texture and one depth buffer. More... | |
| virtual tBool | SetRenderTargets (iTexture *apColor0, iTexture *apColor1, iTexture *apColor2, iTexture *apColor3, iTexture *apDepthStencil)=0 |
| Set all render targets and the depth buffer. More... | |
| virtual iTexture * | GetRenderTarget (tU32 anIndex) const =0 |
| Get the render target set on the specified index. More... | |
| virtual iTexture * | GetDepthStencil () const =0 |
| Get the depth stencil target. More... | |
| virtual iTexture * | GetMainRenderTarget () const =0 |
| Get the main render target (back buffer). {Property}. More... | |
| virtual iTexture * | GetMainDepthStencil () const =0 |
| Get the main depth stencil. {Property}. More... | |
| virtual tBool | Display (tGraphicsDisplayFlags aFlags, const sRecti &aRect)=0 |
| Display the canvas in its destination window/context. More... | |
Rendering | |
| virtual tBool | DrawOperation (iDrawOperation *apDrawOp)=0 |
| Draw the specified draw operation. More... | |
Rendering capture | |
| virtual iBitmap2D * | CaptureFrontBuffer () const =0 |
| Capture the front buffer. More... | |
States | |
| virtual void | SetViewport (const sRecti &aVal)=0 |
| Set the viewport. {Property}. More... | |
| virtual sRecti | GetViewport () const =0 |
| Get the viewport. {Property}. More... | |
| virtual void | SetScissorRect (const sRecti &aVal)=0 |
| Set the scissor rectangle. {Property}. More... | |
| virtual sRecti | GetScissorRect () const =0 |
| Get the scissor rectangle. {Property}. More... | |
| virtual tBool | SetFixedStates (iFixedStates *apStates)=0 |
| Set the default fixed pipeline states. {Property}. More... | |
| virtual iFixedStates * | GetFixedStates () const =0 |
| Get the default fixed pipeline states. {Property}. More... | |
Additional Inherited Members | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
|
pure virtual |
Create an instance of the context.
|
pure virtual |
Get the context's graphics object. {Property}.
|
pure virtual |
Get the context's driver. {Property}.
|
pure virtual |
Get the context width. {Property}.
|
pure virtual |
Get the context height. {Property}.
|
pure virtual |
Reset all caches to zero.
Change the os window the context renders into.
|
pure virtual |
Get the target OS window if any. {Property}.
|
pure virtual |
Clear the specified main buffers.
| clearBuffer | specifies the buffers to clear. |
| anColor | is the color to use to clear the color buffer. |
| afDepth | is the value to use to clear the depth buffer. |
| anStencil | is the value to use to clear the stencil buffer. |
Set the render target to one texture and one depth buffer.
|
pure virtual |
Set all render targets and the depth buffer.
Get the render target set on the specified index.
|
pure virtual |
Get the depth stencil target.
|
pure virtual |
Get the main render target (back buffer). {Property}.
|
pure virtual |
Get the main depth stencil. {Property}.
|
pure virtual |
Display the canvas in its destination window/context.
|
pure virtual |
Draw the specified draw operation.
|
pure virtual |
Capture the front buffer.
|
pure virtual |
Get the viewport. {Property}.
Set the scissor rectangle. {Property}.
|
pure virtual |
Get the scissor rectangle. {Property}.
|
pure virtual |
Set the default fixed pipeline states. {Property}.
|
pure virtual |
Get the default fixed pipeline states. {Property}.
1.8.7