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/classNL3D_1_1CDRU.html | 1040 +++++++++++++++++++++++++++++++ 1 file changed, 1040 insertions(+) create mode 100644 docs/doxygen/nel/classNL3D_1_1CDRU.html (limited to 'docs/doxygen/nel/classNL3D_1_1CDRU.html') diff --git a/docs/doxygen/nel/classNL3D_1_1CDRU.html b/docs/doxygen/nel/classNL3D_1_1CDRU.html new file mode 100644 index 00000000..81d45558 --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CDRU.html @@ -0,0 +1,1040 @@ + + + + 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...

2D render.
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...

Easy render (2D or 3D).
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 106 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 59 of file dru.cpp. +

+References NL3D::IDRV_CREATE_PROC, NL3D::IDRV_CREATE_PROC_NAME, NL3D::IDRV_VERSION_PROC, NL3D::IDRV_VERSION_PROC_NAME, nlinfo, and nlwarning.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 136 of file dru.cpp. +

+References NLMISC::blend, height, width, x, and y.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 399 of file dru.cpp. +

+References NLMISC::CLine::V0, and NLMISC::CLine::V1.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 172 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 392 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 372 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 273 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 419 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 238 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 204 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 362 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 336 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 322 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 308 of file dru.cpp.

+


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