CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csEffectVector4 Struct Reference
[3D]

A simple 4-component vector, used by the effect system. More...

#include <efvector4.h>

List of all members.

Public Methods

 csEffectVector4 ()
 Initialize X, Y, Z to 0, W to 1. More...

 csEffectVector4 (float value)
 Initialize X, Y, Z to value, W to 1. More...

 csEffectVector4 (float _x, float _y, float _z)
 Initialize X, Y, Z to with the given values, W to 1. More...

 csEffectVector4 (float _x, float _y, float _z, float _w)
 Initialize X, Y, Z, W with the given values. More...

 csEffectVector4 (const csVector3 &vec)
 Copy X, Y, Z from the vector, set W to 1. More...

 csEffectVector4 (const csRGBpixel &color)
 Copy from the color: X = R, Y = G, Z = B, W = A. More...

 csEffectVector4 (const csEffectVector4 &vec)
 Copy components from given effect vector. More...


Public Attributes

float x
 X component. More...

float y
 Y component. More...

float z
 Z component. More...

float w
 W component. More...


Detailed Description

A simple 4-component vector, used by the effect system.

Definition at line 37 of file efvector4.h.


Constructor & Destructor Documentation

csEffectVector4::csEffectVector4   [inline]
 

Initialize X, Y, Z to 0, W to 1.

Definition at line 49 of file efvector4.h.

References w, x, y, and z.

csEffectVector4::csEffectVector4 float    value [inline]
 

Initialize X, Y, Z to value, W to 1.

Definition at line 53 of file efvector4.h.

References w, x, y, and z.

csEffectVector4::csEffectVector4 float    _x,
float    _y,
float    _z
[inline]
 

Initialize X, Y, Z to with the given values, W to 1.

Definition at line 57 of file efvector4.h.

References w, x, y, and z.

csEffectVector4::csEffectVector4 float    _x,
float    _y,
float    _z,
float    _w
[inline]
 

Initialize X, Y, Z, W with the given values.

Definition at line 61 of file efvector4.h.

References w, x, y, and z.

csEffectVector4::csEffectVector4 const csVector3   vec [inline]
 

Copy X, Y, Z from the vector, set W to 1.

Definition at line 65 of file efvector4.h.

References w, csVector3::x, x, csVector3::y, y, csVector3::z, and z.

csEffectVector4::csEffectVector4 const csRGBpixel   color [inline]
 

Copy from the color: X = R, Y = G, Z = B, W = A.

Definition at line 69 of file efvector4.h.

References csRGBpixel::alpha, csRGBpixel::blue, csRGBpixel::green, csRGBpixel::red, w, x, y, and z.

csEffectVector4::csEffectVector4 const csEffectVector4 &    vec [inline]
 

Copy components from given effect vector.

Definition at line 73 of file efvector4.h.

References w, x, y, and z.


Member Data Documentation

float csEffectVector4::w
 

W component.

Definition at line 46 of file efvector4.h.

Referenced by csEffectVector4.

float csEffectVector4::x
 

X component.

Definition at line 40 of file efvector4.h.

Referenced by csEffectVector4.

float csEffectVector4::y
 

Y component.

Definition at line 42 of file efvector4.h.

Referenced by csEffectVector4.

float csEffectVector4::z
 

Z component.

Definition at line 44 of file efvector4.h.

Referenced by csEffectVector4.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14