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

NLMISC::CBGRA Class Reference

Class pixel BGRA, Windows style pixel. +More... +

+#include <rgba.h> +

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

Public Methods

 CBGRA ()
 Default constructor. do nothing. More...

 CBGRA (const CRGBA& c)
 Constructor from a CRGBA. More...

 CBGRA (uint8 r, uint8 g, uint8 b, uint8 a=255)
 Constructor. More...

 operator CRGBA ()
 Cast operator to CRGBA. More...

uint getPacked () const
 Return a packed pixel. More...

bool operator< (const CBGRA &c) const
 Comparison operator. More...

bool operator== (const CBGRA &c) const
 Equality operator. More...

void serial (class NLMISC::IStream &f)
 Serialisation. More...

void blendFromui (CBGRA &c0, CBGRA &c1, uint factor)
 Blend two colors. More...

void set (uint8 r, uint8 g, uint8 b, uint8 a)
 Set colors. More...


Public Attributes

uint8 B
 Blue componant. More...

uint8 G
 Green componant. More...

uint8 R
 Red componant. More...

uint8 A
 Alpha componant. More...

+


Detailed Description

+Class pixel BGRA, Windows style pixel. +

+

+Author(s):
+ Cyril Corvazier , Nevrax France
+Date:
+ 2000
+

+ +

+Definition at line 215 of file rgba.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + +
+NLMISC::CBGRA::CBGRA ( + +) [inline] +
+
+ + + + + +
+   + + +

+Default constructor. do nothing. +

+ +

+Definition at line 220 of file rgba.h.

+

+ + + + +
+ + + + + + +
+NLMISC::CBGRA::CBGRA ( + +const CRGBA & c ) [inline] +
+
+ + + + + +
+   + + +

+Constructor from a CRGBA. +

+

+Parameters:
+ + +
c + CRGBA color.
+
+

+Definition at line 226 of file rgba.h.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
+NLMISC::CBGRA::CBGRA ( + +uint8 r, +
+uint8 g, +
+uint8 b, +
+uint8 a = 255 ) [inline] +
+
+ + + + + +
+   + + +

+Constructor. +

+

+Parameters:
+ + + + + +
r + Red componant.
g + Green componant.
b + Blue componant.
a + Alpha componant.
+
+

+Definition at line 241 of file rgba.h.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + +
+void NLMISC::CBGRA::blendFromui ( + +CBGRA & c0, +
+CBGRA & c1, +
+uint coef ) +
+
+ + + + + +
+   + + +

+Blend two colors. +

+

+Parameters:
+ + + + +
c0 + Color 0.
c1 + Color 1.
factor + Blend factor. 0~255. 0 return c0 and 255 return c1.
+
+

+Definition at line 94 of file rgba.cpp.

+

+ + + + +
+ + + + + + +
+uint NLMISC::CBGRA::getPacked ( + +) const [inline] +
+
+ + + + + +
+   + + +

+Return a packed pixel. +

+ +

+Definition at line 255 of file rgba.h.

+

+ + + + +
+ + + + + + +
+NLMISC::CBGRA::operator CRGBA ( + +) [inline] +
+
+ + + + + +
+   + + +

+Cast operator to CRGBA. +

+ +

+Definition at line 247 of file rgba.h.

+

+ + + + +
+ + + + + + +
+bool NLMISC::CBGRA::operator< ( + +const CBGRA & c ) const [inline] +
+
+ + + + + +
+   + + +

+Comparison operator. +

+ +

+Definition at line 263 of file rgba.h.

+

+ + + + +
+ + + + + + +
+bool NLMISC::CBGRA::operator== ( + +const CBGRA & c ) const [inline] +
+
+ + + + + +
+   + + +

+Equality operator. +

+ +

+Definition at line 271 of file rgba.h.

+

+ + + + +
+ + + + + + +
+void NLMISC::CBGRA::serial ( + +class NLMISC::IStream & f ) +
+
+ + + + + +
+   + + +

+Serialisation. +

+

+Parameters:
+ + +
f + Stream used for serialisation.
+
+

+Definition at line 78 of file rgba.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
+void NLMISC::CBGRA::set ( + +uint8 r, +
+uint8 g, +
+uint8 b, +
+uint8 a ) +
+
+ + + + + +
+   + + +

+Set colors. +

+

+Parameters:
+ + + + + +
r + Red componant.
g + Green componant.
b + Blue componant.
a + Alpha componant.
+
+

+Definition at line 86 of file rgba.cpp.

+


Member Data Documentation

+

+ + + + +
+ + + + + +
+uint8 NLMISC::CBGRA::A +
+
+ + + + + +
+   + + +

+Alpha componant. +

+ +

+Definition at line 306 of file rgba.h.

+

+ + + + +
+ + + + + +
+uint8 NLMISC::CBGRA::B +
+
+ + + + + +
+   + + +

+Blue componant. +

+ +

+Definition at line 300 of file rgba.h.

+

+ + + + +
+ + + + + +
+uint8 NLMISC::CBGRA::G +
+
+ + + + + +
+   + + +

+Green componant. +

+ +

+Definition at line 302 of file rgba.h.

+

+ + + + +
+ + + + + +
+uint8 NLMISC::CBGRA::R +
+
+ + + + + +
+   + + +

+Red componant. +

+ +

+Definition at line 304 of file rgba.h.

+


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