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__CDRU.html | 1006 ++++++++++++++++++++++++++++++++ 1 file changed, 1006 insertions(+) create mode 100644 docs/doxygen/nel/class_NL3D__CDRU.html (limited to 'docs/doxygen/nel/class_NL3D__CDRU.html') diff --git a/docs/doxygen/nel/class_NL3D__CDRU.html b/docs/doxygen/nel/class_NL3D__CDRU.html new file mode 100644 index 00000000..ba739474 --- /dev/null +++ b/docs/doxygen/nel/class_NL3D__CDRU.html @@ -0,0 +1,1006 @@ + + + + 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::CDRU Class Reference

The driver Utilities class of static. +More... +

+#include <dru.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Static Public Methods

IDrivercreateGlDriver () throw (EDru)
 Portable Function which create a GL Driver (using gl dll...). More...

void drawBitmap (float x, float y, float width, float height, class ITexture& texture, IDriver& driver, CViewport viewport=CViewport(), bool blend=true)
 Draw a bitmap 2D. Warning: this is slow... More...

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

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

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

void drawQuad (float x0, float y0, float x1, float y1, CRGBA col0, CRGBA col1, CRGBA col2, CRGBA col3, IDriver& driver, CViewport viewport)
 Draw a color Quad in 2D. More...

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

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

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

void drawTrianglesUnlit (const NLMISC::CTriangleUV *trilist, sint ntris, CMaterial &mat, IDriver& driver)
 Draw the triangles, with Vertex and 1 UV. "mat" should not be a lighted material since no normal is computed. More...

void drawTrianglesUnlit (const std::vector<NLMISC::CTriangleUV> &trilist, CMaterial &mat, IDriver& driver)
 Draw the triangles, with Vertex and 1 UV. "mat" should not be a lighted material since no normal is computed. More...

void drawLinesUnlit (const NLMISC::CLine *linelist, sint nlines, CMaterial &mat, IDriver& driver)
 Draw the Lines, with Vertex only. "mat" should not be a lighted material since no normal is computed. More...

void drawLinesUnlit (const std::vector<NLMISC::CLine> &linelist, CMaterial &mat, IDriver& driver)
 Draw the Lines, with Vertex only. "mat" should not be a lighted material since no normal is computed. More...

void drawLine (const CVector &a, const CVector &b, CRGBA color, IDriver& driver)
 Draw one line in 3D only, with a specific color. More...

+


Detailed Description

+The driver Utilities class of static. +

+ +

+ +

+Definition at line 87 of file dru.h.


Member Function Documentation

+

+ + + + +
+ + + + + + +
+IDriver * NL3D::CDRU::createGlDriver ( + +) throw (EDru) [static] +
+
+ + + + + +
+   + + +

+Portable Function which create a GL Driver (using gl dll...). +

+ +

+Definition at line 57 of file dru.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+void NL3D::CDRU::drawBitmap ( + +float x, +
+float y, +
+float width, +
+float height, +
+class ITexture & texture, +
+IDriver & driver, +
+CViewport viewport = CViewport(), +
+bool blend = true ) [static] +
+
+ + + + + +
+   + + +

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

+ +

+Definition at line 130 of file dru.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
+void NL3D::CDRU::drawLine ( + +const CVector & a, +
+const CVector & b, +
+CRGBA color, +
+IDriver & driver ) [static] +
+
+ + + + + +
+   + + +

+Draw one line in 3D only, with a specific color. +

+ +

+Definition at line 393 of file dru.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+void NL3D::CDRU::drawLine ( + +float x0, +
+float y0, +
+float x1, +
+float y1, +
+IDriver & driver, +
+CRGBA col = CRGBA(255,255,255,255), +
+CViewport viewport = CViewport() ) [static] +
+
+ + + + + +
+   + + +

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

+ +

+Definition at line 166 of file dru.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + +
+void NL3D::CDRU::drawLinesUnlit ( + +const std::vector< NLMISC::CLine >& linelist, +
+CMaterial & mat, +
+IDriver & driver ) [static] +
+
+ + + + + +
+   + + +

+Draw the Lines, with Vertex only. "mat" should not be a lighted material since no normal is computed. +

+ +

+Definition at line 386 of file dru.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
+void NL3D::CDRU::drawLinesUnlit ( + +const NLMISC::CLine * linelist, +
+sint nlines, +
+CMaterial & mat, +
+IDriver & driver ) [static] +
+
+ + + + + +
+   + + +

+Draw the Lines, with Vertex only. "mat" should not be a lighted material since no normal is computed. +

+ +

+Definition at line 366 of file dru.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+void NL3D::CDRU::drawQuad ( + +float xcenter, +
+float ycenter, +
+float radius, +
+IDriver & driver, +
+CRGBA col, +
+CViewport viewport ) [static] +
+
+ + + + + +
+   + + +

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

+ +

+Definition at line 267 of file dru.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+void NL3D::CDRU::drawQuad ( + +float x0, +
+float y0, +
+float x1, +
+float y1, +
+CRGBA col0, +
+CRGBA col1, +
+CRGBA col2, +
+CRGBA col3, +
+IDriver & driver, +
+CViewport viewport ) [static] +
+
+ + + + + +
+   + + +

+Draw a color Quad in 2D. +

+Warning: this is slow...

+Parameters:
+ + + + + + + + + + + +
x0 + is the x coordinate of the lower left corner.
y0 + is the y coordinate of the lower left corner.
x1 + is the x coordinate of the upper right corner.
y1 + is the y coordinate of the upper right corner.
col0 + is the color of the lower left corner.
col0 + is the color of the lower right corner.
col0 + is the color of the upper right corner.
col0 + is the color of the upper left corner.
driver + is the driver to use to render the quad.
viewport + is the viewport to use to render the quad.
+
+

+Definition at line 413 of file dru.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+void NL3D::CDRU::drawQuad ( + +float x0, +
+float y0, +
+float x1, +
+float y1, +
+IDriver & driver, +
+CRGBA col, +
+CViewport viewport ) [static] +
+
+ + + + + +
+   + + +

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

+ +

+Definition at line 232 of file dru.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+void NL3D::CDRU::drawTriangle ( + +float x0, +
+float y0, +
+float x1, +
+float y1, +
+float x2, +
+float y2, +
+IDriver & driver, +
+CRGBA col, +
+CViewport viewport ) [static] +
+
+ + + + + +
+   + + +

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

+ +

+Definition at line 198 of file dru.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + +
+void NL3D::CDRU::drawTrianglesUnlit ( + +const std::vector< NLMISC::CTriangleUV >& trilist, +
+CMaterial & mat, +
+IDriver & driver ) [static] +
+
+ + + + + +
+   + + +

+Draw the triangles, with Vertex and 1 UV. "mat" should not be a lighted material since no normal is computed. +

+ +

+Definition at line 356 of file dru.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
+void NL3D::CDRU::drawTrianglesUnlit ( + +const NLMISC::CTriangleUV * trilist, +
+sint ntris, +
+CMaterial & mat, +
+IDriver & driver ) [static] +
+
+ + + + + +
+   + + +

+Draw the triangles, with Vertex and 1 UV. "mat" should not be a lighted material since no normal is computed. +

+Since no vertex sharing is performed, their use may be slower than direct use of VBuffer/PBlock etc... Also, A VBuffer and a PBlock is created, and copies are made from the list of primitives to the driver... +

+Definition at line 330 of file dru.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+void NL3D::CDRU::drawWiredQuad ( + +float xcenter, +
+float ycenter, +
+float radius, +
+IDriver & driver, +
+CRGBA col, +
+CViewport viewport ) [static] +
+
+ + + + + +
+   + + +

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

+ +

+Definition at line 316 of file dru.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+void NL3D::CDRU::drawWiredQuad ( + +float x0, +
+float y0, +
+float x1, +
+float y1, +
+IDriver & driver, +
+CRGBA col, +
+CViewport viewport ) [static] +
+
+ + + + + +
+   + + +

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

+ +

+Definition at line 302 of file dru.cpp.

+


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