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/a04780.html | 107 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 docs/doxygen/nel/a04780.html (limited to 'docs/doxygen/nel/a04780.html') diff --git a/docs/doxygen/nel/a04780.html b/docs/doxygen/nel/a04780.html new file mode 100644 index 00000000..931c5a2e --- /dev/null +++ b/docs/doxygen/nel/a04780.html @@ -0,0 +1,107 @@ + + +NeL: primitive_configuration.cpp File Reference + + + +
+

primitive_configuration.cpp File Reference


Detailed Description

+Ligo primitive configuration description.

+

Id
primitive_configuration.cpp,v 1.5 2004/01/07 16:48:25 corvazier Exp
+ +

+Definition in file primitive_configuration.cpp. +

+#include <nel/ligo/primitive_configuration.h>
+#include <nel/ligo/ligo_config.h>
+#include <nel/ligo/primitive.h>
+#include <nel/misc/i_xml.h>
+ +

+Go to the source code of this file. + + + + +

Functions

bool ReadColor (CRGBA &color, xmlNodePtr node)
+


Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
bool ReadColor CRGBA color,
xmlNodePtr  node
+
+ + + + + +
+   + + +

+ +

+Definition at line 91 of file primitive_class.cpp. +

+References NLMISC::clamp(), DEFAULT_PRIMITIVE_COLOR, r, NLLIGO::ReadFloat(), and uint8. +

+Referenced by NLLIGO::CPrimitiveConfigurations::read(), and NLLIGO::CPrimitiveClass::read(). +

+

00092 {
+00093         // Read the color
+00094         float r = DEFAULT_PRIMITIVE_COLOR.R;
+00095         float g = DEFAULT_PRIMITIVE_COLOR.G;
+00096         float b = DEFAULT_PRIMITIVE_COLOR.B;
+00097         float a = DEFAULT_PRIMITIVE_COLOR.A;
+00098 
+00099         // Read the value
+00100         if (!ReadFloat ("R", r, node))
+00101                 return false;
+00102         if (!ReadFloat ("G", g, node))
+00103                 return false;
+00104         if (!ReadFloat ("B", b, node))
+00105                 return false;
+00106         if (!ReadFloat ("A", a, node))
+00107                 a = 255;
+00108 
+00109         // Clamp
+00110         clamp (r, 0.f, 255.f);
+00111         clamp (g, 0.f, 255.f);
+00112         clamp (b, 0.f, 255.f);
+00113         clamp (a, 0.f, 255.f);
+00114 
+00115         // Set
+00116         color.set((uint8)r, (uint8)g, (uint8)b, (uint8)a);
+00117         return true;
+00118 }
+
+


Generated on Tue Mar 16 06:43:12 2004 for NeL by + +doxygen +1.3.6
+ + -- cgit v1.2.1