![]() |
Public API Reference |
#include <render3d.h>
Inheritance diagram for iRender3D:
Public Methods | |
virtual bool | Open ()=0 |
Open 3d renderer. More... | |
virtual void | Close ()=0 |
Close renderer and release all resources used. More... | |
virtual iGraphics2D * | GetDriver2D ()=0 |
Get a pointer to our 2d canvas driver. More... | |
virtual iTextureManager * | GetTextureManager ()=0 |
Get a pointer to our texture manager. More... | |
virtual iRenderBufferManager * | GetBufferManager ()=0 |
Get a pointer to the VB-manager Always use the manager referenced here to get VBs. More... | |
virtual iLightingManager * | GetLightingManager ()=0 |
Get a pointer to lighting manager. More... | |
virtual bool | ActivateBuffer (csVertexAttrib attrib, iRenderBuffer *buffer)=0 |
Activate a vertex buffer. More... | |
virtual void | DeactivateBuffer (csVertexAttrib attrib)=0 |
Deactivate a vertex buffer. More... | |
virtual bool | ActivateTexture (iTextureHandle *txthandle, int unit=0)=0 |
Activate a texture. More... | |
virtual bool | ActivateTexture (iMaterialHandle *matwrapper, int layer, int unit=0)=0 |
Activate a texture (Should probably handled some better way). More... | |
virtual void | DeactivateTexture (int unit=0)=0 |
Deactivate a texture. More... | |
virtual void | SetDimensions (int width, int height)=0 |
Set dimensions of window. More... | |
virtual int | GetWidth ()=0 |
Get width of window. More... | |
virtual int | GetHeight ()=0 |
Get height of window. More... | |
virtual csRender3dCaps * | GetCaps ()=0 |
Capabilities of the driver. More... | |
virtual void | SetPerspectiveCenter (int x, int y)=0 |
Set center of projection. More... | |
virtual void | GetPerspectiveCenter (int &x, int &y)=0 |
Get center of projection. More... | |
virtual void | SetPerspectiveAspect (float aspect)=0 |
Set perspective aspect. More... | |
virtual float | GetPerspectiveAspect ()=0 |
Get perspective aspect. More... | |
virtual void | SetObjectToCamera (csReversibleTransform *wvmatrix)=0 |
Set world to view transform. More... | |
virtual void | SetRenderTarget (iTextureHandle *handle, bool persistent=false)=0 |
Set the target of rendering. More... | |
virtual iTextureHandle * | GetRenderTarget ()=0 |
Get the current render target (NULL for screen). More... | |
virtual bool | BeginDraw (int drawflags)=0 |
Begin drawing in the renderer. More... | |
virtual void | FinishDraw ()=0 |
Indicate that drawing is finished. More... | |
virtual void | Print (csRect *area)=0 |
Do backbuffer printing. More... | |
virtual void | DrawMesh (csRenderMesh *mymesh)=0 |
Drawroutine. Only way to draw stuff. More... | |
virtual void | SetWriteMask (bool red, bool green, bool blue, bool alpha)=0 |
Set the masking of color and/or alpha values to framebuffer. More... | |
virtual void | GetWriteMask (bool &red, bool &green, bool &blue, bool &alpha)=0 |
Get the masking of color and/or alpha values to framebuffer. More... | |
virtual void | EnableZOffset ()=0 |
Enables offsetting of Z values. More... | |
virtual void | DisableZOffset ()=0 |
Disables offsetting of Z values. More... | |
virtual void | SetShadowState (int state)=0 |
Controls shadow drawing. More... | |
virtual void | DrawLine (const csVector3 &v1, const csVector3 &v2, float fov, int color)=0 |
Draw a line. More... | |
virtual void | SetClipper (iClipper2D *clipper, int cliptype)=0 |
Set optional clipper to use. More... | |
virtual iClipper2D * | GetClipper ()=0 |
Get clipper that was used. More... | |
virtual int | GetClipType ()=0 |
Return type of clipper. More... | |
virtual void | SetNearPlane (const csPlane3 &pl)=0 |
Set near clip plane. More... | |
virtual void | ResetNearPlane ()=0 |
Reset near clip plane (i.e. disable it). More... | |
virtual const csPlane3 & | GetNearPlane ()=0 |
Get near clip plane. More... | |
virtual bool | HasNearPlane ()=0 |
Return true if we have near plane. More... | |
virtual int | GetMaxLights ()=0 |
Get maximum number of simultaneous HW lights supported. More... | |
virtual void | SetLightParameter (int i, int param, csVector3 value)=0 |
Sets a parameter for light i. More... | |
virtual void | EnableLight (int i)=0 |
Enables light i. More... | |
virtual void | DisableLight (int i)=0 |
Disables light i. More... | |
virtual void | EnablePVL ()=0 |
Enable vertex lighting. More... | |
virtual void | DisablePVL ()=0 |
Disable vertex lighting. More... | |
virtual csStringSet * | GetStringContainer ()=0 |
Get a stringhash to be used by our streamsources etc. More... | |
virtual bool | SetRenderState (R3D_RENDERSTATEOPTION op, long val)=0 |
Set a renderstate value. More... | |
virtual long | GetRenderState (R3D_RENDERSTATEOPTION op)=0 |
Get a renderstate value. More... |
Work in progress!
Definition at line 294 of file render3d.h.
|
Activate a vertex buffer.
|
|
Activate a texture (Should probably handled some better way).
|
|
Activate a texture.
|
|
Begin drawing in the renderer.
|
|
Close renderer and release all resources used.
|
|
Deactivate a vertex buffer.
|
|
Deactivate a texture.
|
|
Disables light i.
|
|
Disable vertex lighting.
|
|
Disables offsetting of Z values.
|
|
Draw a line.
|
|
Drawroutine. Only way to draw stuff.
|
|
Enables light i.
|
|
Enable vertex lighting.
|
|
Enables offsetting of Z values.
|
|
Indicate that drawing is finished.
|
|
Get a pointer to the VB-manager Always use the manager referenced here to get VBs.
|
|
Capabilities of the driver.
|
|
Get clipper that was used.
|
|
Return type of clipper.
|
|
Get a pointer to our 2d canvas driver. NOTE: It's not increfed, and therefore it shouldn't be decref-ed by caller. |
|
Get height of window.
|
|
Get a pointer to lighting manager.
|
|
Get maximum number of simultaneous HW lights supported.
|
|
Get near clip plane.
|
|
Get perspective aspect.
|
|
Get center of projection.
|
|
Get a renderstate value.
|
|
Get the current render target (NULL for screen).
|
|
Get a stringhash to be used by our streamsources etc.
|
|
Get a pointer to our texture manager.
|
|
Get width of window.
|
|
Get the masking of color and/or alpha values to framebuffer.
|
|
Return true if we have near plane.
|
|
Open 3d renderer.
|
|
Do backbuffer printing.
|
|
Reset near clip plane (i.e. disable it).
|
|
Set optional clipper to use. If clipper == null then there is no clipper. Currently only used by DrawTriangleMesh. |
|
Set dimensions of window.
|
|
Sets a parameter for light i.
|
|
Set near clip plane.
|
|
Set world to view transform.
|
|
Set perspective aspect.
|
|
Set center of projection.
|
|
Set a renderstate value.
|
|
Set the target of rendering. If this is NULL then the target will be the main screen. Otherwise it is a texture. After calling g3d->FinishDraw() the target will automatically be reset to NULL (main screen). Note that on some implementions rendering on a texture will overwrite the screen. So you should only do this BEFORE you start rendering your frame. If 'persistent' is true then the current contents of the texture will be copied on screen before drawing occurs (in the first call to BeginDraw). Otherwise it is assumed that you fully render the texture. |
|
Controls shadow drawing.
|
|
Set the masking of color and/or alpha values to framebuffer.
|