Painter render context interface.
|
| virtual ni::tBool | BeginPass (tU32 aMaterialAndFlags, tU32 aMaterialNotFlags, tU32 anVertexShader, tU32 anPixelShader, tU32 aUserCacheFlags, iPainterLight *apLight)=0 |
| | Begin a rendering pass, to be called by a render path. More...
|
| |
| virtual void | EndPass ()=0 |
| | End a rendering pass, to be called by a render path. More...
|
| |
| virtual ni::tBool | PrepareMaterial (ni::tFVF aFVF, iMaterial *apMat)=0 |
| | Prepare the specified material/FVF for rendering. More...
|
| |
| virtual ni::tBool | DrawOperation (iDrawOperation *pOp)=0 |
| | Draw a draw operation with the currently prepared material and flags. More...
|
| |
| virtual iPainterShaderCache * | GetShaderCache () const =0 |
| | Get the shader cache. {Property}. More...
|
| |
| virtual ni::tBool | UpdateShaderCacheFlags (tFVF aFVF, iMaterial *apMat)=0 |
| | Update the shader cache flags of the render context. More...
|
| |
| virtual ni::iPainterShader * | GetShader (tU32 anIndex) const =0 |
| | Get a shader from the shader cache. More...
|
| |
| virtual tPainterShaderFlags | GetUserCacheFlags () const =0 |
| | Get the user cache flags. {Property}. More...
|
| |
| virtual ni::tBool | TestMaterialFlags (tMaterialFlags aFlags) const =0 |
| | Test the specified material flags. More...
|
| |
| virtual ni::tBool | TestMaterial (iMaterial *apMat) const =0 |
| | Test the specified material. More...
|
| |
| virtual tU32 | GetMaterialAndFlags () const =0 |
| | Get the material 'and' flags. {Property}. More...
|
| |
| virtual tU32 | GetMaterialNotFlags () const =0 |
| | Get the material 'not' flags. {Property}. More...
|
| |
| virtual iPainterLight * | GetLight () const =0 |
| | Get the current light used for the rendering. {Property}. More...
|
| |
| virtual tBool | GetHasShader () const =0 |
| | Get whether any shader is set. {Property}. More...
|
| |
| virtual ni::iPainterShader * | GetVertexShader (const tUUID &aCacheFlags, iMaterial *apMat) const =0 |
| | Fetch a vertex shader from the cache. {Property}. More...
|
| |
| virtual ni::iPainterShader * | GetPixelShader (const tUUID &aCacheFlags, iMaterial *apMat) const =0 |
| | Fetch a pixel shader from the cache. {Property}. More...
|
| |
| virtual iMaterial * | EnablePresetMaterial ()=0 |
| | Enable the preset material. More...
|
| |
| virtual ni::tBool | EnableSink (iPainterRenderContextSink *apSink)=0 |
| | Enable the render context sink. More...
|
| |
| virtual tBool | EnableMaterialFading (iMaterial *apMaterial, tF32 afFading, tBool abSmooth)=0 |
| | Enable default material preset fading effect. More...
|
| |
| virtual tBool | DisableMaterialFading (iMaterial *apMaterial)=0 |
| | Disable default material preset fading effect. More...
|
| |
| virtual iMaterial * | GetPresetMaterial () const =0 |
| | Get the preset material if enabled. {Property}. More...
|
| |
| virtual ni::tBool | EnableDepthOnly (ni::tBool abUseDefaultVS, ni::tBool abUseDefaultPS)=0 |
| | Enable depth only rendering. More...
|
| |
| virtual ni::tBool | EnableBlendMode (ni::eBlendMode aBlendMode)=0 |
| | Enable a forced blend mode. More...
|
| |
| virtual tBool | SetupTargetMaterial (iPainterShader *apShader, iMaterial *apTarget, const iMaterial *apSource, const iMaterial *apPreset, const iFixedStates *apFS)=0 |
| | Setup a target material from a source and preset material. More...
|
| |
|
| virtual tBool | SetPainterRenderTarget (ePainterRT aRT, tPaintRenderTargetFlags aRenderRTFlags)=0 |
| | Set a painter render target as render target of the specified graphics context. More...
|
| |
| virtual tBool | SetPainterRenderTargetEx (ePainterRT aRT, tPaintRenderTargetFlags aRenderRTFlags, iTexture *apRT0, iTexture *apRT1, iTexture *apRT2, iTexture *apRT3, iTexture *apDS)=0 |
| | Set render targets as render targets of the specified graphics context. More...
|
| |
| virtual tBool | GetHasPaintingBegan () const =0 |
| | {Property} More...
|
| |
| virtual sVec4f | GetLastTime () const =0 |
| | Get the last time used for rendering. Vec4(elapsed time, root timeline time, sin(elapsed time), frame time) {Property}. More...
|
| |
| virtual tU32 | PaintBegin (iPainterDrawSet *apDrawSet, const sVec4f &avTime)=0 |
| | Paint setup and render the render targets required for post processing. More...
|
| |
| virtual tU32 | PaintEnd (iPainterDrawSet *apDrawSet)=0 |
| | Paint debug and 2d channels. More...
|
| |
| virtual tU32 | PaintEditMode (iPainterDrawSet *apDrawSet)=0 |
| | Paint the editmode channel. More...
|
| |
| virtual tU32 | PaintDebug (iPainterDrawSet *apDrawSet)=0 |
| | Paint the debug channel. More...
|
| |
| virtual tU32 | PaintBackground (iPainterDrawSet *apDrawSet)=0 |
| |
| virtual tU32 | PaintBackgroundEx (iPainterDrawSet *apDrawSet, ni::tU32 anVS, ni::tU32 anPS, ni::tU32 anUserCacheFlags, tU32 aMaterialAndFlags, tU32 aMaterialNotFlags, ni::iPainterRenderContextSink *apSink)=0 |
| |
| virtual tU32 | PaintForegroundEx (iPainterDrawSet *apDrawSet, ni::tU32 anVS, ni::tU32 anPS, ni::tU32 anUserCacheFlags, tU32 aMaterialAndFlags, tU32 aMaterialNotFlags, ni::iPainterRenderContextSink *apSink)=0 |
| |
| virtual tU32 | PaintForeground (iPainterDrawSet *apDrawSet)=0 |
| |
| virtual tU32 | PaintBase (iPainterDrawSet *apDrawSet)=0 |
| |
| virtual tU32 | PaintTranslucent (iPainterDrawSet *apDrawSet)=0 |
| |
| virtual tU32 | PaintBaseFixed (iPainterDrawSet *apDrawSet)=0 |
| |
| virtual tU32 | PaintBaseFixedEx (iPainterDrawSet *apDrawSet, ni::tU32 anVS, ni::tU32 anPS, ni::tU32 anUserCacheFlags, tU32 aMaterialAndFlags, tU32 aMaterialNotFlags, ni::iPainterRenderContextSink *apSink)=0 |
| |
| virtual tU32 | PaintTranslucentFixed (iPainterDrawSet *apDrawSet)=0 |
| |
| virtual tU32 | PaintTranslucentFixedEx (iPainterDrawSet *apDrawSet, ni::tU32 anVS, ni::tU32 anPS, ni::tU32 anUserCacheFlags, tU32 aMaterialAndFlags, tU32 aMaterialNotFlags, ni::iPainterRenderContextSink *apSink)=0 |
| |
| virtual tU32 | PaintDepthOnly (iPainterDrawSet *apDrawSet)=0 |
| |
| virtual tU32 | PaintPrepareLights (iPainterDrawSet *apDrawSet)=0 |
| |
| virtual tU32 | PaintShadowMaps (iPainterDrawSet *apDrawSet)=0 |
| |
| virtual tU32 | PaintRenderTargets (iPainterDrawSet *apDrawSet, tU32 anRTToPaintFlags, tClearBuffersFlags aClearFlags, tU32 aClearColor, tF32 aClearDepth, tU32 aClearStencil)=0 |
| |
| virtual tU32 | PaintRenderTarget (iPainterDrawSet *apDrawSet, ePainterRT aRT, tPaintRenderTargetFlags aFlags, tClearBuffersFlags aClearFlags, tU32 aClearColor, tF32 aClearDepth, tU32 aClearStencil)=0 |
| |
| virtual tU32 | PaintPostProcess (iPainterDrawSet *apDrawSet, ePainterRenderMode aMode)=0 |
| | Called by the render path and PaintEnd. More...
|
| |
| virtual tBool | BlitBegin ()=0 |
| |
| virtual tBool | BlitEnd ()=0 |
| |
| virtual tBool | BlitMaterial (iMaterial *apMaterial, const sRectf &arectSrc, const sRectf &arectDest, tU32 anVertexColor=0xFFFFFFFF)=0 |
| |
| virtual tBool | BlitRenderTargetMaterial (iMaterial *apMaterial, const sRectf &arectDest, tU32 anVertexColor=0xFFFFFFFF)=0 |
| |
| virtual void | SetGraphicsStates (tU32 aStates)=0 |
| |
| virtual void | UpdateFixedShaderConstants (iDrawOperation *apDrawOp)=0 |
| |