|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLMISC::CRGBAF Class ReferenceClass pixel float RGBA.
More...
#include <rgba.h>
List of all members.
Detailed Description
Class pixel float RGBA.
-
Author(s):
-
Cyril Corvazier , Nevrax France
-
Date:
-
2000
Definition at line 316 of file rgba.h.
Constructor & Destructor Documentation
NLMISC::CRGBAF::CRGBAF (
|
) [inline]
|
|
|
Default constructor. do nothing.
Definition at line 320 of file rgba.h. |
NLMISC::CRGBAF::CRGBAF (
|
float _r,
|
|
float _g,
|
|
float _b,
|
|
float _a = 1.f ) [inline]
|
|
|
Constructor.
-
Parameters:
-
_r
|
Red componant. |
_g
|
Green componant. |
_b
|
Blue componant. |
_a
|
Alpha componant. |
Definition at line 330 of file rgba.h. |
NLMISC::CRGBAF::CRGBAF (
|
const CRGBA & c ) [inline]
|
|
|
Constructor with a CRGBA.
-
Parameters:
-
Definition at line 342 of file rgba.h. |
Member Function Documentation
void NLMISC::CRGBAF::normalize (
|
) [inline]
|
|
|
Normalize component between [0.f,1.f].
Definition at line 365 of file rgba.h. |
CRGBAF NLMISC::CRGBAF::operator * (
|
float f ) const [inline]
|
|
|
Mul float operator.
Mul each component by f. -
Parameters:
-
-
Returns:
-
Return the result of the opertor
Definition at line 408 of file rgba.h. |
CRGBAF NLMISC::CRGBAF::operator * (
|
const CRGBAF & c ) const [inline]
|
|
|
Mul operator.
Mul components. -
Parameters:
-
-
Returns:
-
Return the result of the opertor
Definition at line 398 of file rgba.h. |
CRGBAF & NLMISC::CRGBAF::operator *= (
|
float f ) [inline]
|
|
|
Mul float operator.
Multiplate each component by f. -
Parameters:
-
-
Returns:
-
Return a reference on the caller object
Definition at line 470 of file rgba.h. |
CRGBAF & NLMISC::CRGBAF::operator *= (
|
const CRGBAF & c ) [inline]
|
|
|
Mul operator.
Multiplate each component. -
Parameters:
-
-
Returns:
-
Return a reference on the caller object
Definition at line 456 of file rgba.h. |
NLMISC::CRGBAF::operator CRGBA (
|
) const [inline]
|
|
CRGBAF NLMISC::CRGBAF::operator+ (
|
const CRGBAF & c ) const [inline]
|
|
|
Add operator.
Sum components. -
Parameters:
-
-
Returns:
-
Return the result of the opertor
Definition at line 378 of file rgba.h. |
CRGBAF & NLMISC::CRGBAF::operator+= (
|
const CRGBAF & c ) [inline]
|
|
|
Add operator.
Add each component. -
Parameters:
-
-
Returns:
-
Return a reference on the caller object
Definition at line 428 of file rgba.h. |
CRGBAF NLMISC::CRGBAF::operator- (
|
const CRGBAF & c ) const [inline]
|
|
|
Sub operator.
Substract components. -
Parameters:
-
-
Returns:
-
Return the result of the opertor
Definition at line 388 of file rgba.h. |
CRGBAF & NLMISC::CRGBAF::operator-= (
|
const CRGBAF & c ) [inline]
|
|
|
Sub operator.
Substract each component. -
Parameters:
-
-
Returns:
-
Return a reference on the caller object
Definition at line 442 of file rgba.h. |
CRGBAF NLMISC::CRGBAF::operator/ (
|
float f ) const [inline]
|
|
|
Div float operator.
Div each component by f. -
Parameters:
-
-
Returns:
-
Return the result of the opertor
Definition at line 418 of file rgba.h. |
CRGBAF & NLMISC::CRGBAF::operator/= (
|
float f ) [inline]
|
|
|
Div float operator.
Divide each component by f. -
Parameters:
-
-
Returns:
-
Return a reference on the caller object
Definition at line 484 of file rgba.h. |
|
Serialisation.
-
Parameters:
-
f
|
Stream used for serialisation. |
Definition at line 113 of file rgba.cpp. |
void NLMISC::CRGBAF::set (
|
float r,
|
|
float g,
|
|
float b,
|
|
float a )
|
|
|
Set colors.
-
Parameters:
-
r
|
Red componant. |
g
|
Green componant. |
b
|
Blue componant. |
a
|
Alpha componant. |
Definition at line 121 of file rgba.cpp. |
Member Data Documentation
|
Alpha componant.
Definition at line 515 of file rgba.h. |
|
Blue componant.
Definition at line 513 of file rgba.h. |
|
Green componant.
Definition at line 511 of file rgba.h. |
|
Red componant.
Definition at line 509 of file rgba.h. |
The documentation for this class was generated from the following files:
|
|