From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/class_NL3D__CDriverUser.html | 4241 +++++++++++++++++++++++++ 1 file changed, 4241 insertions(+) create mode 100644 docs/doxygen/nel/class_NL3D__CDriverUser.html (limited to 'docs/doxygen/nel/class_NL3D__CDriverUser.html') diff --git a/docs/doxygen/nel/class_NL3D__CDriverUser.html b/docs/doxygen/nel/class_NL3D__CDriverUser.html new file mode 100644 index 00000000..878dc0a0 --- /dev/null +++ b/docs/doxygen/nel/class_NL3D__CDriverUser.html @@ -0,0 +1,4241 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

NL3D::CDriverUser Class Reference

UDriver implementation. +More... +

+#include <driver_user.h> +

+Inheritance diagram for NL3D::CDriverUser

Inheritance graph
+ + + +
[legend]
Collaboration diagram for NL3D::CDriverUser:

Collaboration graph
+ + + + + + + + + + +
[legend]
List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

 CDriverUser ()
virtual ~CDriverUser ()
virtual TModeList enumModes ()
 Enum All Fullscreen modes. More...

virtual void setDisplay (const CMode &mode)
 create the window. More...

virtual void release ()
 Release the window. More...

virtual bool activate (void)
 Before rendering via a driver in a thread, must activate() (per thread). More...

virtual bool isActive ()
 Return true if driver is still active. Return false else. If he user close the window, must return false. More...

virtual void clearRGBABuffer (CRGBA col= CRGBA(255,255,255,255))
 This clear only the RGBA back buffer. More...

virtual void clearZBuffer ()
 This clear only the RGBA back buffer. More...

virtual void clearBuffers (CRGBA col= CRGBA(255,255,255,255))
 This clear the buffers (ALL the buffer :) ). More...

virtual void swapBuffers ()
 This swap the back and front buffer (ALL the buffer :) ). More...

virtual bool fogEnabled ()
virtual void enableFog (bool enable)
virtual void setupFog (float start, float end, CRGBA color)
 setup fog parameters. fog must enabled to see result. start and end are in [0,1] range. More...

virtual UScenecreateScene ()
 Create a new scene. More...

virtual void deleteScene (UScene *scene)
 Delete a scene. More...

virtual UAnimationSetcreateAnimationSet (const std::string &animationSetFile)
 Create a new AnimationSet, load it from a file. Use CPath to search the animation set. exception EPathNotFound if not found. More...

virtual void deleteAnimationSet (UAnimationSet *animationSet)
 Delete a AnimationSet. More...

virtual UPlayListManagercreatePlayListManager ()
 Create a new PlayListManager. More...

virtual void deletePlayListManager (UPlayListManager *playListManager)
 Delete a PlayListManager. More...

virtual UTextContextcreateTextContext (const std::string fontFileName, const std::string fontExFileName = "")
 create a new TextContext, for a given font. More...

virtual void deleteTextContext (UTextContext *textContext)
 delete a TextContext. More...

virtual void setFontManagerMaxMemory (uint maxMem)
 Set the maxMemory used for the FontManager. More...

virtual std::string getFontManagerCacheInformation () const
 get cahce information. More...

virtual UTextureFilecreateTextureFile (const std::string &file)
 Create a new texture file, searching in CPath. More...

virtual void deleteTextureFile (UTextureFile *textfile)
 Delete a texture file. This one will be really deleted in memory when no material point to it. More...

virtual UTextureRawcreateTextureRaw ()
 Create a new Raw texture, to be filled by user. More...

virtual void deleteTextureRaw (UTextureRaw *textraw)
 Delete a Raw texture. This one will be really deleted in memory when no material point to it. More...

virtual UMaterialcreateMaterial ()
 Create a new Material, to be filled by user. More...

virtual void deleteMaterial (UMaterial *mat)
 Delete a Material. More...

virtual void setScissor (const CViewport &)
 Set the active scissor for rendering. More...

virtual CViewport getScissor ()
virtual void setViewport (const CViewport &)
 Set the active viewport for rendering. More...

virtual CViewport getViewport ()
virtual void setFrustum (const CFrustum &frust)
 Set the active Frustum for rendering. More...

virtual CFrustum getFrustum ()
virtual void setViewMatrix (const CMatrix &mat)
 Set the active ViewMatrix for rendering. More...

virtual CMatrix getViewMatrix ()
virtual void setModelMatrix (const CMatrix &mat)
 Set the active ModelMatrix for rendering. More...

virtual CMatrix getModelMatrix ()
virtual void setMatrixMode2D (const CFrustum &frust)
 Tool function: Setup frustum/viewmatrix/modelmatrix for 2D. More...

virtual void setMatrixMode3D (UCamera &camera)
 Tool function: Setup frustum/viewmatrix/modelmatrix for 3D, using parameters of a UCamera. More...

virtual void drawLine (const NLMISC::CLine &tri, UMaterial &mat)
 Draw the Line, taking color from material. More...

virtual void drawLine (const NLMISC::CLineColor &tri, UMaterial &mat)
 Draw the Line, taking color from primitive. More...

virtual void drawLine (const NLMISC::CLineUV &tri, UMaterial &mat)
 Draw the Line, taking color from material. With UV for texture. More...

virtual void drawLine (const NLMISC::CLineColorUV &tri, UMaterial &mat)
 Draw the Line, taking color from primitive. With UV for texture. More...

virtual void drawTriangle (const NLMISC::CTriangle &tri, UMaterial &mat)
 Draw the Triangle, taking color from material. More...

virtual void drawTriangle (const NLMISC::CTriangleColor &tri, UMaterial &mat)
 Draw the Triangle, taking color from primitive. More...

virtual void drawTriangle (const NLMISC::CTriangleUV &tri, UMaterial &mat)
 Draw the Triangle, taking color from material. With UV for texture. More...

virtual void drawTriangle (const NLMISC::CTriangleColorUV &tri, UMaterial &mat)
 Draw the Triangle, taking color from primitive. With UV for texture. More...

virtual void drawQuad (const NLMISC::CQuad &tri, UMaterial &mat)
 Draw the Quad, taking color from material. More...

virtual void drawQuad (const NLMISC::CQuadColor &tri, UMaterial &mat)
 Draw the Quad, taking color from primitive. More...

virtual void drawQuad (const NLMISC::CQuadUV &tri, UMaterial &mat)
 Draw the Quad, taking color from material. With UV for texture. More...

virtual void drawQuad (const NLMISC::CQuadColorUV &tri, UMaterial &mat)
 Draw the Quad, taking color from primitive. With UV for texture. More...

virtual void drawBitmap (float x, float y, float width, float height, class UTexture& texture, bool blend=true, CRGBA col= CRGBA(255,255,255,255))
 Draw a bitmap 2D. Warning: this is slow... More...

virtual void drawLine (float x0, float y0, float x1, float y1, CRGBA col= CRGBA(255,255,255,255))
 Draw a line in 2D. Warning: this is slow... More...

virtual void drawTriangle (float x0, float y0, float x1, float y1, float x2, float y2, CRGBA col)
 Draw a Triangle in 2D. Warning: this is slow... More...

virtual void drawQuad (float x0, float y0, float x1, float y1, CRGBA col)
 Draw a Quad in 2D. Warning: this is slow... More...

virtual void drawQuad (float xcenter, float ycenter, float radius, CRGBA col)
 Draw a Quad in 2D. Warning: this is slow... More...

virtual void drawWiredQuad (float x0, float y0, float x1, float y1, CRGBA col)
 Draw a Quad in 2D. Warning: this is slow... More...

virtual void drawWiredQuad (float xcenter, float ycenter, float radius, CRGBA col)
 Draw a Quad in 2D. Warning: this is slow... More...

virtual uint32 getImplementationVersion () const
 Get the driver version. More...

virtual const char* getDriverInformation ()
 Get driver informations. More...

virtual const char* getVideocardInformation ()
 Get videocard informations. More...

virtual sint getNbTextureStages ()
 Get the number of texture stage avaliable, for multitexturing (Normal material shaders). Valid only after setDisplay(). More...

virtual void getWindowSize (uint32 &width, uint32 &height)
 Get the width and the height of the window. More...

virtual void getBuffer (CBitmap &bitmap)
 get the RGBA back buffer. More...

virtual void getZBuffer (std::vector<float> &zbuffer)
 get the ZBuffer (back buffer). More...

virtual void getBufferPart (CBitmap &bitmap, NLMISC::CRect &rect)
 get a part of the RGBA back buffer NB: 0,0 is the bottom left corner of the screen. More...

virtual void getZBufferPart (std::vector<float> &zbuffer, NLMISC::CRect &rect)
 get a part of the ZBuffer (back buffer). More...

virtual TMessageBoxId systemMessageBox (const char* message, const char* title, TMessageBoxType type=okType, TMessageBoxIcon icon=noIcon)
 Output a system message box and print a message with an icon. More...

virtual void showCursor (bool b)
 show cursor if b is true, or hide it if b is false. More...

virtual void setMousePos (float x, float y)
 x and y must be between 0.0 and 1.0. More...

virtual void setCapture (bool b)
 If true, capture the mouse to force it to stay under the window. More...

virtual void setPolygonMode (TPolygonMode mode)
 Set the global polygon mode. More...

virtual TPolygonMode getPolygonMode ()
 Get the global polygon mode. More...

virtual UShapeBankgetShapeBank ()
 Get the global shape bank. More...

IDrivergetDriver ()
void restoreMatrixContext ()

Protected Types

typedef CPtrSet<CTextureUserTTextureSet
typedef CPtrSet<CMaterialUserTMaterialSet
typedef CPtrSet<CTextContextUserTTextContextSet
typedef CPtrSet<CSceneUserTSceneSet
typedef CPtrSet<CAnimationSetUserTAnimationSetSet
typedef CPtrSet<CPlayListManagerUserTPlayListManagerSet

Protected Methods

void setupMatrixContext ()
CMaterialconvMat (UMaterial &mat)

Protected Attributes

IDriver_Driver
bool _WindowInit
CMatrixContext _CurrentMatrixContext
CFontManager _FontManager
TTextureSet _Textures
TMaterialSet _Materials
TTextContextSet _TextContexts
TSceneSet _Scenes
CShapeBankUser _ShapeBank
TAnimationSetSet _AnimationSets
TPlayListManagerSet _PlayListManagers
CVertexBuffer _VBFlat
CVertexBuffer _VBColor
CVertexBuffer _VBUv
CVertexBuffer _VBColorUv
CPrimitiveBlock _PBLine
CPrimitiveBlock _PBTri
CPrimitiveBlock _PBQuad
CMaterialUser _MatFlat
CMaterialUser _MatText

Static Protected Attributes

bool _StaticInit = false
+

Detailed Description

+UDriver implementation. +

+

+Author(s):
+ Lionel Berenguier , Nevrax France
+Date:
+ 2001
+

+ +

+Definition at line 58 of file driver_user.h.


Member Typedef Documentation

+

+ + + + +
+ + + + + +
+typedef CPtrSet<CAnimationSetUser> NL3D::CDriverUser::TAnimationSetSet [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 82 of file driver_user.h.

+

+ + + + +
+ + + + + +
+typedef CPtrSet<CMaterialUser> NL3D::CDriverUser::TMaterialSet [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 79 of file driver_user.h.

+

+ + + + +
+ + + + + +
+typedef CPtrSet<CPlayListManagerUser> NL3D::CDriverUser::TPlayListManagerSet [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 83 of file driver_user.h.

+

+ + + + +
+ + + + + +
+typedef CPtrSet<CSceneUser> NL3D::CDriverUser::TSceneSet [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 81 of file driver_user.h.

+

+ + + + +
+ + + + + +
+typedef CPtrSet<CTextContextUser> NL3D::CDriverUser::TTextContextSet [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 80 of file driver_user.h.

+

+ + + + +
+ + + + + +
+typedef CPtrSet<CTextureUser> NL3D::CDriverUser::TTextureSet [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 78 of file driver_user.h.

+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + +
+NL3D::CDriverUser::CDriverUser ( + +) +
+
+ + + + + +
+   + + +

+ +

+Definition at line 98 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+NL3D::CDriverUser::~CDriverUser ( + +) [virtual] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 143 of file driver_user.cpp.

+


Member Function Documentation

+

+ + + + +
+ + + + + + +
+bool NL3D::CDriverUser::activate ( + +void ) [inline, virtual] +
+
+ + + + + +
+   + + +

+Before rendering via a driver in a thread, must activate() (per thread). +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 135 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::clearBuffers ( + +CRGBA col = CRGBA(255,255,255,255) ) [inline, virtual] +
+
+ + + + + +
+   + + +

+This clear the buffers (ALL the buffer :) ). +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 161 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::clearRGBABuffer ( + +CRGBA col = CRGBA(255,255,255,255) ) [inline, virtual] +
+
+ + + + + +
+   + + +

+This clear only the RGBA back buffer. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 151 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::clearZBuffer ( + +) [inline, virtual] +
+
+ + + + + +
+   + + +

+This clear only the RGBA back buffer. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 156 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+CMaterial & NL3D::CDriverUser::convMat ( + +UMaterial & mat ) [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 636 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+UAnimationSet * NL3D::CDriverUser::createAnimationSet ( + +const std::string & animationSetFile ) [virtual] +
+
+ + + + + +
+   + + +

+Create a new AnimationSet, load it from a file. Use CPath to search the animation set. exception EPathNotFound if not found. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 76 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + +
+UMaterial * NL3D::CDriverUser::createMaterial ( + +) [virtual] +
+
+ + + + + +
+   + + +

+Create a new Material, to be filled by user. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 152 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + +
+UPlayListManager * NL3D::CDriverUser::createPlayListManager ( + +) [virtual] +
+
+ + + + + +
+   + + +

+Create a new PlayListManager. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 90 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + +
+UScene * NL3D::CDriverUser::createScene ( + +) [virtual] +
+
+ + + + + +
+   + + +

+Create a new scene. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 61 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + + + + + +
+UTextContext * NL3D::CDriverUser::createTextContext ( + +const std::string fontFileName, +
+const std::string fontExFileName = "" ) [virtual] +
+
+ + + + + +
+   + + +

+create a new TextContext, for a given font. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 103 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + +
+UTextureFile * NL3D::CDriverUser::createTextureFile ( + +const std::string & file ) [virtual] +
+
+ + + + + +
+   + + +

+Create a new texture file, searching in CPath. +

+

+Parameters:
+ + +
file + filename, local to CPath paths.
+
+

+Reimplemented from NL3D::UDriver. +

+Definition at line 126 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + +
+UTextureRaw * NL3D::CDriverUser::createTextureRaw ( + +) [virtual] +
+
+ + + + + +
+   + + +

+Create a new Raw texture, to be filled by user. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 138 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::deleteAnimationSet ( + +UAnimationSet * animationSet ) [virtual] +
+
+ + + + + +
+   + + +

+Delete a AnimationSet. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 85 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::deleteMaterial ( + +UMaterial * umat ) [virtual] +
+
+ + + + + +
+   + + +

+Delete a Material. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 157 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::deletePlayListManager ( + +UPlayListManager * playListManager ) [virtual] +
+
+ + + + + +
+   + + +

+Delete a PlayListManager. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 95 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::deleteScene ( + +UScene * scene ) [virtual] +
+
+ + + + + +
+   + + +

+Delete a scene. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 68 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::deleteTextContext ( + +UTextContext * textContext ) [virtual] +
+
+ + + + + +
+   + + +

+delete a TextContext. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 108 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::deleteTextureFile ( + +UTextureFile * textfile ) [virtual] +
+
+ + + + + +
+   + + +

+Delete a texture file. This one will be really deleted in memory when no material point to it. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 133 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::deleteTextureRaw ( + +UTextureRaw * textraw ) [virtual] +
+
+ + + + + +
+   + + +

+Delete a Raw texture. This one will be really deleted in memory when no material point to it. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 145 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+void NL3D::CDriverUser::drawBitmap ( + +float x, +
+float y, +
+float width, +
+float height, +
+class UTexture & texture, +
+bool blend = true, +
+CRGBA col = CRGBA(255,255,255,255) ) [virtual] +
+
+ + + + + +
+   + + +

+Draw a bitmap 2D. Warning: this is slow... +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 531 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+void NL3D::CDriverUser::drawLine ( + +float x0, +
+float y0, +
+float x1, +
+float y1, +
+CRGBA col = CRGBA(255,255,255,255) ) [virtual] +
+
+ + + + + +
+   + + +

+Draw a line in 2D. Warning: this is slow... +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 554 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::drawLine ( + +const NLMISC::CLineColorUV & shp, +
+UMaterial & mat ) [virtual] +
+
+ + + + + +
+   + + +

+Draw the Line, taking color from primitive. With UV for texture. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 364 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::drawLine ( + +const NLMISC::CLineUV & shp, +
+UMaterial & mat ) [virtual] +
+
+ + + + + +
+   + + +

+Draw the Line, taking color from material. With UV for texture. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 350 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::drawLine ( + +const NLMISC::CLineColor & shp, +
+UMaterial & mat ) [virtual] +
+
+ + + + + +
+   + + +

+Draw the Line, taking color from primitive. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 336 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::drawLine ( + +const NLMISC::CLine & shp, +
+UMaterial & mat ) [virtual] +
+
+ + + + + +
+   + + +

+Draw the Line, taking color from material. +

+NB: If you set a texture to your material, the primitives are textured, even if no Uvs are provided.
+ NB: All rendering are done in current viewport / current matrix context. +

+Reimplemented from NL3D::UDriver. +

+Definition at line 324 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
+void NL3D::CDriverUser::drawQuad ( + +float xcenter, +
+float ycenter, +
+float radius, +
+CRGBA col ) [virtual] +
+
+ + + + + +
+   + + +

+Draw a Quad in 2D. Warning: this is slow... +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 593 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+void NL3D::CDriverUser::drawQuad ( + +float x0, +
+float y0, +
+float x1, +
+float y1, +
+CRGBA col ) [virtual] +
+
+ + + + + +
+   + + +

+Draw a Quad in 2D. Warning: this is slow... +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 579 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::drawQuad ( + +const NLMISC::CQuadColorUV & shp, +
+UMaterial & mat ) [virtual] +
+
+ + + + + +
+   + + +

+Draw the Quad, taking color from primitive. With UV for texture. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 500 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::drawQuad ( + +const NLMISC::CQuadUV & shp, +
+UMaterial & mat ) [virtual] +
+
+ + + + + +
+   + + +

+Draw the Quad, taking color from material. With UV for texture. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 482 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::drawQuad ( + +const NLMISC::CQuadColor & shp, +
+UMaterial & mat ) [virtual] +
+
+ + + + + +
+   + + +

+Draw the Quad, taking color from primitive. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 464 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::drawQuad ( + +const NLMISC::CQuad & shp, +
+UMaterial & mat ) [virtual] +
+
+ + + + + +
+   + + +

+Draw the Quad, taking color from material. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 450 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+void NL3D::CDriverUser::drawTriangle ( + +float x0, +
+float y0, +
+float x1, +
+float y1, +
+float x2, +
+float y2, +
+CRGBA col ) [virtual] +
+
+ + + + + +
+   + + +

+Draw a Triangle in 2D. Warning: this is slow... +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 566 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::drawTriangle ( + +const NLMISC::CTriangleColorUV & shp, +
+UMaterial & mat ) [virtual] +
+
+ + + + + +
+   + + +

+Draw the Triangle, taking color from primitive. With UV for texture. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 428 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::drawTriangle ( + +const NLMISC::CTriangleUV & shp, +
+UMaterial & mat ) [virtual] +
+
+ + + + + +
+   + + +

+Draw the Triangle, taking color from material. With UV for texture. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 412 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::drawTriangle ( + +const NLMISC::CTriangleColor & shp, +
+UMaterial & mat ) [virtual] +
+
+ + + + + +
+   + + +

+Draw the Triangle, taking color from primitive. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 396 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::drawTriangle ( + +const NLMISC::CTriangle & shp, +
+UMaterial & mat ) [virtual] +
+
+ + + + + +
+   + + +

+Draw the Triangle, taking color from material. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 383 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
+void NL3D::CDriverUser::drawWiredQuad ( + +float xcenter, +
+float ycenter, +
+float radius, +
+CRGBA col ) [virtual] +
+
+ + + + + +
+   + + +

+Draw a Quad in 2D. Warning: this is slow... +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 610 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+void NL3D::CDriverUser::drawWiredQuad ( + +float x0, +
+float y0, +
+float x1, +
+float y1, +
+CRGBA col ) [virtual] +
+
+ + + + + +
+   + + +

+Draw a Quad in 2D. Warning: this is slow... +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 598 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::enableFog ( + +bool enable ) [inline, virtual] +
+
+ + + + + +
+   + + +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 182 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+UDriver::TModeList NL3D::CDriverUser::enumModes ( + +) [virtual] +
+
+ + + + + +
+   + + +

+Enum All Fullscreen modes. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 152 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+bool NL3D::CDriverUser::fogEnabled ( + +) [inline, virtual] +
+
+ + + + + +
+   + + +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 178 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::getBuffer ( + +CBitmap & bitmap ) [inline, virtual] +
+
+ + + + + +
+   + + +

+get the RGBA back buffer. +

+

+Parameters:
+ + +
bitmap + the buffer will be written in this bitmap
+
+

+Reimplemented from NL3D::UDriver. +

+Definition at line 398 of file driver_user.h.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::getBufferPart ( + +CBitmap & bitmap, +
+NLMISC::CRect & rect ) [inline, virtual] +
+
+ + + + + +
+   + + +

+get a part of the RGBA back buffer NB: 0,0 is the bottom left corner of the screen. +

+

+Parameters:
+ + + +
bitmap + the buffer will be written in this bitmap
rect + the in/out (wanted/clipped) part of Color buffer to retrieve.
+
+

+Reimplemented from NL3D::UDriver. +

+Definition at line 418 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+IDriver * NL3D::CDriverUser::getDriver ( + +) [inline] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 525 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+const char * NL3D::CDriverUser::getDriverInformation ( + +) [inline, virtual] +
+
+ + + + + +
+   + + +

+Get driver informations. +

+get the nel name of the driver (ex: "Opengl 1.2 NeL Driver") +

+Reimplemented from NL3D::UDriver. +

+Definition at line 367 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+std::string NL3D::CDriverUser::getFontManagerCacheInformation ( + +) const [virtual] +
+
+ + + + + +
+   + + +

+get cahce information. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 118 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + +
+CFrustum NL3D::CDriverUser::getFrustum ( + +) [virtual] +
+
+ + + + + +
+   + + +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 260 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+uint32 NL3D::CDriverUser::getImplementationVersion ( + +) const [inline, virtual] +
+
+ + + + + +
+   + + +

+Get the driver version. +

+Not the same than interface version. Incremented at each implementation change. +

+

+See also:
+ InterfaceVersion
+

+Reimplemented from NL3D::UDriver. +

+Definition at line 358 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+CMatrix NL3D::CDriverUser::getModelMatrix ( + +) [virtual] +
+
+ + + + + +
+   + + +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 282 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+sint NL3D::CDriverUser::getNbTextureStages ( + +) [inline, virtual] +
+
+ + + + + +
+   + + +

+Get the number of texture stage avaliable, for multitexturing (Normal material shaders). Valid only after setDisplay(). +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 382 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+TPolygonMode NL3D::CDriverUser::getPolygonMode ( + +) [inline, virtual] +
+
+ + + + + +
+   + + +

+Get the global polygon mode. +

+

+Parameters:
+ + +
polygon + mode choose in this driver.
+
+See also:
+ setPolygonMode(), TPolygonMode
+

+Reimplemented from NL3D::UDriver. +

+Definition at line 494 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+CViewport NL3D::CDriverUser::getScissor ( + +) [virtual] +
+
+ + + + + +
+   + + +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 238 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+UShapeBank * NL3D::CDriverUser::getShapeBank ( + +) [inline, virtual] +
+
+ + + + + +
+   + + +

+Get the global shape bank. +

+The shape bank handles all the shape caches.

+See also:
+ UShapeBank
+

+Reimplemented from NL3D::UDriver. +

+Definition at line 515 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+const char * NL3D::CDriverUser::getVideocardInformation ( + +) [inline, virtual] +
+
+ + + + + +
+   + + +

+Get videocard informations. +

+get the official name of the driver +

+Reimplemented from NL3D::UDriver. +

+Definition at line 376 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+CMatrix NL3D::CDriverUser::getViewMatrix ( + +) [virtual] +
+
+ + + + + +
+   + + +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 271 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+CViewport NL3D::CDriverUser::getViewport ( + +) [virtual] +
+
+ + + + + +
+   + + +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 249 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::getWindowSize ( + +uint32 & width, +
+uint32 & height ) [inline, virtual] +
+
+ + + + + +
+   + + +

+Get the width and the height of the window. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 388 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::getZBuffer ( + +std::vector< float >& zbuffer ) [inline, virtual] +
+
+ + + + + +
+   + + +

+get the ZBuffer (back buffer). +

+

+Parameters:
+ + +
zbuffer + the returned array of Z. size of getWindowSize() .
+
+

+Reimplemented from NL3D::UDriver. +

+Definition at line 407 of file driver_user.h.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::getZBufferPart ( + +std::vector< float >& zbuffer, +
+NLMISC::CRect & rect ) [inline, virtual] +
+
+ + + + + +
+   + + +

+get a part of the ZBuffer (back buffer). +

+NB: 0,0 is the bottom left corner of the screen.

+Parameters:
+ + + +
zbuffer + the returned array of Z. size of rec.Width*rec.Height.
rect + the in/out (wanted/clipped) part of ZBuffer to retrieve.
+
+

+Reimplemented from NL3D::UDriver. +

+Definition at line 429 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+bool NL3D::CDriverUser::isActive ( + +) [inline, virtual] +
+
+ + + + + +
+   + + +

+Return true if driver is still active. Return false else. If he user close the window, must return false. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 140 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::release ( + +void ) [virtual] +
+
+ + + + + +
+   + + +

+Release the window. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 188 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::restoreMatrixContext ( + +) [inline] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 529 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::setCapture ( + +bool b ) [inline, virtual] +
+
+ + + + + +
+   + + +

+If true, capture the mouse to force it to stay under the window. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 465 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::setDisplay ( + +const CMode & mode ) [virtual] +
+
+ + + + + +
+   + + +

+create the window. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 166 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::setFontManagerMaxMemory ( + +uint maxMem ) [virtual] +
+
+ + + + + +
+   + + +

+Set the maxMemory used for the FontManager. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 113 of file driver_user2.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::setFrustum ( + +const CFrustum & frust ) [virtual] +
+
+ + + + + +
+   + + +

+Set the active Frustum for rendering. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 254 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::setMatrixMode2D ( + +const CFrustum & frust ) [virtual] +
+
+ + + + + +
+   + + +

+Tool function: Setup frustum/viewmatrix/modelmatrix for 2D. +

+ModelMatrix is setup to identity. ViewMatrix is setup so that (x,y) of vectors maps to x,y screen!!! +

+Reimplemented from NL3D::UDriver. +

+Definition at line 290 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::setMatrixMode3D ( + +UCamera & camera ) [virtual] +
+
+ + + + + +
+   + + +

+Tool function: Setup frustum/viewmatrix/modelmatrix for 3D, using parameters of a UCamera. +

+ModelMatrix setuped to identity. ViewMatrix setuped to the inverse of camera 's LocalMatrix. Frustum setuped to UCamera frustum. +

+Reimplemented from NL3D::UDriver. +

+Definition at line 305 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::setModelMatrix ( + +const CMatrix & mat ) [virtual] +
+
+ + + + + +
+   + + +

+Set the active ModelMatrix for rendering. +

+NB: UScene ignore this function (use camera parameters instead). +

+Reimplemented from NL3D::UDriver. +

+Definition at line 276 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NL3D::CDriverUser::setMousePos ( + +float x, +
+float y ) [inline, virtual] +
+
+ + + + + +
+   + + +

+x and y must be between 0.0 and 1.0. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 459 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::setPolygonMode ( + +TPolygonMode mode ) [inline, virtual] +
+
+ + + + + +
+   + + +

+Set the global polygon mode. +

+Can be filled, line or point. The implementation driver must call IDriver::setPolygonMode() and active this mode.

+Parameters:
+ + +
polygon + mode choose in this driver.
+
+See also:
+ getPolygonMode(), TPolygonMode
+

+Reimplemented from NL3D::UDriver. +

+Definition at line 476 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::setScissor ( + +const CViewport & sc ) [virtual] +
+
+ + + + + +
+   + + +

+Set the active scissor for rendering. +

+Default to fullscreen. +

+Reimplemented from NL3D::UDriver. +

+Definition at line 232 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::setViewMatrix ( + +const CMatrix & mat ) [virtual] +
+
+ + + + + +
+   + + +

+Set the active ViewMatrix for rendering. +

+NB: this is the view matrix, which is the inverse of camera matrix. +

+Reimplemented from NL3D::UDriver. +

+Definition at line 265 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::setViewport ( + +const CViewport & vp ) [virtual] +
+
+ + + + + +
+   + + +

+Set the active viewport for rendering. +

+Default to fullscreen. +

+Reimplemented from NL3D::UDriver. +

+Definition at line 243 of file driver_user.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + +
+void NL3D::CDriverUser::setupFog ( + +float start, +
+float end, +
+CRGBA color ) [inline, virtual] +
+
+ + + + + +
+   + + +

+setup fog parameters. fog must enabled to see result. start and end are in [0,1] range. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 187 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::setupMatrixContext ( + +) [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 222 of file driver_user.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::showCursor ( + +bool b ) [inline, virtual] +
+
+ + + + + +
+   + + +

+show cursor if b is true, or hide it if b is false. +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 453 of file driver_user.h.

+

+ + + + +
+ + + + + + +
+void NL3D::CDriverUser::swapBuffers ( + +) [inline, virtual] +
+
+ + + + + +
+   + + +

+This swap the back and front buffer (ALL the buffer :) ). +

+ +

+Reimplemented from NL3D::UDriver. +

+Definition at line 167 of file driver_user.h.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
+UDriver::TMessageBoxId NL3D::CDriverUser::systemMessageBox ( + +const char * message, +
+const char * title, +
+TMessageBoxType type = okType, +
+TMessageBoxIcon icon = noIcon ) [virtual] +
+
+ + + + + +
+   + + +

+Output a system message box and print a message with an icon. +

+This method can be call even if the driver is not initialized. This method is used to return internal driver problem when string can't be displayed in the driver window. If the driver can't open a messageBox, it should not override this method and let the IDriver class manage it with the ASCII console.

+Parameters:
+ + + + + +
message + This is the message to display in the message box.
title + This is the title of the message box.
type + This is the type of the message box, ie number of button and label of buttons.
icon + This is the icon of the message box should use like warning, error etc...
+
+

+Reimplemented from NL3D::UDriver. +

+Definition at line 624 of file driver_user.cpp.

+


Member Data Documentation

+

+ + + + +
+ + + + + +
+TAnimationSetSet NL3D::CDriverUser::_AnimationSets [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 89 of file driver_user.h.

+

+ + + + +
+ + + + + +
+CMatrixContext NL3D::CDriverUser::_CurrentMatrixContext [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 75 of file driver_user.h.

+

+ + + + +
+ + + + + +
+IDriver * NL3D::CDriverUser::_Driver [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 73 of file driver_user.h.

+

+ + + + +
+ + + + + +
+CFontManager NL3D::CDriverUser::_FontManager [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 76 of file driver_user.h.

+

+ + + + +
+ + + + + +
+CMaterialUser NL3D::CDriverUser::_MatFlat [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 100 of file driver_user.h.

+

+ + + + +
+ + + + + +
+CMaterialUser NL3D::CDriverUser::_MatText [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 101 of file driver_user.h.

+

+ + + + +
+ + + + + +
+TMaterialSet NL3D::CDriverUser::_Materials [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 85 of file driver_user.h.

+

+ + + + +
+ + + + + +
+CPrimitiveBlock NL3D::CDriverUser::_PBLine [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 98 of file driver_user.h.

+

+ + + + +
+ + + + + +
+CPrimitiveBlock NL3D::CDriverUser::_PBQuad [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 98 of file driver_user.h.

+

+ + + + +
+ + + + + +
+CPrimitiveBlock NL3D::CDriverUser::_PBTri [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 98 of file driver_user.h.

+

+ + + + +
+ + + + + +
+TPlayListManagerSet NL3D::CDriverUser::_PlayListManagers [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 90 of file driver_user.h.

+

+ + + + +
+ + + + + +
+TSceneSet NL3D::CDriverUser::_Scenes [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 87 of file driver_user.h.

+

+ + + + +
+ + + + + +
+CShapeBankUser NL3D::CDriverUser::_ShapeBank [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 88 of file driver_user.h.

+

+ + + + +
+ + + + + +
+bool NL3D::CDriverUser::_StaticInit = false [static, protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 94 of file driver_user.cpp.

+

+ + + + +
+ + + + + +
+TTextContextSet NL3D::CDriverUser::_TextContexts [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 86 of file driver_user.h.

+

+ + + + +
+ + + + + +
+TTextureSet NL3D::CDriverUser::_Textures [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 84 of file driver_user.h.

+

+ + + + +
+ + + + + +
+CVertexBuffer NL3D::CDriverUser::_VBColor [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 95 of file driver_user.h.

+

+ + + + +
+ + + + + +
+CVertexBuffer NL3D::CDriverUser::_VBColorUv [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 97 of file driver_user.h.

+

+ + + + +
+ + + + + +
+CVertexBuffer NL3D::CDriverUser::_VBFlat [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 94 of file driver_user.h.

+

+ + + + +
+ + + + + +
+CVertexBuffer NL3D::CDriverUser::_VBUv [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 96 of file driver_user.h.

+

+ + + + +
+ + + + + +
+bool NL3D::CDriverUser::_WindowInit [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 74 of file driver_user.h.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1